{% extends 'base_backend.html.twig' %} {% block body %}

Promotion

Promotion article / Liste Promotion article
{{ form_start(form4) }} {{ form_rest(form4) }} {{ form_end(form4) }} {% for p in promotion %} {% if p.promo.statut==1 %} {% endif %} {% endfor %}
Intitule Pourcentage Article Catégorie Date début Date fin Actions
{{ form_widget(form4.intitule,{ 'attr': {'class': 'form-control'} }) }}
{{ form_widget(form4.pourcentage,{ 'attr': {'class': 'form-control'} }) }}%
{{ form_widget(form4.article,{ 'attr': {'class': 'form-control'} }) }}
{{ form_widget(form4.categorie,{ 'attr': {'class': 'form-control'} }) }}
{{ form_widget(form4.debut,{ 'attr': {'class': 'form-control'} }) }}
{{ form_widget(form4.fin,{ 'attr': {'class': 'form-control'} }) }}
{% if p.promo.statut =='1'%} {% else %} {% endif %}
{% for p in promotion %} {% if p.promo.statut==0 %} {% endif %} {% endfor %}
Intitule Pourcentage Article Catégorie Date début Date fin Actions
{% if p.promo.statut =='1'%} {% else %} {% endif %}
{% endblock %}