-{% extends "base.html" %}
-{% load gravatar i18n %}
+{% extends "account/base.html" %}
+{% load i18n %}
-{% block content %}
- <div class="user_avatar">
- <img src="{% gravatar request.user.email 120 %}">
- <p><a href="{% url cas_provider.views.logout %}">{% trans "Logout" %}</a></p>
- </div>
- <div id="details">
- {% if messages %}
- <p>{% for message in messages %}<span class="message">{{ message }}</span>{% endfor %}</p>
- {% endif %}
+{% block title %}{% trans "Your profile" %}{% endblock %}
- <h2>{% trans "Your profile" %}</h2>
- <form method="post" action="/accounts/change_profile">
- <table>
- {{ basic_form.as_table }}
- <tr><td colspan="2"><button type="submit">{% trans "Change profile" %}</button></td></tr>
- </table>
- </form>
- <h2>{% trans "Password change" %}</h2>
- <form method="post" action="/accounts/change_password">
- <table>
- {{ pass_form.as_table }}
- <tr><td colspan="2"><button type="submit">{% trans "Change password" %}</button></td></tr>
- </table>
- </form>
- </div>
+{% block menu %}
+ {% with menu="profile" %}
+ {{ block.super }}
+ {% endwith %}
+{% endblock %}
+
- <div id="services-list">
- <h2>{% trans "Availble services" %}</h2>
- <a href="http://redakcja.wolnelektury.pl/">
- <img src="{{ MEDIA_URL }}static/platforma.png">
- </a>
- </div>
+{% block accounts-content %}
+ <h1>{% trans "Your profile" %}</h1>
+ <form method="post">
+ {% csrf_token %}
+ {{ form.as_p }}
+ <p><button type="submit">{% trans "Change profile" %}</button></p>
+ </form>
{% endblock %}