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

Article

Article / Modifier Article
{% set k=1 %} {% for r in prod.images %} {% set k=k+1 %} {% endfor %}
{{ form_start(form) }}
{{ form_widget(form.Intitule,{ 'attr': {'class': 'form-control'} }) }}
{{ form_widget(form.Ar_Ref,{ 'attr': {'class': 'form-control'} }) }}
{{ form_widget(form.Fa_id,{ 'attr': {'class': 'form-control'} }) }}
{{ form_widget(form.Description,{ 'attr': {'class': 'form-control summernote'} }) }}
{{ form_label(form.Imageprincipal, 'Image Principal', { 'label_attr': { 'class': 'btn btn-info' }}) }}
{{ form_widget(form.Imageprincipal,{ 'attr': {'id': 'dropify-event','class': 'filebtn'} }) }}
{{ form_errors(form.Imageprincipal) }}
{% if prod.Imageprincipal %} {% else %} {% endif %}
{{ form_rest(form) }} {{ form_end(form) }}
{{ form_start(form5) }} {{ form_rest(form5) }} {{ form_end(form5) }} {% for t in tar %} {% endfor %}
Article categorie Prix unitaire Date création Date Modification Actions
{{ ref.intitule }} {{ form_widget(form5.categorie,{ 'attr': {'class': 'form-control'} }) }}
{{ form_widget(form5.prixunitaire,{ 'attr': {'class': 'form-control'} }) }}
{{ form_start(form2) }} {{ form_rest(form2) }} {{ form_end(form2) }} {% set k=0 %} {% for r in prod.images %} {% set k=k+1 %} {% endfor %}
Image Actions
{{ form_label(form2.Image, 'Nouvelle image ', { 'label_attr': { 'class': 'btn btn-info' }}) }}
{{ form_widget(form2.Image,{ 'attr': {'id': 'dropify-event','class': 'filebtn'} }) }}
{{ form_errors(form2.Image) }}
{{ form_start(form3) }} {{ form_rest(form3) }} {{ form_end(form3) }} {% for i in ingredient %} {% endfor %}
Image Intitule Description Actions
{{ form_label(form3.image, 'Nouvelle image ', { 'label_attr': { 'class': 'btn btn-info' }}) }}
{{ form_widget(form3.image,{ 'attr': {'id': 'dropify-event','class': 'filebtn'} }) }}
{{ form_errors(form3.image) }}
{{ form_widget(form3.intitule,{ 'attr': {'class': 'form-control'} }) }} {{ form_widget(form3.description,{ 'attr': {'class': 'form-control summernote'} }) }}
{{ i.description|raw() }}
{% endblock %}