{{ template.icon }}

{{ template.title }}

{{ template.description }}

{{ template.sections|length }}
Section{{ template.sections|length > 1 ? 's' : '' }}
{{ template.allFields|length }}
Champ{{ template.allFields|length > 1 ? 's' : '' }}
{{ template.requiredFields|length }}
Obligatoire{{ template.requiredFields|length > 1 ? 's' : '' }}
{% for section in template.sections %}

{{ section.title }}

{% if section.fields is defined and section.fields|length > 0 %}
{% for field in section.fields %}
{{ field.label }} {% if field.required %} Obligatoire {% endif %}
Type : {% if field.type == 'text' %}Texte {% elseif field.type == 'email' %}Email {% elseif field.type == 'date' %}Date {% elseif field.type == 'datetime-local' %}Date et heure {% elseif field.type == 'textarea' %}Zone de texte {% elseif field.type == 'radio' %}Choix unique {% elseif field.type == 'checkbox' %}Choix multiple {% elseif field.type == 'rating' %}Évaluation {% else %}{{ field.type|title }}{% endif %}
{% if field.placeholder is defined %}
Exemple : {{ field.placeholder }}
{% endif %} {% if field.options is defined %}
Options : {{ field.options|join(', ') }}
{% endif %} {% if field.type == 'rating' and field.scale is defined %}
Échelle : 1 à {{ field.scale }}
{% endif %}
{% endfor %}
{% else %}

Aucun champ défini pour cette section

{% endif %}
{% endfor %}