{% autoescape false %} {{ form_start(form, {attr: attr|default({})}) }} {{ form_row(form.name) }}
{{ '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 }} |
|
{{ 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}}
{{ 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 %}