authentic: review and update authentic templates
It will need another pass to remove templates where publik-base-theme is enough.
This commit is contained in:
parent
aa1981ee2c
commit
749c3d608d
|
@ -2,37 +2,14 @@
|
|||
{% load i18n %}
|
||||
{% load staticfiles %}
|
||||
|
||||
{% block bodyargs %}
|
||||
class="narrow-page"
|
||||
{% endblock %}
|
||||
|
||||
{% block messages %}
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}Compte citoyen{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">Compte citoyen</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="single-title">Compte citoyen</h2>
|
||||
|
||||
<div id="welcome">
|
||||
<h2>Compte citoyen de Montpellier Méditerranée Métropole et de ses communes</h2>
|
||||
|
||||
{% if messages %}
|
||||
<div id="messages" class="messages-login">
|
||||
<ul class="messages">
|
||||
{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="right">
|
||||
{% for name, content in methods %}
|
||||
{{ content|safe }}
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page" onload="window.iframe_count -= 1"{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">Compte citoyen</div>
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
{% block bodyargs %}onload="window.iframe_count -= 1"{% endblock %}
|
||||
|
||||
{% comment %}Initialize iframe countdown {% endcomment %}
|
||||
{% block extra_scripts %}
|
||||
|
@ -15,7 +12,11 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{% trans message %}</h1>
|
||||
<h2 class="single-title">Compte citoyen</h2>
|
||||
<div id="welcome">
|
||||
|
||||
<h3>{% trans message %}</h3>
|
||||
|
||||
<ul class="logout-list">
|
||||
{% for fragment in logout_list %}
|
||||
{{ fragment|safe }}
|
||||
|
@ -37,4 +38,5 @@
|
|||
<div id="continue-link">
|
||||
<a href="{{ next_url }}">{% trans "Continue logout" %}</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% extends "authentic2/base.html" %}
|
||||
{% load i18n staticfiles %}
|
||||
|
||||
{% block extra_styles %}
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}
|
||||
{% trans "Services" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block bodyargs %}
|
||||
class="narrow-page"
|
||||
{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">{% trans "Services" %}</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% if account_management %}
|
||||
<p>
|
||||
<a href="{% url 'account_management' %}">{% trans "Account Management" %}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if authorized_services %}
|
||||
<div id="login-actions">
|
||||
<h2>{% trans "Services" %}</h2>
|
||||
<ul>
|
||||
{% for service in authorized_services %}
|
||||
{% if service.actions %}
|
||||
<li>{% if service.url %}<a href="{{ service.url }}">{% endif %}{{ service.name }}{% if service.url %}</a>{% endif %}
|
||||
<div class="actions">
|
||||
{% for action in service.actions %}
|
||||
{% if action.0 == "template" %}
|
||||
{% include action.1 %}
|
||||
{% else %}
|
||||
<form action="{{ action.2 }}" method="{{ action.1 }}">
|
||||
{% if action.3 %}
|
||||
{% for key, value in action.3 %}
|
||||
<input type="hidden" name="{{ key }}" value="{{ value }}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<input type="hidden" name="next" value="/"/>
|
||||
<input type="submit" class="submit-link" value="{{ action.0 }}">
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if user.is_staff %}
|
||||
<p id="administration-link"><a href="/admin">{% trans "Administration" %}</a></p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
|
@ -1,42 +0,0 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Logging out" %}{% endblock %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page" onload="window.iframe_count -= 1"{% endblock %}
|
||||
|
||||
{% comment %}Initialize iframe coutndown {% endcomment %}
|
||||
{% block extra_scripts %}
|
||||
<script>
|
||||
window.iframe_count = 1;
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">{% trans "Logging out" %}</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{% trans message %}</h1>
|
||||
<ul class="logout-list">
|
||||
{% for fragment in logout_list %}
|
||||
{{ fragment|safe }}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<!-- Hack alert !!! block loading indefinitely by loading an inacessible IP -->
|
||||
<script>
|
||||
window.iframe_count += document.getElementsByTagName("iframe").length;
|
||||
var refresh_launched = 0;
|
||||
setInterval(function () {
|
||||
if (iframe_count == 0) {
|
||||
if (refresh_launched == 0) {
|
||||
refresh_launched = 1;
|
||||
setTimeout(function () { window.location = '{{ next_page }}' }, 300);
|
||||
}
|
||||
}
|
||||
}, {{ redir_timeout }})
|
||||
</script>
|
||||
|
||||
<div id="continue-link"><a href="{{ next_page }}">{% trans "Continue logout" %}</div>
|
||||
|
||||
{% endblock %}
|
|
@ -1,14 +1,10 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
class="narrow-page"
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}{% trans "Edit profile" %}{% endblock %}
|
||||
{% block content_header %}<div id="single-title">{% trans "Account Management" %}</div>{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="single-title">{% trans "Account Management" %}</h2>
|
||||
<div id="welcome">
|
||||
<h2>{% trans "Edit profile" %}</h2>
|
||||
</div>
|
||||
|
@ -27,4 +23,3 @@ class="narrow-page"
|
|||
</div>
|
||||
<br class="clear" />
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -1,26 +1,22 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
class="narrow-page"
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block title %}{% trans "Email change" %}{% endblock %}
|
||||
|
||||
{% block content_header %}<div id="single-title">{% trans "Account Management" %}</div>{% endblock %}
|
||||
{% block content %}
|
||||
<h2 class="single-title">{% trans "Account Management" %}</h2>
|
||||
<div id="welcome">
|
||||
<h2>{% trans "Email change" %}</h2>
|
||||
|
||||
|
||||
<div class="right">
|
||||
<form method="post" action="." class="password_change_form">
|
||||
|
||||
<p>
|
||||
Le changement de votre adresse de courriel nécessite une validation par
|
||||
courriel. Un lien va vous être envoyé par courriel. Vous devez cliquer sur ce
|
||||
lien pour valider le changement d'adresse de courriel.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="right">
|
||||
<form method="post" action="." class="password_change_form">
|
||||
{% csrf_token %}
|
||||
{% include "authentic2/form_fields.html" with form=form %}
|
||||
|
||||
|
@ -28,7 +24,6 @@ lien pour valider le changement d'adresse de courriel.
|
|||
<button type="button" onclick="location.href = '/'">{% trans "Back" %}</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<br class="clear"/>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,19 +1,13 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}Compte citoyen{% endblock %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page"{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">Compte citoyen</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{% trans "Your account is now activated" %}</h2>
|
||||
<h2 class="single-title">Compte citoyen</div>
|
||||
<div id="welcome">
|
||||
<h3>{% trans "Your account is now activated" %}</h3>
|
||||
|
||||
<p><button type="button" onclick="location.href = '/'">{% trans "Back" %}</button></p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,36 +1,28 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
class="narrow-page"
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}{% trans "Delete profile" %}{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">{% trans "Account Management" %}</div>
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="single-title">{% trans "Account Management" %}</h2>
|
||||
<div id="welcome">
|
||||
<h2>{% trans "Delete profile" %}</h2>
|
||||
<p>
|
||||
Si vous cliquez sur le bouton "confirmer" toutes vos données concernant les
|
||||
eservices seront effacées et vous ne pourrez plus les récupérer.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="right">
|
||||
<form method="post" action=".">
|
||||
{% csrf_token %}
|
||||
|
||||
<p>
|
||||
Si vous cliquez sur le bouton "confirmer" toutes vos données concernant les
|
||||
eservices seront effacées et vous ne pourrez plus les récupérer.
|
||||
</p>
|
||||
|
||||
<input type="submit" name="submit" value="{% trans 'Confirmer' %}" />
|
||||
<button type="button" onclick="location.href = '/'">{% trans "Back" %}</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br class="clear"/>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,29 +1,25 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
class="narrow-page"
|
||||
{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">{% trans "Account Management" %}</div>
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="single-title">{% trans "Account Management" %}</h2>
|
||||
|
||||
<div id="welcome">
|
||||
<h2>{% trans "Change password" %}</h2>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="right">
|
||||
<form method="post" action="." class="password_change_form">
|
||||
|
||||
<p>
|
||||
Pour modifier votre mot de passe vous devez saisir votre mot de passe actuel
|
||||
puis votre nouveau mot de passe à deux reprises. Attention de saisir votre
|
||||
nouveau mot de passe à l'identique dans les deux zones texte prévues à cet
|
||||
effet.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="right">
|
||||
<form method="post" action="." class="password_change_form">
|
||||
{% csrf_token %}
|
||||
{% include "authentic2/form_fields.html" with form=form %}
|
||||
|
||||
|
@ -31,7 +27,6 @@ effet.
|
|||
<button type="button" onclick="location.href = '/'">{% trans "Back" %}</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<br class="clear"/>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,19 +1,11 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page"{% endblock %}
|
||||
|
||||
{% block title %}Compte citoyen{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">Compte citoyen</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2 class="single-title">Compte citoyen</h2>
|
||||
<div id="welcome">
|
||||
<h2>{% trans "Password reset successfully" %}</h2>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,35 +1,26 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
class="narrow-page"
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}Compte citoyen{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">Compte citoyen</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="single-title">Compte citoyen</h2>
|
||||
|
||||
<div id="welcome">
|
||||
|
||||
{% if validlink %}
|
||||
|
||||
<div id="welcome">
|
||||
<h2>{% trans "Resetting password" %}</h2>
|
||||
<p>
|
||||
Veuillez saisir votre nouveau mot de passe et le confirmer en le saisissant une
|
||||
nouvelle fois à l'identique.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="right">
|
||||
|
||||
<form method="post" action=".">
|
||||
|
||||
<p>
|
||||
Veuillez saisir votre nouveau mot de passe et le confirmer en le saisissant une
|
||||
nouvelle fois à l'identique.
|
||||
</p>
|
||||
|
||||
{% csrf_token %}
|
||||
{% include "authentic2/form_fields.html" with form=form %}
|
||||
|
||||
|
@ -37,14 +28,13 @@ nouvelle fois à l'identique.
|
|||
<button type="button" onclick="location.href = '/'">{% trans "Back" %}</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<br class="clear"/>
|
||||
|
||||
{% else %}
|
||||
|
||||
<p>{% trans "Password reset failed" %}</p>
|
||||
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
<br class="clear"/>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,24 +1,15 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page"{% endblock %}
|
||||
|
||||
{% block title %}Compte citoyen{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">Compte citoyen</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2 class="single-title">Compte citoyen</h2>
|
||||
<div>
|
||||
<h2>{% trans "Resetting password" %}</h2>
|
||||
|
||||
<p>{% trans "Email with password reset instructions has been sent." %}</p>
|
||||
<p><button type="button" onclick="location.href = '/'">{% trans "Back" %}</button></p>
|
||||
</div>
|
||||
<br class="clear" />
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,31 +1,21 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page"{% endblock %}
|
||||
|
||||
{% block title %}Compte citoyen{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">Compte citoyen</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="single-title">Compte citoyen</h2>
|
||||
|
||||
<div id="welcome">
|
||||
<h2>{% trans "Resetting password" %}</h2>
|
||||
|
||||
<div class="right">
|
||||
<form method="post">
|
||||
<p>
|
||||
Si vous avez égaré votre mot de passe et que vous souhaitez pouvoir vous
|
||||
connecter à nouveau indiquez votre adresse électronique. Vous recevrez un
|
||||
courriel vous permettant de définir un nouveau mot de passe.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="right">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{% include "authentic2/form_fields.html" with form=form %}
|
||||
|
||||
|
@ -34,6 +24,8 @@ courriel vous permettant de définir un nouveau mot de passe.
|
|||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<br class="clear"/>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,19 +1,14 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}class="narrow-page"{% endblock %}
|
||||
|
||||
{% block title %}Compte citoyen{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">Compte citoyen</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="single-title">Compte citoyen</h2>
|
||||
<div id="welcome">
|
||||
<h2>{% trans "Successful registration" %}</h2>
|
||||
<p>{% trans "Thank you for registering. Activation email sent." %}</p>
|
||||
<p><button type="button" onclick="location.href = '/'">{% trans "Back" %}</button></p>
|
||||
</div>
|
||||
<br class="clear" />
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,20 +1,10 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block bodyargs %}
|
||||
class="narrow-page"
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}{% trans "Registration" %} — Compte citoyen{% endblock %}
|
||||
|
||||
{% block content_header %}
|
||||
<div id="single-title">{% trans "Registration" %} — Compte citoyen</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block menu %}
|
||||
{% endblock %}
|
||||
{% block extra-body-class %}narrow-page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2 class="single-title">{% trans "Registration" %} — Compte citoyen</h2>
|
||||
<div id="welcome">
|
||||
<h2>Création de votre « compte citoyen » Montpellier Méditerranée Métropole.</h2>
|
||||
|
||||
|
|
Reference in New Issue