From 4e8dd3b18902f420dc7e15d8ee05adf439c5b821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 28 Jul 2021 13:27:05 +0200 Subject: [PATCH] [AccompanyingPeriod] add flashbag message when located temporarily --- .../views/AccompanyingCourse/index.html.twig | 13 +++++++++++++ .../ChillPersonBundle/translations/messages.fr.yml | 1 + 2 files changed, 14 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index c15869b1d..5bab87ceb 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -59,6 +59,19 @@ + {% endif %} + + {% if accompanyingCourse.step != 'DRAFT' and + (accompanyingCourse.locationStatus == 'address' or accompanyingCourse.locationStatus == 'none') + %} +
+
+ {{ 'This course is located at a temporarily address. You should locate this course to an user'|trans }} +
+
+ + + {% endif %}

{{ 'Associated peoples'|trans }}

diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index 32691bcb4..c081850db 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -339,6 +339,7 @@ Show Accompanying Course: Voir le parcours Edit Accompanying Course: Modifier le parcours Create Accompanying Course: Créer un nouveau parcours Drop Accompanying Course: Supprimer le parcours +This course is located at a temporarily address. You should locate this course to an user: Ce parcours est localisé à une adresse temporaire. Il devrait être localisé auprès d'un usager concerné. # Household Household: Ménage