{% block collection_widget %} {% apply spaceless %} {# # This is almost a copy/paste of jquery.collection.html.twig, we can't use it as it also # use form_widget. Note that we also use form_widget(prototype) instead of form_row(prototype) # to avoid generating extra markup. #} {% if prototype is defined %} {% set attr = attr|merge({'data-prototype': form_widget(prototype)}) %} {% set attr = attr|merge({'data-prototype-name': prototype.vars.name}) %} {% endif %} {% set attr = attr|merge({'data-allow-add': allow_add ? 0 : 0}) %} {% set attr = attr|merge({'data-allow-remove': allow_delete ? 0 : 0 }) %} {% set attr = attr|merge({'data-name-prefix': full_name}) %}
{# Don't forget to add the collection attributes in your markup #}
{# # we can't form_widget(form) as it would render parent markup for a collection, so # we iterate manually on children #} {% for item in form %} {{ form_widget(item) }} {% endfor %}
Date de l'intervention Formateur Nombre d'heures Notes
{% endapply %} {% endblock %} {% block ActionType_widget %} {# widget_attributes will generate class="item" from the DiscountCollectionType.entry_options configuration #} {{ form_widget(form.date_intervention) }} {{ form_widget(form.nomFormateur) }} {{ form_widget(form.nombre_dheure) }} {{ form_widget(form.notes) }} {% endblock %}