From 467e7abf7ac0035c3330fa62a5d4fc432164af5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Fri, 10 Feb 2023 20:06:41 +0000 Subject: [PATCH] Embellissement de la page d'atelier, mes ateliers et des ateliers suivis. Ajout aussi d'une page d'accueil --- templates/atelier/index.html.twig | 88 ++++++++++++----------- templates/atelier/index_inscrit.html.twig | 72 ++++++++++--------- templates/components/navbar.html.twig | 4 +- templates/pages/index.html.twig | 47 ++++++++---- templates/user/index.html.twig | 2 +- 5 files changed, 122 insertions(+), 91 deletions(-) diff --git a/templates/atelier/index.html.twig b/templates/atelier/index.html.twig index c164b6c..8b8a194 100644 --- a/templates/atelier/index.html.twig +++ b/templates/atelier/index.html.twig @@ -3,51 +3,55 @@ {% block title %}Atelier index{% endblock %} {% block body %} -

Liste des Ateliers

+
+
+

Liste des Ateliers

+
- {% if (ateliers | length) > 0 %} - - - - - - - - - - - {% for atelier in ateliers %} + {% if (ateliers | length) > 0 %} +
+
IdNomDescriptionActions
+ - - - - + + + - {% endfor %} - -
{{ atelier.id }}{{ atelier.nom }}{{ atelier.description | raw }} -
- Afficher - {% if app.user and app.user == atelier.instructeur %} - Modifier - {% else %} - - {% endif %} -
-
NOMDESCRIPTIONACTIONS
+ + + {% for atelier in ateliers %} + + {{ atelier.nom }} + {{ atelier.description | raw }} + +
+ Afficher + {% if app.user and app.user == atelier.instructeur %} + Modifier + {% else %} + + {% endif %} +
+ + + {% endfor %} + + -
- Créer atelier + + {% else %} + + {% endif %}
- {% else %} - - {% endif %} +
{% endblock %} diff --git a/templates/atelier/index_inscrit.html.twig b/templates/atelier/index_inscrit.html.twig index 9fd43fd..f9bde00 100644 --- a/templates/atelier/index_inscrit.html.twig +++ b/templates/atelier/index_inscrit.html.twig @@ -3,39 +3,43 @@ {% block title %}Atelier suivis{% endblock %} {% block body %} -

Liste des Atelier suivis

- - {% if (ateliers | length) > 0 %} - - - - - - - - - - - {% for atelier in ateliers %} - - - - - - - {% endfor %} - -
IdNomDescriptionActions
{{ atelier.id }}{{ atelier.nom }}{{ atelier.description | raw }} -
- Afficher -
-
- - {% else %} - -