Add basic functionality for self-registration.
[cas.git] / src / accounts / templates / account / profile.html
1 {% extends "base.html" %}
2 {% load libravatar_tags i18n %}
3
4 {% block content %}
5         <aside class="user_avatar">
6         <a href="https://avatars.nowoczesnapolska.org.pl/" title="{% trans 'How to change the avatar?' %}">
7                 <img src="{% libravatar request.user.email 120 %}"
8             alt="Libravatar"></a>
9                 <p><a href="{% url 'cas_provider.views.logout' %}">{% trans "Logout" %}</a></p>
10
11     <p><small><a href="{% url 'socialaccount_connections' %}">{% trans "Manage external accounts" %}</a></small></p>
12         </aside>
13
14         <div id="details">
15                 {% if messages %}
16             <section id="messages">
17                 {% for message in messages %}<p>{{ message }}</p>{% endfor %}
18             </section>
19         {% endif %}
20
21     <h2>{% trans "Your profile" %}</h2>
22     <form method="post" action="/accounts/change_profile">
23     {% csrf_token %}
24         <table>
25                 {{ basic_form.as_table }}
26                         <tr><td colspan="2"><button type="submit">{% trans "Change profile" %}</button></td></tr>
27                 </table>
28         </form>
29
30         <h2>{% trans "Password change" %}</h2>
31     <a href="{% url 'account_change_password' %}">Zmień hasło</a>
32
33         </div>
34
35
36     {% if services %}
37         <section id="services-list">
38         <h1>{% trans "Sign in to:" %}</h1>
39         {% for service in services %}
40             <a href="{{ service.url }}" title="{{ service.name }}">
41                 <img src="{{ service.image.url }}" alt="{{ service.name }}">
42             </a>
43         {% endfor %}
44         </section>
45     {% endif %}
46 {% endblock %}