From 2688c0f0ce12a77b5c192b51897f47d0df6d17cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 28 Jun 2021 23:48:06 +0200 Subject: [PATCH] fix missing div in accompanying course work list --- .../views/AccompanyingCourse/index.html.twig | 154 +++++++++--------- .../list_by_accompanying_period.html.twig | 2 +- .../translations/messages.fr.yml | 1 + 3 files changed, 81 insertions(+), 76 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index 09eee9351..14024bb9c 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -222,90 +222,94 @@

{{ 'Social actions'|trans }}

- {% for w in works %} -
-
-

- {{ w.socialAction|chill_entity_render_box({ 'no-badge': false }) }} -

-
- -
-
    -
  • -
    - {{ w.createdAt|format_date('long') }} -
    -
    - {{ 'accompanying_course_work.create_date'|trans }} -
    -
  • -
  • -
    - {{ w.startDate|format_date('long') }} -
    -
    - {{ 'accompanying_course_work.start_date'|trans }} -
    -
  • -
  • -
    - {{ w.endDate|format_date('long') }} -
    -
    - {{ 'accompanying_course_work.end_date'|trans }} -
    -
  • -
-
- - {% if w.results|length > 0 %} -
-
-

{{ 'accompanying_course_work.goal'|trans }}

-

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

-
-
-

{{ 'accompanying_course_work.results'|trans }}

-
    - {% for r in w.results %} -
  • {{ r.title|localize_translatable_string }}
  • - {% endfor %} -
-
+
+ {% for w in works %} +
+
+

+ {{ w.socialAction|chill_entity_render_box({ 'no-badge': false }) }} +

- {% endif %} - {% if w.goals|length > 0 %} - {% for g in w.goals %} -
-
+
+
    +
  • +
    + {{ w.createdAt|format_date('long') }} +
    +
    + {{ 'accompanying_course_work.create_date'|trans }} +
    +
  • +
  • +
    + {{ w.startDate|format_date('long') }} +
    +
    + {{ 'accompanying_course_work.start_date'|trans }} +
    +
  • +
  • +
    + {{ w.endDate|format_date('long') }} +
    +
    + {{ 'accompanying_course_work.end_date'|trans }} +
    +
  • +
+
+ + {% if w.results|length > 0 %} +
+

{{ 'accompanying_course_work.goal'|trans }}

-

{{ g.goal.title|localize_translatable_string }}

+

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

-
- {% if g.results|length == 0 %} -

{{ 'accompanying_course_work.results'|trans }}

-

{{ 'accompanying_course_work.no_results'|trans }}

- {% else %} -

{{ 'accompanying_course_work.results'|trans }}

-
    - {% for r in g.results %} -
  • {{ r.title|localize_translatable_string }}
  • - {% endfor %} -
- {% endif %} +
+

{{ 'accompanying_course_work.results'|trans }}

+
    + {% for r in w.results %} +
  • {{ r.title|localize_translatable_string }}
  • + {% endfor %} +
- {% endfor %} - {% endif %} + {% endif %} -
- {{ 'Last updated by'|trans}}: {{ w.updatedBy|chill_entity_render_box }}, {{ w.updatedAt|format_datetime('long', 'short') }} -
+ {% if w.goals|length > 0 %} + {% 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 }}

+

{{ 'accompanying_course_work.no_results'|trans }}

+ {% else %} +

{{ 'accompanying_course_work.results'|trans }}

+
    + {% for r in g.results %} +
  • {{ r.title|localize_translatable_string }}
  • + {% endfor %} +
+ {% endif %} +
+
+ {% endfor %} + {% endif %} +
+ {{ 'Last updated by'|trans}}: {{ w.updatedBy|chill_entity_render_box }}, {{ w.updatedAt|format_datetime('long', 'short') }} +
+ +
+ {% else %} +

{{ 'accompanying_course_work.Any work'|trans }}

+ {% endfor %}
- {% endfor %} {% block contentActivity %} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig index 28626f7c2..8dfe1bfd5 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourseWork/list_by_accompanying_period.html.twig @@ -102,7 +102,7 @@
{% else %} -

{{ 'accompanying_course_work.No work'|trans }}

+

{{ 'accompanying_course_work.Any work'|trans }}

{% endfor %}
diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index b27128ff7..234eeb656 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -357,4 +357,5 @@ accompanying_course_work: no_results: Aucun résultat - orientation results: Résultats - orientations goal: Objectif - motif - dispositif + Any work: Aucune action d'accompagnement