{% extends 'base.html.twig' %} {% block title %}{{parent()}}: Modification des enseignants de la Formation {{ formation.designation }}{% endblock %} {% block body %} {% include 'breadcrumb.html.twig' %}

Sélectionner les profs de la formation

{{ form_start(form, {'method': 'post', 'action': path('formation_edit_profs', {'id': formation.id })}) }} {% if form.delete is not empty %}
Supprimer des profs :
{% for checkbox in form.delete %}
{{ form_label(checkbox, checkbox.vars.label) }} {{ form_widget(checkbox, {'attr': {'class': 'ui checkbox'}}) }}

{% endfor %}
{% endif %}
Ajouter des profs :
{{ form_widget(form.prof, {'attr': {'class': 'ui fluid search dropdown'}}) }}
{{ form_end(form) }}
{% endblock %}