Projet

Général

Profil

0015-nancy-en-direct-simplify-custom-forms_of_category-ce.patch

Lauréline Guérin, 23 avril 2020 11:44

Télécharger (2,25 ko)

Voir les différences:

Subject: [PATCH 15/19] nancy-en-direct: simplify custom forms_of_category cell
 (#40883)

 .../combo/wcs/forms_of_category.html          | 31 +------------------
 1 file changed, 1 insertion(+), 30 deletions(-)
templates/variants/nancy-en-direct/combo/wcs/forms_of_category.html
1
{% extends 'combo/wcs/forms_of_category.html' %}
1 2
{% load assets i18n %}
2
{% block cell-content %}
3 3

  
4 4
{% block cell-header %}
5 5
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %}
......
10 10
</div>
11 11
{% endif %}
12 12
{% endblock %}
13

  
14
<div class="wcs-forms-of-category-{{slug}}">
15
<ul>
16
{% for form in forms %}
17
<li class="{% if form.authentication_required %}required-authentication{% endif %}
18
           {% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %}
19
           {% for keyword in form.keywords %}keyword-{{keyword|slugify}} {% endfor %}
20
           {% if form.redirection %}is-redirection{% endif %}"
21
  ><a href="{{ form.url }}tryauth">{{ form.title }}</a>
22
  {% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %}
23
  </li>
24
{% endfor %}
25

  
26
{% if more_forms %}
27
<li class="more-items"><a>+</a></li>
28
{% for form in more_forms %}
29
<li style="display: none" class="additional-form {% if form.authentication_required %}required-authentication{% endif %}
30
           {% for context in form.required_authentication_contexts %}required-{{context}}-authentication {% endfor %}
31
           {% for keyword in form.keywords %}keyword-{{keyword|slugify}} {% endfor %}
32
           {% if form.redirection %}is-redirection{% endif %}"
33
  ><a href="{{ form.url }}tryauth">{{ form.title }}</a>
34
  {% if form.description %}<div class="description">{{ form.description|safe }}</div>{% endif %}
35
  </li>
36
{% endfor %}
37
{% endif %}
38

  
39
</ul>
40
</div>
41
{% endblock %}
42
-