From 9f1f7ad3f7acffb74915d52c92cd6059e1141ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 19 May 2021 22:36:47 +0200 Subject: [PATCH] skeleton for page "index accompanying course" --- .../views/AccompanyingCourse/index.html.twig | 30 ++++++++++--------- .../translations/messages.fr.yml | 7 +++++ 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index 82f7102fd..e12037cd2 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -6,21 +6,23 @@ {% block content %} -

{{ block('title') }}

+ {% if 'DRAFT' == accompanyingCourse.step %} +
+ + {{ 'This accompanying course is still a draft'|trans }} + + {{ 'Edit & activate accompanying course'|trans }} + + +
+ {% endif %} -
-{{ accompanyingCourse.id }}
-{{ accompanyingCourse.openingDate|format_date('short') }}
-{{ accompanyingCourse.closingDate|format_date('short') }}
-{{ accompanyingCourse.closingMotive|chill_entity_render_box }}
-{{ accompanyingCourse.remark|raw }}
-{{ accompanyingCourse.user }}
-usagers:
-{% for p in accompanyingCourse.participations %}
-    {{ p.person.id }} | {{ p.person.fullnamecanonical }} | {{ p.startdate|format_date('short') }} | {{ p.enddate|format_date('short') }}
-{% endfor %}
-    
+

{{ 'Associated peoples'|trans }}

- {{ dump() }} +

{{ 'Resources'|trans }}

+ +

{{ 'Social actions'|trans }}

+ +

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

{% endblock %} diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index 36c756e34..30536eaa7 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -164,6 +164,13 @@ Accompanying user: Accompagnant No accompanying user: Aucun accompagnant No data given: Pas d'information Create an accompanying course: Créer un parcours +This accompanying course is still a draft: Ce parcours est à l'état brouillon +Associated peoples: Usagers concernés +Resources: Interlocuteurs privilégiés +Social actions: Actions d'accompagnement +Last events on accompanying course: Dernières actions de suivi +Edit & activate accompanying course: Modifier et valider + # pickAPersonType Pick a person: Choisir une personne