{% macro widget_prototype(widget, remove_text) %} {% if widget.vars.prototype is defined %} {% set form = widget.vars.prototype %} {% set name = widget.vars.prototype.vars.name %} {% else %} {% set form = widget %} {% set name = widget.vars.full_name %} {% endif %}
{{ form_widget(form.file, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.file)}}
{% endmacro %}
Evènement
{{ form_start(form, {'attr': {'class': 'form theme-form'}}) }}
{{ form_widget(form.wording, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.wording)}}
{{ form_widget(form.descriptionCourte, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.descriptionCourte)}}
{{ form_widget(form.description, {'attr': {'class': 'form-control'}}) }}
{{form_errors(form.description)}}
{{ form_widget(form.dateDebut, {'attr': {'class': 'datepicker-here form-control digits', 'data-language': 'fr'}}) }}
{{form_errors(form.dateDebut)}}
{{ form_widget(form.dateFin, {'attr': {'class': 'datepicker-here form-control digits', 'data-language': 'fr'}}) }}
{{form_errors(form.dateFin)}}
{% for widget in form.images.children %} {{ _self.widget_prototype(widget, 'Remove Image') }} {% endfor %}
{{ form_end(form) }}