Projet

Général

Profil

0009-toulouse-2022-remove-arrow-before-reset-password-lin.patch

Nicolas Roche, 16 septembre 2022 15:08

Télécharger (1,53 ko)

Voir les différences:

Subject: [PATCH 09/13] toulouse-2022: remove arrow before reset password link
 (#69188)

 .../authentic2/login_password_form.html       | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 templates/variants/toulouse-2022/authentic2/login_password_form.html
templates/variants/toulouse-2022/authentic2/login_password_form.html
1
{% extends "authentic2/login_password_form.html" %}
2
{% load i18n %}
3

  
4
{% block actions %}
5
{% if can_reset_password or registration_authorized %}
6
<div class="login-actions">
7
  <ul>
8
    {% if can_reset_password %}
9
    <li>
10
      <p>
11
        {# only remove the "→" before "Forgot password?" #}
12
        {% trans "Forgot password?" %}
13
        <a href="{% url 'password_reset' %}{% if request.GET.next %}?next={{ request.GET.next|urlencode }}{% endif %}">
14
          {% trans "Reset it!" %}
15
        </a>
16
      </p>
17
    </li>
18
    {% endif %}
19
    {% if registration_authorized and not hide_login_registration_link %}
20
    <li><p>→ {% trans "Not a member?" %} <a href="{{ registration_url }}">{% trans "Register!" %}</a></p></li>
21
    {% endif %}
22
  </ul>
23
</div>
24
{% endif %}
25
{% endblock %}
0
-