Move to Django 1.5, some styling changes.
[cas.git] / src / accounts / templates / account / profile.html
1 {% extends "base.html" %}
2 {% load gravatar i18n %}
3
4 {% block content %}
5         <div class="user_avatar">
6                 <img src="{% gravatar_for_email request.user.email 120 %}"
7             alt="Gravatar"
8             title="{% trans 'Change at Gravatar.com' %}">
9                 <p><a href="{% url 'cas_provider.views.logout' %}">{% trans "Logout" %}</a></p>
10         </div>
11
12         <div id="details">
13                 {% if messages %}
14                         <p>{% for message in messages %}<span class="message">{{ message }}</span>{% endfor %}</p>
15         {% endif %}
16
17                 <h2>{% trans "Your profile" %}</h2>
18     <form method="post" action="/accounts/change_profile">
19     {% csrf_token %}
20         <table>
21                 {{ basic_form.as_table }}
22                         <tr><td colspan="2"><button type="submit">{% trans "Change profile" %}</button></td></tr>
23                 </table>
24         </form>
25
26         <h2>{% trans "Password change" %}</h2>
27         <form method="post" action="/accounts/change_password">
28     {% csrf_token %}
29         <table>
30                 {{ pass_form.as_table }}
31                 <tr><td colspan="2"><button type="submit">{% trans "Change password" %}</button></td></tr>
32                 </table>
33         </form>
34         </div>
35
36         <div id="services-list">
37                 <a href="http://redakcja.wolnelektury.pl/">
38                         <img src="{{ MEDIA_URL }}static/platforma.png">
39                 </a>
40         </div>
41 {% endblock %}