X-Git-Url: https://git.mdrn.pl/cas.git/blobdiff_plain/0dd89aae9312bb35ea3398bc9cbf4312ac8d5003..76fc5b2671d4c445e57236a5b1d54e56fe49764a:/src/accounts/templates/account/profile.html

diff --git a/src/accounts/templates/account/profile.html b/src/accounts/templates/account/profile.html
index b7cc601..9dff681 100644
--- a/src/accounts/templates/account/profile.html
+++ b/src/accounts/templates/account/profile.html
@@ -1,48 +1,22 @@
-{% extends "base.html" %}
-{% load gravatar i18n %}
+{% extends "account/base.html" %}
+{% load i18n %}
 
-{% block content %}
-	<aside class="user_avatar">
-		<img src="{% gravatar_url request.user.email 120 %}"
-            alt="Gravatar"
-            title="{% trans 'Change at Gravatar.com' %}">
-		<p><a href="{% url 'cas_provider.views.logout' %}">{% trans "Logout" %}</a></p>
-	</aside>
 
-	<div id="details">
-		{% if messages %}
-            <section id="messages">
-                {% for message in messages %}<p>{{ message }}</p>{% endfor %}
-            </section>
-    	{% endif %}
+{% block title %}{% trans "Your profile" %}{% endblock %}
 
-    <h2>{% trans "Your profile" %}</h2>
-    <form method="post" action="/accounts/change_profile">
-    {% csrf_token %}
-    	<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">
-    {% csrf_token %}
-    	<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 %}
 
-    {% if services %}
-	<section id="services-list">
-        <h1>{% trans "Sign in to:" %}</h1>
-        {% for service in services %}
-            <a href="{{ service.url }}" title="{{ service.name }}">
-                <img src="{{ service.image.url }}" alt="{{ service.name }}">
-            </a>
-        {% endfor %}
-	</section>
-    {% endif %}
+
+{% block accounts-content %}
+  <h1>{% trans "Your profile" %}</h1>
+  <form method="post">
+    {% csrf_token %}
+    {{ form.as_p }}
+    <p><button type="submit" class="btn btn-primary">{% trans "Change profile" %}</button></p>
+  </form>
 {% endblock %}