{% extends 'base.html.twig' %} {% block title %}{{ formulaire.title }}{% endblock %} {% block body %}

{{ formulaire.title }}

{% if formulaire.description %}

{{ formulaire.description }}

{% endif %}
{% for champ in champs|sort((a,b) => a.position <=> b.position) %}
{% set name = 'field_' ~ champ.id %} {% if champ.type == 'text' %} {% elseif champ.type == 'textarea' %} {% elseif champ.type == 'email' %} {% elseif champ.type == 'number' %} {% elseif champ.type == 'checkbox' %} {% elseif champ.type == 'radio' %} {% for option in champ.options %} {% endfor %} {% elseif champ.type == 'select' %} {% elseif champ.type == 'file' %} {% elseif champ.type == 'date' %} {% endif %}
{% endfor %}
{% endblock %}