add templates

This commit is contained in:
Serghei Mihai 2017-07-17 17:44:20 +02:00
parent 0832deae08
commit f6f277d138
22 changed files with 656 additions and 1 deletions

View File

@ -27,7 +27,7 @@ dist: clean
install:
mkdir -p $(DESTDIR)$(prefix)/share/publik/themes/grandlyon-cut
cp -r static themes.json $(DESTDIR)$(prefix)/share/publik/themes/grandlyon-cut
cp -r static templates themes.json $(DESTDIR)$(prefix)/share/publik/themes/grandlyon-cut
dist-bzip2: dist
-mkdir sdist

View File

@ -0,0 +1,137 @@
{% extends "authentic2/base.html" %}
{% load i18n %}
{% block content %}
<div id="cut-nav">
<ul>
<li><a href="{% url 'account_management' %}#mon-compte">MON COMPTE</a></li>
<li><a href="{% url 'account_management' %}#mes-donnees-d-identite">MES DONNÉES D'IDENTITÉ</a></li>
<li><a href="{% url 'account_management' %}#mes-donnees-complementaires">MES DONNÉES COMPLÉMENTAIRES</a></li>
</ul>
</div>
<div id="cut-account">
<div class="progress">
<h2 id="mon-compte">Mon compte</h2>
<ul class="profile profile-{% if user.attributes.validation_context == 'FC' %}fc-validated{% elif user.attributes.validated and user.attributes.validation_context != 'FC' %}guichet-validated{% else %}completed{% endif %}-{% if cut_core_filled %}{% if cut_crown_filled %}3{% else %}2{% endif %}{% else %}1{% endif %}-3">
<li>DONNÉES OBLIGATOIRES</li>
<li>DONNÉES D'IDENTITÉ</li>
<li>DONNÉES COMPLÉMENTAIRES</li>
</ul>
{% if user.attributes.validated and user.attributes.validation_context == 'FC' %}
<div class="fc-validated">
<h2>VOTRE IDENTITÉ VERIFIÉE</h2>
<div class="info">
<p>Votre identité a été vérifiée le <strong>{{ user.attributes.validation_date }}</strong> par liaison à FranceConnect.
<p>L'identité vérifiée permet d'accèder à des services qui demandent une identité vérifiée.</p>
</div>
<div class="fc-block">
<p class="more-info"><a href="{{ help_url }}">En savoir +</a></p>
{% if user.fc_accounts.exists %}
{% for id, block in frontends_block_by_id.items %}
{{ block.content|safe }}
{% endfor %}
{% endif %}
</div>
<br class="clear" />
</div>
{% endif %}
{% if user.attributes.validated and user.attributes.validation_context != 'FC' %}
<div class="guichet-validated">
<h2>VOTRE IDENTITÉ CERTIFIÉE</h2>
<div class="info">
<p>Votre identité a été certifiée le <strong>{{ user.attributes.validation_date }}</strong> par un agent.
<p>L'identité certifiée permet d'accèder à des services qui demandent une identité certifiée.</p>
</div>
<div class="fc-block">
<p class="more-info"><a href="{{ help_url }}">En savoir +</a></p>
</div>
<br class="clear" />
</div>
{% endif %}
</div>
<div id="account-management">
<div class="block">
<div class="associated-email">VOTRE EMAIL ASSOCIÉ EST <span>{{ user.email }}</span></div>
<ul>
{% if allow_email_change %}
<li><a href="{% url 'email-change' %}" class="button">Modifier le courriel associé</a></li>
{% endif %}
<li><a href="{% url 'password_change' %}" class="button">Modifier le mot de passe</a></li>
{% if allow_account_deletion %}
<li><a href="{% url 'delete_account' %}" class="button">Supprimer le compte</a></li>
{% endif %}
</ul>
</div>
{% if not user.fc_accounts.exists %}
<div>
{% for id, block in frontends_block_by_id.items %}
<div id="account-management-{{ id }}" class="block">
{{ block.content|safe }}
</div>
{% endfor %}
</div>
{% endif %}
</div>
<br class="clear" />
<div id="profile">
{% if profile %}
<h2 id="mes-donnees-d-identite">Mes données d'identité</h2>
<p>Elles correspondent à vos données figurant sur votre carte didentité.</p>
<ul>
{% for key, values in profile %}
{% if key == 'Nom de naissance' or key == 'Prénoms de naissance' or key == 'Civilité' or key == 'Date de naissance' or key == 'Lieu de naissance' or key == 'Pays de naissance' %}
<li><span class="field-label">{{ key|upper }}</span>
<span class="field-value">
{% if values|length == 0 %}<span class="nodata">(non spécifié)</span>
{% elif values|length == 1 %}{% if key == 'Date de naissance' %}{{ user.attributes.birthdate|date:"DATE_FORMAT" }}{% else %}{{ values.0 }}{% endif %}{% else %}
<ul>
{% for value in values %}
<li>{{ value }}</li>
{% endfor %}
</ul>
{% endif %}
</span>
</li>
{% endif %}
{% endfor %}
</ul>
<div class="edit center">{% if user.attributes.validated %}
<a href="{{ help_url }}">Modifier mes données d'identité?</a>
{% else %}
<a href="{% url 'cut-edit-core' %}" class="button">Modifier mes données didentité</a>
{% endif %}
</div>
{% endif %}
<h2 id="mes-donnees-complementaires">Mes données complémentaires</h2>
<p>Les données complémentaires enrichissent votre compte pour faciliter vos démarches.</p>
<ul>
{% for key, values in profile %}
{% if key == 'Département de naissance' or key == "Noms d'usage" or key == "Nom d'usage" or key == "Prénoms d'usage" or key == 'Numéro sur la voie' or key == 'Nom de la voie' or key == "Complément d'adresse" or key == 'Code postal' or key == 'Nom de la commune' or key == 'Pays' or key == 'Téléphone mobile personnel' or key == 'Téléphone fixe personnel' or key == 'Téléphone mobile professionnel' or key == 'Téléphone fixe professionnel' %}
<li><span class="field-label">{{ key|upper }}</span>
<span class="field-value">
{% if not values %}<span class="nodata">(non spécifié)</span>
{% elif values|length == 1 %}{{ values.0 }}{% else %}
<ul>
{% for value in values %}
<li>{{ value }}</li>
{% endfor %}
</ul>
{% endif %}
</span>
</li>
{% endif %}
{% endfor %}
</ul>
<div class="edit center">
<a href="{% url 'cut-edit-crown' %}" class="button">Compléter mes données</a>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,22 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url "account_management" %}">{% trans "Your account" %}</a>
<a href="#">{% trans "Delete account" %}</a>
{% endblock %}
{% block content %}
<div class="a2-container">
<form method="post">
{% csrf_token %}
<p>{% trans "Delete my account and all my personal datas ?" %}</p>
{{ form.as_p }}
<input type="submit" name="submit" value="{% trans "Delete" %}"/>
<input type="submit" name="cancel" value="{% trans "Cancel" %}"/>
</form>
</div>
{% endblock %}

