{% import 'wtf.j2' as wtf %} {% macro render_field(field) %} {{ field.label }} {{ field(**kwargs)|safe }} {% if field.errors %} {% endif %} {% endmacro %}
{{ form.evaluation_id }} {{ form.csrf_token }} {{ render_field(form.surveillants) }} {{ render_field(form.batiment) }} {{ render_field(form.salle) }} {{ render_field(form.nb_rangs) }} {{ render_field(form.etiquetage) }} {% if form.has_groups %} {{ render_field(form.groups, size=form.nb_groups) }} {% endif %} {{ render_field(form.file_format) }}

Explications