[AccompanyingCourse] re-introduce flashbag on temporarily locations

See 4e8dd3b189
This commit is contained in:
Julien Fastré 2021-08-16 15:41:21 +02:00
parent 8834f200df
commit 25465b1121
2 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,7 @@
<div class="border border-danger">
<div class="alert alert-danger alert-with-actions mb-0">
<div class="message">
{{ 'This course is located at a temporarily address. You should locate this course to an user'|trans }}
</div>
</div>
</div>

View File

@ -45,8 +45,13 @@
{% endif %}
{% endfor %}
</div>
{% 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 %}
</div>