View File

@ -0,0 +1,24 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="..">{% trans "Your account" %}</a>
<a href="">{% trans "Edit account data" %}</a>
{% endblock %}
{% block content %}
<div class="a2-container">
<form method="post">
{% csrf_token %}
{{ form.as_p }}
{% if form.instance and form.instance.id %}
<input type="submit" value="{% trans "Modify" %}"/>
<input type="submit" name="cancel" formnovalidate value="{% trans "Cancel" %}"/>
{% else %}
<input type="submit" value="{% trans "Create" %}"/>
{% endif %}
</form>
</div>
{% endblock %}

View File

@ -0,0 +1,16 @@
{% extends "../../authentic2/base.html" %}
{% load staticfiles authentic2 %}
{% block nav %}
<div id="nav"></div>
{% endblock %}
{% block extra_top_head %}
{% block extrascripts %}
{% endblock %}
{% block extra_scripts %}
{% endblock %}
{% renderblock "css" %}
{% renderblock "js" %}
{{ form.media }}
{% endblock %}

View File

@ -0,0 +1,21 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="..">{% trans "Your account" %}</a>
<a href="">{% trans "Change email" %}</a>
{% endblock %}
{% block content %}
<div class="a2-container">
<p>{% blocktrans with email=user.email %}Your current email is {{ email }}.
An email will be sent to validate the new one.{% endblocktrans %}</p>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans "Validate" %}"/>
<input type="submit" name="cancel" formnovalidate value="{% trans "Cancel" %}"/>
</form>
</div>
{% endblock %}

