Rajoute un lien sur le login_switch pour reset le mdp avec une explication pour les gens utilisant le CAS

This commit is contained in:
Tom Hubrecht 2021-01-21 23:43:38 +01:00
parent 830309225a
commit d9490ba34a
2 changed files with 32 additions and 10 deletions

View file

@ -37,6 +37,22 @@ html, body {
flex-flow: row wrap;
}
#container-footer {
width: 100%;
background: #505160;
color: white;
}
#container-footer p {
padding: 5px;
font-weight: initial;
font-size: 1em;
margin: 0;
}
#container-footer a {
color: red;
}
/*
Background color definitions
*/

View file

@ -7,16 +7,22 @@
{% block content %}
<div id="container-content">
<a class="big-button cas" href="{% url "authens:login.cas" %}?next={{ next| urlencode }}">
{% trans "Clipper" %}
</a>
<a class="big-button exte" href="{% url "authens:login.pwd" %}?next={{ next| urlencode }}">
{% trans "Mot de passe" %}
</a>
{% if oldcas %}
<a class="big-button oldcas" href="{% url "authens:login.oldcas" %}?next={{ next| urlencode }}">
{% trans "Vieilleux" %}
<a class="big-button cas" href="{% url "authens:login.cas" %}?next={{ next| urlencode }}">
{% trans "Clipper" %}
</a>
{% endif %}
<a class="big-button exte" href="{% url "authens:login.pwd" %}?next={{ next| urlencode }}">
{% trans "Mot de passe" %}
</a>
{% if oldcas %}
<a class="big-button oldcas" href="{% url "authens:login.oldcas" %}?next={{ next| urlencode }}">
{% trans "Vieilleux" %}
</a>
{% endif %}
</div>
{% if oldcas %}
<div id="container-footer">
{% url "authens:reset.pwd" as url_reset %}
<p>{% blocktrans %}Si votre fin de scolarité approche, créez un mot de passe pour votre compte pour bénéficier de la connexion vieilleux : <a href="{{ url_reset }}">Créer un mot de passe</a>.{% endblocktrans %}</p>
</div>
{% endif %}
{% endblock %}