From 25465b1121f4f5192b64a0c7ae91e7c2e45395bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 16 Aug 2021 15:41:21 +0200 Subject: [PATCH] [AccompanyingCourse] re-introduce flashbag on temporarily locations See https://gitlab.com/Chill-Projet/chill-bundles/-/commit/4e8dd3b18902f420dc7e15d8ee05adf439c5b821 --- .../views/AccompanyingCourse/_warning_address.html.twig | 7 +++++++ .../Resources/views/AccompanyingCourse/index.html.twig | 9 +++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_warning_address.html.twig diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_warning_address.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_warning_address.html.twig new file mode 100644 index 000000000..301a3a9cf --- /dev/null +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_warning_address.html.twig @@ -0,0 +1,7 @@ +
+
+
+ {{ 'This course is located at a temporarily address. You should locate this course to an user'|trans }} +
+
+
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index ea2fcd710..1910b7497 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -45,8 +45,13 @@ {% endif %} {% endfor %} - {% if withoutHousehold|length > 0 %} - {% include '@ChillPerson/AccompanyingCourse/_join_household.html.twig' with {} %} + {% if 'DRAFT' != accompanyingCourse.step %} + {% if withoutHousehold|length > 0 %} + {% include '@ChillPerson/AccompanyingCourse/_join_household.html.twig' with {} %} + {% endif %} + {% if accompanyingCourse.locationStatus == 'address' or accompanyingCourse.locationStatus == 'none' %} + {% include '@ChillPerson/AccompanyingCourse/_warning_address.html.twig' with {} %} + {% endif %} {% endif %}