From c0357d6947a05725571b370bb86a9e626c2fa556 Mon Sep 17 00:00:00 2001 From: Aymeric SERRA Date: Thu, 9 Feb 2023 09:23:54 +0100 Subject: [PATCH] Modification mise en page liste ateliers quand il n'y a pas encore d'ateliers --- templates/atelier/index.html.twig | 81 ++++++++++++++++--------------- 1 file changed, 43 insertions(+), 38 deletions(-) diff --git a/templates/atelier/index.html.twig b/templates/atelier/index.html.twig index 6915971..c164b6c 100644 --- a/templates/atelier/index.html.twig +++ b/templates/atelier/index.html.twig @@ -3,46 +3,51 @@ {% block title %}Atelier index{% endblock %} {% block body %} -

Atelier index

+

Liste des Ateliers

- - - - - - - - - - - {% for atelier in ateliers %} + {% if (ateliers | length) > 0 %} +
IdNomDescriptionActions
+ - - - - + + + + + + + {% for atelier in ateliers %} + + + + + - - {% else %} - - - - {% endfor %} - -
{{ atelier.id }}{{ atelier.nom }}{{ atelier.description | raw }} -
- Afficher - {% if app.user and app.user == atelier.instructeur %} +
IdNomDescriptionActions
{{ atelier.id }}{{ atelier.nom }}{{ atelier.description | raw }} +
Modifier - {% else %} - - {% endif %} -
-
no records found
+ href="{{ path('app_atelier_show', {'id': atelier.id}) }}">Afficher + {% if app.user and app.user == atelier.instructeur %} + Modifier + {% else %} + + {% endif %} + + + + {% endfor %} + + -
- Créer atelier -
+
+ Créer atelier +
+ {% else %} + + {% endif %} {% endblock %}