Django-magic to prevent cross-site request forgery for POST requests
[mygpo.git] / mygpo / web / templates / account.html
blobecb5b370506d6fd7f94c43b28d9c40a5ba5dbf45
1 {% extends "base.html" %}
2 {% load i18n %}
4 {% load menu %}
5 {% block mainmenu %}{{ "/account/"|main_menu }}{% endblock %}
6 {% block sectionmenu %}{{ "/account/"|section_menu }}{% endblock %}
8 {% block title %}{% trans "Account settings" %}{% endblock %}
10 {% block content %}
11 <h1>{% trans "Account settings" %}</h1>
13 {% if success %}
14 <div class="success">{% trans "Your settings have been saved." %}</div>
15 {% endif %}
16 <form action="/account/" method="POST">
17 {% csrf_token %}
18 <h3>{% trans "Contact information and password" %}</h3>
19 <table class="form">
20 <tr>
21 <th>{{ form.email.label_tag }}:</th>
22 <td>{{ form.email }}</td>
23 </tr>
24 <tr>
25 <th>{{ form.password_current.label_tag }}:</th>
26 <td>{{ form.password_current }}</td>
27 </tr>
28 <tr>
29 <th>{{ form.password1.label_tag }}:</th>
30 <td>{{ form.password1 }}</td>
31 </tr>
32 <tr>
33 <th>{{ form.password2.label_tag }}:</th>
34 <td>{{ form.password2 }}</td>
35 </tr>
37 <tr>
38 <td></td>
39 <td>
40 <input type="submit" value="{% trans "Update account settings" %}" />
41 </td>
42 </tr>
43 </table>
44 </form>
46 <hr>
48 <h2>{% trans "Account-related actions" %}</h2>
49 <ul>
50 <li><a href="/account/delete">{% trans "Delete account" %}</a></li>
51 <ul>
53 {% endblock %}