{% autoescape false %} {{ form_start(form, {attr: attr|default({})}) }} {{ form_row(form.name) }}
{{ form_row(form.type) }}
{{ form_row(form.status) }}
{{ form_row(form.level) }}
{{ form_row(form.random) }}
{{ form_row(form.startAt) }}
{{ form_row(form.endAt) }}

{% if questions is defined and questions is not empty %} {% for question in questions %} {% endfor %} {% endif %}
{{ 'question.label.id'|trans({}, 'admin') }} {{ 'question.label.wording'|trans({}, 'admin') }} {{ 'question.label.propositions'|trans({}, 'admin') }} {{ 'question.label.level'|trans({}, 'admin') }}
{% set value = (question.isSelected is defined and question.isSelected) ? 1 : 0 %} {{ question.id }} {{ question.wording }}
    {% for proposition in question.propositions %}
  • {{ proposition.wording }} {{ (proposition.valid) ? '' : '' }}
  • {% endfor %}
{{ question.level }} {% if question.theme and question.theme is not empty %} {{ question.theme.id }} {% endif %} {{ question.level }} {{ question.type }} {{ question.media }}

Sélectionnée(s): {{ (quiz is defined) ? quiz.questions|length : 0}}

Filtres

{{ form_widget(form.save, {'label': (quiz is defined) ? 'label.edit' : 'label.create'}) }} {{ (quiz is defined) ? form_widget(form.save_and_create, {'label': 'label.save_and_keep'}) : form_widget(form.save_and_create, {'label': 'label.save_and_create_new'}) }} {% if include_back_to_home_link|default(true) %} {{ 'action.back_to_list'|trans }} {% endif %}

{{ form_end(form) }} {% endautoescape %}