Projet

Général

Profil

0003-cells-add-block-in-forms_of_category.html-to-make-cu.patch

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

Télécharger (1,28 ko)

Voir les différences:

Subject: [PATCH 3/3] cells: add block in forms_of_category.html to make
 customization easier (#40883)

 combo/apps/wcs/templates/combo/wcs/forms_of_category.html | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
combo/apps/wcs/templates/combo/wcs/forms_of_category.html
1 1
{% load assets i18n %}
2 2
{% block cell-content %}
3

  
4
{% block cell-header %}
5 3
{% if forms or combo_display_even_empty_categories %}
4
{% block cell-header %}
6 5
<h2>{{ title }}</h2>
7 6
{% include "combo/asset_picture_fragment.html" %}
8 7
{% if description %}
......
10 9
{{ description|safe }}
11 10
</div>
12 11
{% endif %}
13
{% endif %}
14 12
{% endblock %}
15 13

  
16
{% if forms or combo_display_even_empty_categories %}
17 14
<div class="wcs-forms-of-category-{{slug}}">
15
{% block cell-top-content %}{% endblock cell-top-content %}
18 16
<ul>
19 17
{% for form in forms %}
20 18
<li class="{{ form.css_classes|join:" " }}"
21
-