View File

@ -0,0 +1,12 @@
{% extends "authentic2/cut-edit.html" %}
{% block cut-edit-title %}Modifier mes données d'identité{% endblock %}
{% block form %}
<div>{{ form.last_name.label_tag }} {{ form.last_name }} {{ form.last_name.errors }}</div>
<div>{{ form.first_name.label_tag }} {{ form.first_name }} {{ form.first_name.errors }}</div>
<div>{{ form.title.label_tag }} {{ form.title }} {{ form.title.errors }}</div>
<div>{{ form.birthdate.label_tag }} {{ form.birthdate }} {{ form.birthdate.errors }}</div>
<div>{{ form.birthplace.label_tag }} {{ form.birthplace }} {{ form.birthplace.errors }}</div>
<div>{{ form.birthcountry.label_tag }} {{ form.birthcountry }} {{ form.birthcountry.errors }}</div>
{% endblock %}

View File

@ -0,0 +1,19 @@
{% extends "authentic2/cut-edit.html" %}
{% block cut-edit-title %}Modifier mes données complémentaires{% endblock %}
{% block form %}
<div>{{ form.preferred_username.label_tag }} {{ form.preferred_username }} {{ form.preferred_username.errors }}</div>
<div>{{ form.preferred_givenname.label_tag }} {{ form.preferred_givenname }} {{ form.preferred_givenname.errors }}</div>
<div>{{ form.birthdepartment.label_tag }} {{ form.birthdepartment }} {{ form.birthdepartment.errors }}</div>
<div>{{ form.home_mobile_phone.label_tag }} {{ form.home_mobile_phone }} {{ form.home_mobile_phone.errors }}</div>
<div>{{ form.home_phone.label_tag }} {{ form.home_phone }} {{ form.home_phone.errors }}</div>
<div>{{ form.professional_mobile_phone.label_tag }} {{ form.professional_mobile_phone }} {{ form.professional_mobile_phone.errors }}</div>
<div>{{ form.professional_phone.label_tag }} {{ form.professional_phone }} {{ form.professional_phone.errors }}</div>
<div>{{ form.address_number.label_tag }} {{ form.address_number }} {{ form.address_number.errors }}</div>
<div>{{ form.address_street.label_tag }} {{ form.address_street }} {{ form.address_street.errors }}</div>
<div>{{ form.address_complement.label_tag }} {{ form.address_complement }} {{ form.address_complement.errors }}</div>
<div>{{ form.address_zipcode.label_tag }} {{ form.address_zipcode }} {{ form.address_zipcode.errors }}</div>
<div>{{ form.address_city.label_tag }} {{ form.address_city }} {{ form.address_city.errors }}</div>
<div>{{ form.address_country.label_tag }} {{ form.address_country }} {{ form.address_country.errors }}</div>
{% endblock %}

View File

@ -0,0 +1,23 @@
{% extends "authentic2/base.html" %}
{% load i18n %}
{% block content %}
<div id="cut-nav">
<div class="cut-back"><a href="{% url 'account_management' %}">Revenir à mon compte</a></div>
</div>
<div id="cut-account">
<h2 class="cut-edit-title">{% block cut-edit-title %}{% endblock %}</h2>
<form method="post" action=".">
{% csrf_token %}
<div class="cut-edit">
{% block form %}
{% endblock %}
</div>
<p class="center">
<button>Enregistrer mes données</button>
</p>
</form>
</div>
{% endblock %}

