blob: 1c21f284474677acbd8c65d22b6f1beb150d1d48 (
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
|
{% extends "base.html" %}
{% block content %}
<div id="pageRow" class="container">
<div class="row">
<div id="page" class="span10">
<div>
<h1>Email Settings</h1>
<h3>Manage your emails.</h3>
<div class="form well">
{{ email_settings.errors }}
{{ email_settings.non_field_errors }}
<div class="row-fluid ">
<table class="table">
<thead>
<tr>
<th>Email</th>
<th> </th>
</tr>
</thead>
<tbody>
{% for mail in user_info.email%}
<form action="." method="POST">{% csrf_token %}
<tr>
<td><input type="hidden" name="email" value="{{ mail }}" />{{mail}}</td>
<td><input class="btn" type="submit" name="delete" value="Delete" /></td>
</tr>
</form>
{% endfor %}
</tbody>
</table>
<form action="." method="POST">{% csrf_token %}
{{ email_settings.email.label_tag }}
<input name="email" type="text" /> {{ email_settings.email.errors|striptags }}
<div class="row-fluid buttons">
<input class="btn btn-primary" type="submit" value="Add email" />
</div>
</form>
<div>Current avatar:<br />
{% if user_info.gravatar %}
<img class="thumbnail" src="https://gravatar.com/avatar/{{ user_info.gravatar }}?d=identicons&s=170" />
{% else %}
No avatar
{% endif %}
</div><br />
<form action="." method="POST">{% csrf_token %}
{{ email_settings.gravatar.label_tag }}
{{ email_settings.gravatar }} {{ email_settings.gravatar.errors|striptags }}
<div class="row-fluid buttons">
<input class="btn btn-primary" type="submit" value="Submit" />
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{# vim:se fileencoding=utf8 et ts=4 sts=4 sw=4 ft=htmldjango : #}
|