]> git.parisson.com Git - mezzo.git/commitdiff
Fix account block
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 3 Jan 2017 17:03:17 +0000 (18:03 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 3 Jan 2017 17:03:17 +0000 (18:03 +0100)
app/templates/accounts/account_form.html
app/templates/accounts/account_login.html
app/templates/accounts/account_password_reset.html
app/templates/accounts/account_profile.html

index a2d8b05a6c55edf272c0d8b8ad8be65a7e20dfd3..88cd54755fb6772ba3d7231ced8d5fa0bf15cca4 100644 (file)
@@ -1,6 +1,16 @@
+{% extends "pages/page.html" %}
 {% load i18n mezzanine_tags %}
-{% errors_for form %}
 
+{% block meta_title %}
+       {% trans "Login" %}
+{% endblock %}
+
+{% block page_title %}
+       <h1 class="dotted">{% trans "Login" %}</h1>
+{% endblock %}
+
+{% block page_content %}
+{% errors_for form %}
 <form class="form" method="post"{% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
     <fieldset>
     <legend>{{ title }}</legend>
@@ -12,3 +22,4 @@
     </div>
     </fieldset>
 </form>
+{% endblock %}
index 4fbbbaf57771e3b428a026bbe3d5da83f28f1543..70a79c0b071648e6eb5f247508f0af51280c3e23 100644 (file)
@@ -1,6 +1,5 @@
-{% extends "pages/page.html" %}
-
-{% load i18n %}
+{% extends "accounts/account_form.html" %}
+{% load i18n mezzanine_tags %}
 
 {% block meta_title %}
        {% trans "Page not found" %}
 {% if request.user.is_authenticated %}
     <p>{% trans "You're already logged in. If you'd like to log in as a different user, you'll need to log out first." %}</p>
 {% else %}
-    {% include 'accounts/account_form.html'%}
+    {{ block.super }}
     {% url "signup" as signup_url %}
     {% url "mezzanine_password_reset" as password_reset_url %}
     {% url "profile_update" as profile_update_url %}
+       {% block message %}
     {% blocktrans %}<p>You can also <a href="{{ password_reset_url }}?next={{ profile_update_url }}">reset your password</a> if you've forgotten it.</p>{% endblocktrans %}</p>
+       {% endblock %}
 {% endif %}
 {% endblock %}
index 2fe7631258d4f10819480b6ed4aaa1eeed2ce46f..d9c35a63254be85fd6859c6cba25e85222432f47 100644 (file)
@@ -1,7 +1,10 @@
-{% extends "accounts/account_form.html" %}
+{% extends "accounts/account_login.html" %}
 {% load i18n %}
 
-{% block main %}
+{% block page_content %}
 {{ block.super }}
+{% endblock %}
+
+{% block message %}
 <p>{% trans "Enter your username or email address and you'll receive an email with a link you need to click, in order to log in and change your password." %}</p>
 {% endblock %}
index 464a646e85aeb1fe8708c2fec90dbd6253b858a8..d03c90ab3418a158bb324f8e937fe47195dd86cb 100644 (file)
@@ -1,4 +1,4 @@
-{% extends "base.html" %}
+{% extends "pages/page.html" %}
 {% load i18n mezzanine_tags accounts_tags %}
 
 {% block meta_title %}{{ profile_user|username_or:"get_full_name" }}{% endblock %}