View File

@ -0,0 +1,46 @@
{% extends "authentic2/base.html" %}
{% load i18n %}
{% load staticfiles %}
{% block bodyargs %}
{% endblock %}
{% block menu %}
{% endblock %}
{% block content %}
<div id="login-page" class="methods{{methods|length}}{% if not user.is_authenticated and request.session.fc_id_token %} fc-authenticated{% endif %}">
{% if not request.session.fc_id_token %}
<h2>Accéder à {% if request.partner %}la <a href="{{ request.partner.url }}" style="color: {{ request.partner.color }}">{{ request.partner.name|default:'NOM VILLE' }}</a> avec{% endif %} votre Compte usager</h2>
{% endif %}
<div id="methods">
{% for name, content in methods reversed %}
{% if methods|length == 1 %}
<h2>{% if forloop.counter0 %}{{name}}{% else %}Connexion{% endif %}</h2>
{% endif %}
<div>
{{ content|safe }}
</div>
{% if not forloop.last %}
{% if not user.is_authenticated and not request.session.fc_id_token %}
<div class="separator">{% trans "OU" %}</div>
<h2>{% trans "Connectez-vous" %}</h2>
{% endif %}
{% endif %}
{% endfor %}
</div>
{% if not request.session.fc_id_token %}
{% if registration_authorized %}
<div id="login-footer">
<h2>Pas encore de compte ?</h2>
<p><a href="{{ registration_url }}">Créer un compte</a></p>
</div>
{% endif %}
{% endif %}
</div>
{% endblock %}

View File

@ -0,0 +1,24 @@
{% load i18n authentic2 staticfiles %}
{% block content %}
<div>
<form method="post" action="">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" name="{{ submit_name }}" value="{% trans "Log in" %}"/>
{% if cancel %}
<input type="submit" name="cancel" value="{% trans 'Cancel' %}"/>
{% endif %}
</form>
</div>
<div class="login-actions">
{% if can_reset_password %}
<p>
<a href="{% url 'password_reset' %}{% if request.GET.next %}?next={{ request.GET.next|urlencode }}{% endif %}">J'ai oublié mon mot de passe</a>
</p>
{% endif %}
</div>
{% endblock %}
{% addtoblock "js-endpage" %}<script type="text/javascript" src="{% static "authentic2/js/js_seconds_until.js" %}"></script>{% endaddtoblock %}

View File

@ -0,0 +1,27 @@
{% load staticfiles %}
{% load authentic2 %}
{% load i18n %}
{% if 'nofc' not in request.GET %}
<div id="fc-button-wrapper">
<div id="fc-button">
{% if not fc_user_info %}
<a class="button" href="{% url 'fc-login-or-link' %}{% if request.GET.next or popup or registration %}?{% endif %}{% if next %}{{ next }}{% else %}{% if request.GET.next %}{{ request.GET.urlencode }}{% endif %}{% endif %}{% if popup %}&popup=1{% endif %}{% if registration %}&registration{% endif %}" title="{% trans 'Log in with FranceConnect' %}" class="connexion{% if popup %} js-oauth-popup{% endif %}"><div><img src="{% static "authentic2_auth_fc/img/FCboutons-10.svg" %}" alt="{% trans 'Log in with FranceConnect' %}"></img></div></a>
{% else %}
<span class="certified">{{ fc_user_info.given_name }} {{ fc_user_info.family_name }}{% if fc_user_info.email %}<br/>{{ fc_user_info.email }}{% endif %}</span>
<div id="fc-connecting">
<a href="{% url 'fc-registration' %}{% if request.GET.next or popup %}?{% endif %}{% if request.GET.next %}{{ request.GET.urlencode }}{% endif %}{% if popup %}&popup=1{% endif %}" title="Créez un compte avec FranceConnect" class="connexion{% if popup %} js-oauth-popup{% endif %}">
Créez un compte avec <strong>FranceConnect</strong>
</a>
</div>
{% endif %}
</div>
{% block fc-explanation %}
<p><a href="{{ about_url }}" target="_blank">{% trans "What is FranceConnect?" %}</a></p>
<p>{% blocktrans %}
FranceConnect is the solution proposed by the French state to streamline
logging in online services. You can use to connect to your account.
{% endblocktrans %}</p>
{% endblock %}
</div>
{% endif %}

