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

SAINT LEMAN: ADMIN

{####################################} {# navbar of the Admin page #} {####################################} {####################################} {# main of the Admin page #} {####################################}
{#################################} {# Loop for the Flash Message #} {#################################} {% for message in app.flashes('message') %}
{{ message }}
{% endfor %}

Produit en ligne

{#################################} {# loop retrieving each product #} {#################################} {% for product in products%} {% endfor %}
Name Type Description Picture Prix/EURo Option
{{product.getName()}} {{product.getType()}} {{product.getDescription()}} picture of product {{product.getPrice()}}

Article en ligne

{#################################} {# loop retrieving each article #} {#################################} {% for article in articles%}

TITRE: {{article.getTitle()}}

picture of article

CONTENU: {{article.getContent()}}

DATE PUBLIE: {{article.getCreatedAt()|date("d/m/y")}}

CATEGORIE: {{ article.getCategory().getTitle()}}

{% endfor %}
{#################################} {# loop retrieving each Category #} {#################################} {% for category in categories%} {% endfor %}
Titre Description Option
{{category.title}} {{category.description}}
{% endblock body %}