Enquête de Satisfaction

Clinique Les Genêts

{{ survey.title }}

{% if survey.description %}

{{ survey.description }}

{% endif %} {% if survey.expiryDate %}
Cette enquête expire le {{ survey.expiryDate|date('d/m/Y') }}
{% endif %}
{% set groupedQuestions = survey.questions|group_by('section') %} {% for sectionTitle, questions in groupedQuestions %}

{{ sectionTitle }}

{% for q in questions %}
{% if q.type == 'text' or q.type == 'email' %} {% elseif q.type == 'date' or q.type == 'datetime-local' %} {% elseif q.type == 'textarea' %} {% elseif q.type == 'radio' and q.options is defined %}
{% for option in q.options %} {% endfor %}
{% elseif q.type == 'checkbox' and q.options is defined %}
{% for option in q.options %} {% endfor %}
{% elseif q.type == 'rating' %}
{% for i in 1..(q.scale|default(5)) %} {% endfor %}
{% if q.labels is defined %}
{{ q.labels.min|default('Très insatisfait') }} {{ q.labels.max|default('Très satisfait') }}
{% endif %}
{% else %} {% endif %}
{% endfor %}
{% endfor %}