Projet

Général

Profil

0001-templates-do-not-load-twice-form-media-in-authentic-.patch

Frédéric Péters, 18 septembre 2018 12:32

Télécharger (2,16 ko)

Voir les différences:

Subject: [PATCH] templates: do not load twice form media in authentic pages
 (#26472)

 .../authentic2/login_password_form.html                |  2 --
 .../registration/registration_completion_form.html     | 10 ----------
 .../tournai/authentic2/login_password_form.html        |  1 -
 3 files changed, 13 deletions(-)
templates/variants/strasbourg-2018/authentic2/login_password_form.html
12 12
<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>
13 13
{% endif %}
14 14
</div>
15

  
16
{{ form.media }}
templates/variants/strasbourg-2018/registration/registration_completion_form.html
1 1
{% extends "authentic2/base-page.html" %}
2 2
{% load i18n %}
3 3

  
4
{% block css %}
5
{{ block.super }}
6
{{ form.media.css }}
7
{% endblock %}
8

  
9
{% block extra_scripts %}
10
{{ block.super }}
11
{{ form.media.js }}
12
{% endblock %}
13

  
14 4
{% block content %}
15 5
      <h1>{% trans "Registration" %}</h1>
16 6
      <p>{% trans "Please fill the form to complete your registration" %}</p>
templates/variants/tournai/authentic2/login_password_form.html
13 13
</div>
14 14

  
15 15
</form>
16
{{ form.media }}
17
-