From 4f1c373704675660ac07a3ef5eb47d6f1f7335a1 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Mon, 22 Nov 2021 17:51:45 +0100 Subject: [PATCH] resume page: add persons and others infos --- .../views/Activity/list_recent.html.twig | 6 +++- .../views/AccompanyingCourse/index.html.twig | 36 +++++++++++++++++-- ...st_recent_by_accompanying_period.html.twig | 7 +++- .../translations/messages.fr.yml | 1 + 4 files changed, 45 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/list_recent.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/list_recent.html.twig index 567c0b132..9b8f00e96 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/list_recent.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/list_recent.html.twig @@ -2,7 +2,11 @@ {% for activity in activities | slice(0,5) %} {% set t = activity.type %} - + {# + + + #} {% include '@ChillActivity/Activity/activity-badge-title.html.twig' %} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index a36b50afe..462e805cb 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -52,13 +52,43 @@ {% if accompanyingCourse.locationStatus != 'none' %} {{ accompanyingCourse.location|chill_entity_render_box }} {% endif %} + + + - {% if accompanyingCourse.resources is not empty - and (accompanyingCourse.requestorThirdParty is not null + {% if accompanyingCourse.participations is not empty + or accompanyingCourse.resources is not empty + or (accompanyingCourse.requestorThirdParty is not null or accompanyingCourse.requestorPerson is not null) %} -
+
+
+ {% if accompanyingCourse.participations is not empty %} +

{{ 'Persons associated'|trans }}

+ {% for r in accompanyingCourse.participations %} + {% if r.person is not null %} + {{ _self.insert_onthefly('person', r.person) }} + {% elseif r.thirdParty is not null %} + {{ _self.insert_onthefly('thirdparty', r.thirdParty) }} + {% endif %} + {% endfor %} + {% else %} + {{ 'No participations'|trans }} + {% endif %} +
{% if accompanyingCourse.requestorPerson is not null %}

{{ 'Requestor'|trans }}

diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_recent_by_accompanying_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_recent_by_accompanying_period.html.twig index ec782615a..449564137 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_recent_by_accompanying_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_recent_by_accompanying_period.html.twig @@ -1,6 +1,11 @@
{% for w in works | slice(0,5) %} - + + {# + + + #}

diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index 5db109692..a4f045dc7 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -208,6 +208,7 @@ See this period: Voir cette période Requestor: Demandeur No requestor: Pas de demandeur No resources: "Pas d'interlocuteurs privilégiés" +Persons associated: Usagers concernés Referrer: Référent Some peoples does not belong to any household currently. Add them to an household soon: Certaines personnes n'appartiennent à aucun ménage actuellement. Renseignez leur appartenance à un ménage dès que possible. Add to household now: Ajouter à un ménage