{% extends '::base2.html.twig' %} {% block title %}Gestion Demande - Prestation{% endblock %} {% block stylesheets %}{{ parent() }}{% endblock %} {% block body %}
{% if app.request.attributes.get('_route') == "millesima_add_other_prestation" %}

Ajouter Prestation (Bonus) Nouveau

{% elseif app.request.attributes.get('_route') == "millesima_edit_other_prestation" %}

Modifier Prestation (Bonus)

{% endif %}
{#
Formulaire Ajout Fournisseur
#}
{% if app.request.hasPreviousSession %} {% for type, messages in app.session.flashbag.all() %} {% for message in messages %} {% endfor %} {% endfor %} {% endif %} {% if app.request.attributes.get('_route') == "millesima_add_other_prestation" %} {{ form_start(form, {'method': 'post', 'action': path('millesima_add_other_prestation',{'id':id}), 'attr': {'class': 'bonus_form'}}) }} {% elseif app.request.attributes.get('_route') == "millesima_edit_other_prestation" %} {{ form_start(form, {'method': 'post', 'action': path('millesima_edit_other_prestation',{'id':id}), 'attr': {'class': 'bonus_form'}}) }} {% endif %}
{{ form_label(form.nom, 'Nom *') }} {{ form_widget(form.nom, { 'attr': {'class': 'form-control','required':true} }) }}
{{ form_errors(form.nom) }}
{{ form_label(form.Description, 'Description *') }} {{ form_widget(form.Description, { 'attr': {'class': 'form-control','required':true} }) }}
{{ form_errors(form.Description) }}
{{ form_label(form.quantity, 'Quantité *') }} {{ form_widget(form.quantity, { 'attr': {'class': 'form-control','required':true,'min':1} }) }}
{{ form_errors(form.quantity) }}
{{ form_label(form.price, 'Prix *') }} {{ form_widget(form.price, { 'attr': {'class': 'form-control','required':true} }) }}
{{ form_errors(form.price) }}
{{ form_label(form.tva, 'TVA *') }} {{ form_widget(form.tva, { 'attr': {'class': 'form-control','required':true} }) }}
{{ form_errors(form.tva) }}
{% if app.request.attributes.get('_route') == "millesima_add_other_prestation" %} {% elseif app.request.attributes.get('_route') == "millesima_edit_other_prestation" %} {% endif %}
{{ form_end(form) }}
{% for b in bonus %} {% endfor %}
Nom Description Quantité Prix TVA Action
{{ b.nom }} {{ b.Description }} {{ b.quantity }} {{ b.price }} {{ b.tva }}
{% block javascripts %} {{ parent() }} {% endblock %} {% endblock %}