View File

@ -0,0 +1,23 @@
{% load staticfiles %}
{% load i18n %}
<div id="fc-linking">
<div class="fc">
<div class="cadre">
{% if user.fc_accounts.exists %}
<div class="fc-unlink">
{% for fc_account in user.fc_accounts.all %}
{% if unlink %} <a href="{% url 'fc-unlink' pk=fc_account.pk %}">Supprimer la liaison FranceConnect</a>{% endif %}
{% endfor %}
</div>
{% else %}
<div id="fc-button-wrapper">
<div id="fc-button">
<a href="{% url 'fc-login-or-link' %}?next={% url 'account_management' %}" title="{% trans 'Link with a FranceConnect account' %}" class="connexion"><div><img src="{% static 'authentic2_auth_fc/img/FCboutons-10.svg' %}" alt="{% trans 'Link with a FranceConnect account' %}"></img></div></a>
</div>
</div>
{% endif %}
</div>
</div>
<p><a href="{{ about_url }}" target="_blank">{% trans "What is FranceConnect?" %}</a></p>
</div>

View File

@ -0,0 +1,37 @@
{% extends "authentic2_auth_fc/base.html"%}
{% load staticfiles authentic2 %}
{% load i18n %}
{% block content %}
<div class="a2-container">
<p>
{% blocktrans %}
You're about to delete the link between your user account and your FranceConnect account :
{{ fc_account }}.
{% endblocktrans %}
</p>
<p>
{% blocktrans %}
Delete this link won't delete those accounts. However, once all the links with FranceConnect
are deleted, it's no more possible to use the FranceConnect to automatically login to your
user account. It is still possible to link those accounts once again by using the
button FranceConnect on the login page.
{% endblocktrans %}
</p>
{% if no_password %}
<p>
{% blocktrans %}
Your user account has no password and remove this link may make this account inaccessible.
To avoid this situation, please provide a password.
{% endblocktrans %}
</p>
{% endif %}
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" name="unlink" value="{% trans "Unlink" %}"/>
<input type="submit" name="cancel" value="{% trans "Cancel" %}"/>
</form>
</div>
{% endblock %}

View File

@ -0,0 +1,21 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block content %}
<form method="post" id="a2-oidc-authorization-form">
<p>Acceptez-vous de partager vos données avec <strong><a href="request.partner.url" style="color: {{ request.partner.color }}">{{ request.partner.name }}</a></strong> ?
{% if scopes %}
<br /><strong>(
{% for scope in scopes %}
{% if scope == "profile" %}nom, prénoms de naissance, date de naissance, civilité, lieu de naissance, pays de naissance{% elif scope == "crown" %}nom d'usage, prénoms d'usage, adresse postale, numéro de téléphone et département de naissance{% elif scope == "email" %}adresse email{% endif %}{% if not forloop.last %},{% endif %}
{% endfor %}
)</strong>
{% endif %}
</p>
<p>Après acceptation vous serez rédirigé sur le site {{ request.partner.name }}.</p>
{% csrf_token %}
<p>
<input type="submit" name="refuse" value="{% trans "Refuse" %}">
<input type="submit" name="accept" value="{% trans "Accept" %}">
</p>
</form>
{% endblock %}

8
templates/base.html Normal file
View File

@ -0,0 +1,8 @@
{% extends "../../base.html" %}
{% block user-info %}
{{ block.super }}
{% if user.is_authenticated %}
<div class="last-login desktop-only">dernière connexion: {{ user.last_login }}</div>
{% endif %}
{% endblock %}

