aboutsummaryrefslogtreecommitdiff
blob: 9929e66b326d813889a739052477e9d321d6f5ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{% extends "base.html" %}

{% block content %}
<div id="pageRow" class="container">
    <div class="row">
        <div id="page" class="span10">
            <div>
                <h1>Contact Settings</h1>
                <h3>Change your contact to details.</h3>
                <div class="form well">
                    {{ contact_settings.errors }}
                    {{ contact_settings.non_field_errors }}
                    <div class="row-fluid">
                        {% if user_info.website %}
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>Websites</th>
                                        <th> </th>
                                    </tr>
                                </thead>
                                <tbody>
                                {% for website in user_info.website %}
                                <form action="." method="POST">{% csrf_token %}
                                <tr>
                                    <td><input type="hidden" name="website" value="{{ website }}" />{{ website }}</td>
                                    <td><input class="btn" type="submit" name="delete_web" value="Delete" /></td>
                                </tr>
                                </form>
                                {% endfor %}
                                </tbody>
                            </table>
                        {% endif %}
                        <form action="." method="POST">{% csrf_token %}
                            {{ contact_settings.website.label_tag }}
                            <input name="website" type="text" /> {{ contact_settings.website.errors|striptags }}
                            <div class="row-fluid buttons">
                                <input class="btn btn-primary" type="submit" value="Add" />
                            </div>
                        </form>
                        <br />
                    </div>
                    <div class="row-fluid">
                        {% if user_info.im %}
                            <table class="table">
                            <thead>
                                <tr>
                                    <th>IMs</th>
                                    <th> </th>
                                </tr>
                            </thead>
                            <tbody>
                            {% for im in user_info.im %}
                            <form action="." method="POST">{% csrf_token %}
                                <tr>
                                    <td><input type="hidden" name="im" value="{{ im }}" />{{ im }}</td>
                                    <td><input class="btn" type="submit" name="delete_im" value="Delete" /></td>
                                </tr>
                            </form>
                            {% endfor %}
                            </tbody>
                            </table>
                        {% endif %}
                        <form action="." method="POST">{% csrf_token %}
                            {{ contact_settings.im.label_tag }}
                            <input name="im" type="text" /> {{ contact_settings.im.errors|striptags }}
                            <div class="row-fluid buttons">
                                <input class="btn btn-primary" type="submit" value="Add" />
                            </div>
                        </form>
                        <br />
                    </div>
                    <div class="row-fluid">
                        {% if user_info.gpg_fingerprint %}
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th>GPG Fingerprints</th>
                                        <th> </th>
                                    </tr>
                                </thead>
                                <tbody>
                                {% for gpg_fingerprint in user_info.gpg_fingerprint %}
                                <form action="." method="POST">{% csrf_token %}
                                    <tr>
                                        <td><input type="hidden" name="gpg_fingerprint" value="{{ gpg_fingerprint }}" />{{ gpg_fingerprint }}</td>
                                        <td><input class="btn" type="submit" name="delete_gpg" value="Delete" /></td>
                                    </tr>
                                </form>
                                {% endfor %}
                            </tbody>
                            </table>
                        {% endif %}
                        <form action="." method="POST">{% csrf_token %}
                            {{ contact_settings.gpg_fingerprint.label_tag }}
                            <input name="gpg_fingerprint" type="text" /> {{ contact_settings.gpg_fingerprint.errors|striptags }}
                            <div class="row-fluid buttons">
                                <input class="btn btn-primary" type="submit" value="Add" />
                            </div>
                        </form>
                        <br/>
                    </div>
                    <form action="." method="POST">{% csrf_token %}
                        <div class="row-fluid">
                            {{ contact_settings.location.label_tag }}
                            <input name="location" type="text" value="{{ user_info.location }}" /> {{ contact_settings.location.errors|striptags }}
                        </div>
                        <div class="row-fluid">
                            {{ contact_settings.longitude.label_tag }}
                            <input name="longitude" type="text" value="{{ user_info.longitude }}" /> {{ contact_settings.longitude.errors|striptags }}
                        </div>
                        <div class="row-fluid">
                            {{ contact_settings.latitude.label_tag }}
                            <input name="latitude" type="text" value="{{ user_info.latitude }}" /> {{ contact_settings.latitude.errors|striptags }}
                        </div>
                        <div class="row-fluid">
                            {{ contact_settings.phone.label_tag }}
                            <input name="phone" type="text" value="{{ user_info.phone }}" /> {{ contact_settings.phone.errors|striptags }}
                        </div>
                        <br />
                        <div class="row-fluid buttons">
                            <input class="btn btn-primary" type="submit" value="Update" />
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}

{# vim:se fileencoding=utf8 et ts=4 sts=4 sw=4 ft=htmldjango : #}