{{ 'modal.edit.event.title1'| trans }}

{# #}
{{ form_start(formEdit,{'action':path('update_calendar'),'name':'editEvent','id':'editEvent'}) }}
{{ form_widget(formEdit.title,{ 'attr': {'class': 'titleEdit form-control', 'placeholder': 'modal.add.event.title2' | trans,'name':'title','id':'title','required':'required'} }) }}
{{ form_widget(formEdit.description,{ 'attr': {'class': 'descriptionEdit form-control', 'placeholder': 'modal.add.event.title3' | trans,'name':'description','id':'description','required':'required'} }) }}
{{ form_widget(formEdit.start,{ 'attr': {'class': 'startEdit form-control', 'placeholder': 'modal.add.event.title4' | trans,'name':'start','id':'start','value':'now'|date} }) }}
{{ form_widget(formEdit.end,{ 'attr': {'class': 'endEdit form-control', 'placeholder': 'modal.add.event.title5' | trans,'name':'end','id':'end','value':'now'|date} }) }}
{{ 'page.event.list.title6' | trans }} {{ form_widget(formEdit.registrationStatus,{ 'attr': {'class': 'js-switch','type': 'checkbox'} }) }}
{#
#} {# #} {# {{ form_widget(formEdit.file,{ 'attr': {'class': 'fileEdit form-control','name':'picture','id':'picture','required':'required'} }) }}#} {#
#}
{% for gallerie in form.gallerie %}
{{ form_widget(gallerie.name,{'attr':{'class':'form-controller','required':true}} ) }}
{{ form_widget(gallerie.file,{'attr':{'class':'form-controller','required':true}} ) }}
{% if app.request.locale == 'ar' %} Card image cap {% else %} Card image cap {% endif %}
{% if gallerie.vars.data | length <1 %} {% else %} {% endif %}
{% endfor %}
{{ form_widget(formEdit.className,{ 'attr': {'class': 'colorEdit form-control','name':'color','id':'color','required':'required'} }) }}
{{ form_end(formEdit) }}