View File

@ -0,0 +1,22 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="../..">{% trans "Your account" %}</a>
<a href="">{% trans "Change your password" %}</a>
{% endblock %}
{% block content %}
<div class="a2-container">
<form method="post" action=".">
<p>{% blocktrans %}To change your password you must provide your current password, then provide
the new password and confirm it.
{% endblocktrans %}</p>
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Submit' %}" />
<input type="submit" name="cancel" formnovalidate value="{% trans "Cancel" %}"/>
</form>
</div>
{% endblock %}

View File

@ -0,0 +1,21 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block content %}
<div class="a2-container">
{% if validlink %}
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="{% trans 'Submit' %}" />
</form>
{% else %}
<p>{% trans "Password reset failed" %}</p>
{% endif %}
</div>
{% endblock %}

View File

@ -0,0 +1,9 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block content %}
<div id="registration_complete">
<h3>Un lien vous a été envoyé à l'adresse indiquée.</h3>
<p>Merci de cliquer sur ce lien pour <br /> continuer la création de votre compte.</p>
</div>
{% endblock %}

View File

@ -0,0 +1,44 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block content %}
<div id="registration_completion">
<h2>Finalisation de votre inscription</h2>
<h3>Informations obligatoires</h3>
<p>Votre adresse e-mail <strong>{{ email }}</strong> a été validée.<br />
Veuillez renseigner les informations suivantes.</p>
<form method="post">
{% csrf_token %}
<div>
<div>{{ form.last_name.label_tag }} {{ form.last_name }} {{ form.last_name.errors }}</div>
<div>{{ form.first_name.label_tag }} {{ form.first_name }} {{ form.first_name.errors }}</div>
<div>{{ form.password1.label_tag }}{{ form.password1 }} {{ form.password1.errors }} <span class="help_text">{{ form.password1.help_text }}</span></div>
<div>{{ form.password2.label_tag }} {{ form.password2 }} {{ form.password2.errors }}</div>
</div>
<p class="center"><input type="submit" value="Valider" /></p>
<p class="center complete_profile">ou <br />compléter mon profil</p>
<h3>Compléter mon profil</h3>
<p>Les données suivantes ne sont pas obligatoires mais permettent de compléter votre profil pour faciliter vos démarches.</p>
<div>
<div>{{ form.title.label_tag }} {{ form.title }} {{ form.title.errors }}</div>
<div>{{ form.birthdate.label_tag }} {{ form.birthdate }} {{ form.birthdate.errors }}</div>
<div>{{ form.preferred_username.label_tag }} {{ form.preferred_username }} {{ form.preferred_username.errors }}</div>
<div>{{ form.preferred_givenname.label_tag }} {{ form.preferred_givenname }} {{ form.preferred_givenname.errors }}</div>
<div>{{ form.birthplace.label_tag }} {{ form.birthplace }} {{ form.birthplace.errors }}</div>
<div>{{ form.birthcountry.label_tag }} {{ form.birthcountry }} {{ form.birthcountry.errors }}</div>
<div>{{ form.birthdepartment.label_tag }} {{ form.birthdepartment }} {{ form.birthdepartment.errors }}</div>
<div>{{ form.address_number.label_tag }} {{ form.address_number }} {{ form.address_number.errors }}</div>
<div>{{ form.address_street.label_tag }} {{ form.address_street }} {{ form.address_street.errors }}</div>
<div>{{ form.address_complement.label_tag }} {{ form.address_complement }} {{ form.address_complement.errors }}</div>
<div>{{ form.address_zipcode.label_tag }} {{ form.address_zipcode }} {{ form.address_zipcode.errors }}</div>
<div>{{ form.address_city.label_tag }} {{ form.address_city }} {{ form.address_city.errors }}</div>
<div>{{ form.address_country.label_tag }} {{ form.address_country }} {{ form.address_country.errors }}</div>
<div>{{ form.home_mobile_phone.label_tag }} {{ form.home_mobile_phone }} {{ form.home_mobile_phone.errors }}</div>
<div>{{ form.home_phone.label_tag }} {{ form.home_phone }} {{ form.home_phone.errors }}</div>
<div>{{ form.professional_mobile_phone.label_tag }} {{ form.professional_mobile_phone }} {{ form.professional_mobile_phone.errors }}</div>
<div>{{ form.professional_phone.label_tag }} {{ form.professional_phone }} {{ form.professional_phone.errors }}</div>
</div>
<p class="center"><input type="submit" value="Enregistrer mes données" /></p>
</form>
</div>
{% endblock %}

