From 91bee4aad3b6f693967ef70351693cc723faaac7 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Thu, 16 Dec 2021 18:55:21 +0100 Subject: [PATCH] wip goal-result on resume page --- .../AccompanyingCourseWork/index.html.twig | 2 -- ...st_recent_by_accompanying_period.html.twig | 36 +++++++++++++++++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/index.html.twig index eb885d50a..cf91a4e20 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/index.html.twig @@ -155,7 +155,6 @@
- {# SEULEMENT SI DÉTAILLÉ {% if w.results|length > 0 %}
@@ -194,7 +193,6 @@
{% endfor %} {% endif %} - #}
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 b5fcb6c40..4bab107c5 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 @@ -43,7 +43,39 @@
    - {% for e in w.accompanyingPeriodWorkEvaluations %} + A{% for g in w.goals %} +
  • + {{ 'accompanying_course_work.goal'|trans ~ ' : ' }} + {{ g.goal.title|localize_translatable_string }} + {% if g.results|length > 0 %} + {{ 'accompanying_course_work.results'|trans }} +
      + {% for r in g.results %} +
    • + {{ r.title|localize_translatable_string }} +
    • + {% endfor %} +
    + {% endif %} +
  • + {% endfor %} + B{% if w.results|length > 0 %} +
  • + {{ 'accompanying_course_work.goal'|trans }} +

    {{ 'accompanying_course_work.results without objective'|trans }}

    + {% if w.results %} + {{ 'accompanying_course_work.results'|trans }} +
      + {% for r in w.results %} +
    • + {{ r.title|localize_translatable_string }} +
    • + {% endfor %} +
    + {% endif %} +
  • + {% endif %} + C{% for e in w.accompanyingPeriodWorkEvaluations %}
  • {{ 'accompanying_course_work.social_evaluation'|trans ~ ' : ' }} {{ e.evaluation.title|localize_translatable_string }} @@ -55,7 +87,7 @@
  • {% endif %} {% if e.endDate %} -
  • +
  • {{ 'accompanying_course_work.end_date'|trans ~ ' : ' }} {{ e.endDate|format_date('short') }}