{% if form_action == 'geo_ent_add' %} {{ form_start(form, {'attr': {'class': 'form-horizontal', 'action': path(form_action)}}) }} {% else %} {{ form_start(form, {'attr': {'class': 'form-horizontal'}}) }}{#Quand le formulaire est en mode EDIT, il ne faut pas ajouter 'action', cela perturbe le contrôleur#} {% endif %}
{{ form_widget(form.code, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.Geo.Code' | trans}}"}}) }} {{ form_label(form.code, 'Form.Geo.Code' | trans) }}
{{ form_widget(form.nameEn, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.NameEn' | trans}}"}}) }} {{ form_label(form.nameEn, 'Form.NameEn' | trans) }}
{{ form_widget(form.nameFr, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.NameFr' | trans}}"}}) }} {{ form_label(form.nameFr, 'Form.NameFr' | trans) }}
{{ form_widget(form.namePt, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.NamePt' | trans}}"}}) }} {{ form_label(form.namePt, 'Form.NamePt' | trans) }}
{{ form_widget(form.nameAr, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.NameAr' | trans}}"}}) }} {{ form_label(form.nameAr, 'Form.NameAr' | trans) }}
{{ form_widget(form.ensemble, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Geo.Ensemble'|trans}}"}}) }} {{ form_label(form.ensemble, 'Form.Geo.Ensemble' | trans) }}
{{ form_widget(form.parent, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Geo.Parent'|trans}}"}}) }} {{ form_label(form.parent, 'Form.Geo.Parent' | trans) }}
{{'Form.Select.Country' | trans}}
{{ form_widget(form.countries, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Select.Country'|trans}}"}}) }} {#{ form_label(form.countries, 'Form.Select.Country' | trans) }#}
{{ form_widget(form.description, {'attr': {'class': 'form-control', 'row':'1', 'placeholder':"{{'Form.Description'|trans}}"}}) }} {{ form_label(form.description, 'Form.Description' | trans) }}
{{ form_rest(form) }} {{ form_end(form) }}