{% 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 %}