diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_concerned.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_concerned.html.twig new file mode 100644 index 000000000..2cfbff27a --- /dev/null +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/_concerned.html.twig @@ -0,0 +1,13 @@ + + +{% for p in accompanyingCourse.participations %} + + + + {{ p.person|chill_entity_render_box }} + + +{% endfor %} +{{ dump() }} + diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index a063fbb34..0fb9115eb 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -21,21 +21,44 @@ {% endblock %} {% block content %} -
+
-
WIP .. AccompanyingCourse Resume dashboard
+
+ {% include '@ChillPerson/AccompanyingCourse/_concerned.html.twig' with {} %} +
+ +
+ {% if accompanyingCourse.locationStatus == 'person' %} +
{{ 'This course is located by'|trans }}
+

{{ accompanyingCourse.personLocation|chill_entity_render_string }}

+ {% elseif accompanyingCourse.locationStatus == 'address' %} +

{{ 'This course has a temporarily location'|trans }}

+ {% endif %} + + {% if accompanyingCourse.locationStatus != 'none' %} + {{ accompanyingCourse.location|chill_entity_render_box }} + {% endif %} +
{% if 'DRAFT' == accompanyingCourse.step %} - {% include '@ChillPerson/AccompanyingCourse/_still_draft.html.twig' %} +
+ {% include '@ChillPerson/AccompanyingCourse/_still_draft.html.twig' %} +
{% endif %} + + {% if accompanyingCourse.locationStatus == 'address' or accompanyingCourse.locationStatus == 'none' %} +
+ {% include '@ChillPerson/AccompanyingCourse/_warning_address.html.twig' %} +
+ {% endif %} + {% if 'DRAFT' != accompanyingCourse.step %} {% if withoutHousehold|length > 0 %} - {% include '@ChillPerson/AccompanyingCourse/_join_household.html.twig' %} +
+ {% include '@ChillPerson/AccompanyingCourse/_join_household.html.twig' %} +
{% endif %} {% endif %} - {% if accompanyingCourse.locationStatus == 'address' or accompanyingCourse.locationStatus == 'none' %} - {% include '@ChillPerson/AccompanyingCourse/_warning_address.html.twig' %} - {% endif %} {# DISABLED