templates: include class with section slug in cartads pieces widget (#35337)

This commit is contained in:
Frédéric Péters 2019-09-17 09:44:14 +02:00
parent 9f2ceb50bc
commit 4c1dc49573
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
{% if form_tracking_code %}
{% with webservice.cartads_pieces.data as pieces %}
{% for piece in pieces %}
{% if piece.section_start %}<div class="grid-1-1 newline"><h3>{{ piece.section_start }}</h3></div>{% endif %}
{% if piece.section_start %}<div class="grid-1-1 newline {{ piece.section_start|slugify }}"><h3>{{ piece.section_start }}</h3></div>{% endif %}
{% if piece.section_start == "Cerfa" %}
{% for cerfa in webservice.cartads_cerfa.data %}
<p>Télécharger : <a href="{{ cerfa.url }}">{{ cerfa.text }}</a></p>