{% extends "base.html.twig" %} {% block title %}SAINT-LEMAN ADmin{% endblock %} {% block body %} {##########################################} {# block body of the page for addArticle #} {##########################################}

Nouvel Article

{###################################################} {# main of the page for addArticle width the Form #} {###################################################}

Formulaire De l'Article

{{ form_start(formArticle) }}
{{ form_row(formArticle.title, {'attr':{'placeholder': "Titre de l'article",'class': "form-control small"} })}}
{{ form_row(formArticle.picture, {'attr':{'placeholder': "Picture de l'article",'class': "form-control small"} })}}
{{ form_row(formArticle.category, {'attr':{'placeholder': "Category de l'article",'class': "form-control small"} })}}
{{ form_row(formArticle.content, {'attr':{'placeholder': "Contenu l'article",'class': "form-control content"} })}}
{################################} {# Loop for the Flash Message #} {################################} {% for message in app.flashes('message') %}
{{ message }}
{% endfor %}
{{ form_row(formArticle.Valider, {'attr':{'placeholder': "valider",'class': "btn btn-primary"} })}}
{{form_end(formArticle)}}
{% endblock body %}