Commit d4debe85 authored by Mat's avatar Mat
Browse files

twig formulaire, mise en forme create et update

parent e8a7b9cb
......@@ -6,5 +6,31 @@
{% block body %}
<h2>{{ block('title') }}</h2>
{{ form(formAssociation) }}
<a href="{{ path('asso_association_read') }}"><i class="fas fa-arrow-left fa-fw"></i>Retour vers la liste</a>
{{ form_start(formAssociation) }}
{{ form_errors(formAssociation) }}
{{ form_label(formAssociation.nom) }}
{{ form_widget(formAssociation.nom) }}
{{ form_errors(formAssociation.nom) }}
{{ form_label(formAssociation.objetSocial) }}
{{ form_widget(formAssociation.objetSocial) }}
{{ form_errors(formAssociation.objetSocial) }}
{{ form_label(formAssociation.email) }}
{{ form_widget(formAssociation.email) }}
{{ form_errors(formAssociation.email) }}
{{ form_label(formAssociation.tva) }}
{{ form_widget(formAssociation.tva) }}
{{ form_errors(formAssociation.tva) }}
<hr>
{{ form_label(formAssociation.enregistrer) }}
{{ form_widget(formAssociation.enregistrer) }}
{{ form_end(formAssociation) }}
{# form_end appelle automatiquement form_rest #}
{% endblock %}
......@@ -6,5 +6,31 @@
{% block body %}
<h2>{{ block('title') }}</h2>
{{ form(formAssociation) }}
<a href="{{ path('asso_association_read') }}"><i class="fas fa-arrow-left fa-fw"></i>Retour vers la liste</a>
{{ form_start(formAssociation) }}
{{ form_errors(formAssociation) }}
{{ form_label(formAssociation.nom) }}
{{ form_widget(formAssociation.nom) }}
{{ form_errors(formAssociation.nom) }}
{{ form_label(formAssociation.objetSocial) }}
{{ form_widget(formAssociation.objetSocial) }}
{{ form_errors(formAssociation.objetSocial) }}
{{ form_label(formAssociation.email) }}
{{ form_widget(formAssociation.email) }}
{{ form_errors(formAssociation.email) }}
{{ form_label(formAssociation.tva) }}
{{ form_widget(formAssociation.tva) }}
{{ form_errors(formAssociation.tva) }}
<hr>
{{ form_label(formAssociation.enregistrer) }}
{{ form_widget(formAssociation.enregistrer) }}
{{ form_end(formAssociation) }}
{# form_end appelle automatiquement form_rest #}
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment