From 2893b9c726811906b75a025f7ce5b09d02adf6e1 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Wed, 28 Jul 2021 16:48:50 +0200 Subject: [PATCH] re-indent file --- .../views/AccompanyingCourse/index.html.twig | 276 +++++++++--------- 1 file changed, 135 insertions(+), 141 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index ccce0df55..13a39b6bc 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -21,43 +21,42 @@ {% endif %} {% if withoutHousehold|length > 0 %} -
-
- {{ 'Some peoples does not belong to any household currently. Add them to an household soon'|trans }} -
- -
- -
-
- -

{{ 'household.Select people to move'|trans }}

-
    - {% for p in withoutHousehold %} -
  • - - {{ p|chill_entity_render_box }} -
  • - {% endfor %} -
- - - - +
+
+ {{ 'Some peoples does not belong to any household currently. Add them to an household soon'|trans }} +
    -
  • - -
  • +
  • + +
- +
+
+
+ +

{{ 'household.Select people to move'|trans }}

+
    + {% for p in withoutHousehold %} +
  • + + {{ p|chill_entity_render_box }} +
  • + {% endfor %} +
+ + + +
    +
  • + +
  • +
+
{% endif %} @@ -129,97 +128,96 @@

{{ 'Requestor'|trans }}

{% if accompanyingCourse.requestor == null %} -

{{ 'Any requestor to this accompanying course'|trans }}

+

{{ 'Any requestor to this accompanying course'|trans }}

{% elseif accompanyingCourse.requestorPerson is not empty %} - {% set r = accompanyingCourse.requestorPerson %} -
-
-

- {{ r.firstname ~ ' ' ~ r.lastname }} - {{ 'Usager' }} -

-

- {% set born = (r.gender == 'woman') ? 'née': 'né' %} - {% set gender = (r.gender == 'woman') ? 'fa-venus' : - (r.gender == 'man') ? 'fa-mars' : 'fa-neuter' %} - {% set genderTitle = (r.gender == 'woman') ? 'femme' : - (r.gender == 'homme') ? 'fa-mars' : 'neutre' %} - {{ born ~ ' le ' ~ r.birthdate|format_date('short') }} -

-
-
- -
    + {% set r = accompanyingCourse.requestorPerson %} +
    +
    +

    + {{ r.firstname ~ ' ' ~ r.lastname }} + {{ 'Usager' }} +

    +

    + {% set born = (r.gender == 'woman') ? 'née': 'né' %} + {% set gender = (r.gender == 'woman') ? 'fa-venus' : + (r.gender == 'man') ? 'fa-mars' : 'fa-neuter' %} + {% set genderTitle = (r.gender == 'woman') ? 'femme' : + (r.gender == 'homme') ? 'fa-mars' : 'neutre' %} + {{ born ~ ' le ' ~ r.birthdate|format_date('short') }} +

    +
    +
    + +
    • -
    -
    -
    +
+
+
- {% elseif accompanyingCourse.requestorThirdParty is not empty %} - {% set r = accompanyingCourse.requestorThirdParty %} -
-
-

+ {% elseif accompanyingCourse.requestorThirdParty is not empty %} + {% set r = accompanyingCourse.requestorThirdParty %} +
+
+

{{ r.name }} {{ 'Tiers' }} -

-
-
- -
    -
  • - -
  • -
-
-
+

+
+
+ +
    +
  • + +
  • +
+
+
{% endif %} -

{{ 'Resources'|trans }}

{% if accompanyingCourse.resources|length == 0 %} @@ -247,37 +245,33 @@

{{ 'Social actions'|trans }}

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

{{ 'accompanying_course_work.action'|trans }}

-

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

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

{{ 'accompanying_course_work.action'|trans }}

+

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

+
-
- +
+ +
-
- {% else %} -

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

- {% endfor %} + {% else %} +

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

+ {% endfor %}
{% block contentActivity %} {% set person = null %} - {% include 'ChillActivityBundle:Activity:list.html.twig' with {'context': 'accompanyingCourse', 'context': 'accompanyingCourse'} %} + {% include 'ChillActivityBundle:Activity:list.html.twig' with { 'context': 'accompanyingCourse' } %} {% endblock %} - {# ==> insert accompanyingCourse vue component #} -
-
{% endblock %}