From 5af36d18ebe34936e7933fc01daf06e5a71f0bbf Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Mon, 24 May 2021 11:39:22 +0200 Subject: [PATCH] =?UTF-8?q?Display=20data=20for=20Usagers=20concern=C3=A9s?= =?UTF-8?q?=20&=20Resources?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/AccompanyingCourse/index.html.twig | 101 +++++++++++++++--- 1 file changed, 86 insertions(+), 15 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index e12037cd2..9a03160f4 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -5,24 +5,95 @@ {% endblock %} {% block content %} +

{{ 'Resume Accompanying Course' | trans }}

- {% if 'DRAFT' == accompanyingCourse.step %} -
- - {{ 'This accompanying course is still a draft'|trans }} - - {{ 'Edit & activate accompanying course'|trans }} - - -
- {% endif %} + {% if 'DRAFT' == accompanyingCourse.step %} +
+ + {{ 'This accompanying course is still a draft'|trans }} + + {{ 'Edit & activate accompanying course'|trans }} + + +
+ {% endif %} -

{{ 'Associated peoples'|trans }}

+
+

{{ 'Associated peoples'|trans }}

-

{{ 'Resources'|trans }}

+ {% if accompanyingCourse.participations.count > 0 %} + + + + + + + + + + + {% for participation in accompanyingCourse.participations %} + + + + + + + {% endfor %} + +
{{ 'First name' | trans }}{{ 'Last name' | trans }}{{ 'Start date' | trans }}{{ 'End date' | trans }}
{{ participation.person.firstName }}{{ participation.person.lastName }}{{ participation.startDate | format_date('short') }}{{ participation.endDate | format_date('short') }}
+ {% else %} +
+ {{ "No Associated peoples recorded" | trans }} +
+ {% endif %} +
-

{{ 'Social actions'|trans }}

- -

{{ 'Last events on accompanying course'|trans }}

+
+

{{ 'Resources'|trans }}

+ {% if accompanyingCourse.resources.count > 0 %} + + + + + + + + + {% for resource in accompanyingCourse.resources %} + + + + + {% endfor %} + +
{{ 'First name' | trans }}{{ 'Last name' | trans }}
{{ resource.person.firstName }}{{ resource.person.lastName }}
+ {% else %} +
+ {{ "No resources recorded" | trans }} +
+ {% endif %} + +
+ +
+

{{ 'Social actions'|trans }}

+ +
+ {{ "Not implemented" | trans }} +
+
+ +
+

{{ 'Last events on accompanying course'|trans }}

+ +
+ {{ "Not implemented" | trans }} +
+
+{% endblock %} + +{% block css %} + {{ encore_entry_link_tags('accompanying_course') }} {% endblock %}