templates: update login and registration pages

Remove texte above login methods and reduce space under FC logo.
This commit is contained in:
Serghei Mihai 2019-05-17 10:05:56 +02:00
parent 1e7c2175c7
commit 9ccae22a64
4 changed files with 23 additions and 14 deletions

View File

@ -418,6 +418,12 @@ div#main-content {
}
}
div#methods {
div#fc-button-wrapper {
margin-bottom: 0;
}
div#fc-explanation-text {
margin-top: 0;
}
width: 60em;
margin: 2ex auto;
@media screen and (max-width: $common-screen-width) {

View File

@ -45,14 +45,7 @@
<div id="methods">
{% if not user.is_authenticated and not request.session.fc_id_token %}
{% for name, content in methods %}
<div{% if "admin-cut" in request.get_host %} class="agent-auth"{% endif %}><p>
{% if not forloop.last %}
Utilisez <strong>votre courriel et votre mot de passe</strong> pour accéder à votre {{ account_label }}
{% else %}
Utilisez <strong>FranceConnect</strong>
pour accéder à votre {{ account_label }}
{% endif %}
</p>
<div{% if "admin-cut" in request.get_host %} class="agent-auth"{% endif %}>
{{ content|safe }}
</div>
{% if not forloop.last %}

View File

@ -0,0 +1,8 @@
{% load i18n %}
{% block fc-explanation %}
<div id="fc-explanation-text">
<p>
<a href="{{ about_url }}" target="_blank">{% trans "What is FranceConnect?" %}</a>
</p>
</div>
{% endblock %}

View File

@ -5,14 +5,17 @@
{% include "registration/registration_steps.html" with active_step="creation" %}
<div id="registration">
<h2>Créez votre {{ account_label }}</h2>
<h2>Créer un {{ account_label }}</h2>
<p>
GRANDLYON Connect, un service de la Métropole de Lyon. Avec un seul compte, vous<br />
avez accès à différents services en ligne du territoire.{% if support_url %} <a href="{{ support_url }}">En savoir plus sur nos partenaires</a>{% endif %}.
</p>
<div id="methods">
<div id="frontend-registration-email">
{% for id, block in frontends.items %}
<div id="frontend-registration-{{ id }}">
<div>
<p>Utilisez <strong>votre courriel</strong> pour créer votre {{ account_label }}</p>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
@ -27,7 +30,6 @@
<div>{% trans "OU" %}</div>
</div>
<div>
<p>Utilisez <strong>FranceConnect</strong> pour créer votre {{ account_label }}</p>
{% for id, block in frontends.items %}
<div id="frontend-registration-{{ id }}">
<div>
@ -39,9 +41,9 @@
</div>
<div id="login-footer">
<h2>J'ai déjà un compte</h2>
<p><a href="{% url 'auth_login' %}" class="button">Me connecter</a></p>
<h2>Vous avez déjà un compte</h2>
<p><a href="{% url 'auth_login' %}" class="button">Se connecter</a></p>
</div>
</div>
</div>
{% endblock %}