From db7210c00b2a88a1f70164ee3d9fe2e71ffb6515 Mon Sep 17 00:00:00 2001 From: Kayn Ty Date: Tue, 22 May 2018 16:53:23 +0200 Subject: [PATCH] target festival actuel in list --- app/Resources/views/festival/index.html.twig | 23 ++++++++++++------- app/Resources/views/logged/history.html.twig | 23 ++++++++++++++++++- .../Controller/DefaultController.php | 20 ++++++++++------ 3 files changed, 50 insertions(+), 16 deletions(-) diff --git a/app/Resources/views/festival/index.html.twig b/app/Resources/views/festival/index.html.twig index 4be45233..43f76490 100755 --- a/app/Resources/views/festival/index.html.twig +++ b/app/Resources/views/festival/index.html.twig @@ -29,8 +29,13 @@ + {% for festival in festivals %} - + {{ festival.id }} @@ -56,17 +61,19 @@ {{ festival.chiffreAffaire - (festival.fraisInscription + festival.fraisTransport + festival.fraisRepas + festival.fraisHebergement ) }} + {% if app.user.activeFestival and (app.user.activeFestival.id == festival.id) %} + Actuel + {% else %} + + choisir comme actuel + + {% endif %}