18 lines
794 B
HTML
18 lines
794 B
HTML
{% extends "qommon/forms/widgets/comment.html" %}
|
|
|
|
{% block widget-content %}
|
|
{% 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 {{ piece.section_start|slugify }}"><h3>{{ piece.section_start }}</h3></div>{% endif %}
|
|
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-3" view_name=publisher.get_request.view_name only %}
|
|
{% endfor %}
|
|
{% endwith %}
|
|
{% if publisher.get_request.view_name != 'validation' %}
|
|
{% include "qommon/forms/widgets/includes/cartads-js.html" only %}
|
|
{% endif %}
|
|
{% else %}
|
|
<div class="infonotice">Prévisualisation impossible.</div>
|
|
{% endif %}
|
|
{% endblock %}
|