View File

@ -0,0 +1,34 @@
{% extends "authentic2/base-page.html" %}
{% load i18n %}
{% block content %}
<div id="registration">
<div id="methods">
<div id="frontend-registration-email">
<h2>Créer un compte</h2>
{% for id, block in frontends.items %}
<div id="frontend-registration-{{ id }}">
<div>
{{ block.content|safe }}
</div>
</div>
{% endfor %}
</div>
<div class="separator">{% trans "OU" %}</div>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Valider" />
</form>
</div>
<div id="login-footer">
<h2>J'ai déjà un compte</h2>
<p><a href="{% url 'auth_login' %}">Me connecter</a></p>
</div>
</div>
{% endblock %}

65
templates/theme.html Normal file
View File

@ -0,0 +1,65 @@
{% extends "../../theme.html" %}
{% block header-title %}
<h1 id="logo">
<a accesskey="1" href="{{ logo_link_url|default:'/' }}" style="background: {% if request.partner %}url({{ request.partner.logo_url }}) center left no-repeat, {% endif %}url(/static/{{ css_variant }}/images/compte-usager.png) center {% if request.partner %}right{% else%}center{% endif %} no-repeat;background-size: 50% auto">{{ global_title }}</a>
</h1>
{% endblock %}
{% block header-top %}
{% if request.partner %}
<div id="return">
<a href="{{ request.partner.url }}">{{ request.partner.name }}</a>
</div>
{% endif %}
{% if help_url %}
<div id="help" class="desktop-only">
<a href="{{ help_url }}" target="_blank">Besoin d'aide</a>
</div>
{% endif %}
{% endblock %}
{% block footer %}
<div class="textcell grid-1-3 simple desktop-only">
<div>
<h3>SIMPLE</h3>
<p><strong>Simplifiez</strong> vos démarches<br /> quotidiennes</p>
</div>
</div>
<div class="textcell grid-1-3 rapide desktop-only">
<div><h3>RAPIDE</h3>
<p>Gagnez du temps grâce au <strong>pré-remplissage</strong> des formulaires</p>
</div>
</div>
<div class="textcell grid-1-3 securise desktop-only">
<div>
<h3>SÉCURISÉ</h3>
<p>Effectuez vos démarches en toute <strong>sécurité</strong></p>
</div>
</div>
<div class="cell textcell clear desktop-only" data-ajax-cell-url="/ajax/cell/1/data_textcell-8/" data-ajax-cell-loading-message="Chargement…"><div><p>&nbsp;</p>
<p>&nbsp;</p>
</div></div>
<div class="cell textcell desktop-only" data-ajax-cell-url="/ajax/cell/1/data_textcell-9/" data-ajax-cell-loading-message="Chargement…"><div><p><strong>Un seul compte pour accéder à vos services situés<br>
sur le territoire de la Métropole de Lyon</strong></p>
</div></div>
{% endblock %}
{% block footer-bottom %}
<div id="footnote">
<p><strong>Compte usager</strong> de la Métropole de Lyon et des services situés sur son territoire.</p>
<p>Ce service est issu de la mutualisation de partenaires de la Métropole de Lyon. <a href="{{ partners_url }}">Voir les partenaires</a>.</p>
<p><a href="https://www.grandlyon.com/pratique/mentions-legales.html">Mentions légales</a></p>
</div>
{% endblock %}