From 7efbf2fce84f5adb1761727b45dcf1ce781efac6 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Tue, 25 May 2021 10:49:11 +0200 Subject: [PATCH] =?UTF-8?q?59=20r=C3=A9sum=C3=A9,=20flex=20person=20positi?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Resources/public/scss/chillmain.scss | 40 +++++++++++ .../views/AccompanyingCourse/index.html.twig | 71 +++++++++++-------- 2 files changed, 82 insertions(+), 29 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss b/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss index 4f421afe6..145487a89 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/scss/chillmain.scss @@ -67,3 +67,43 @@ div#header-accompanying_course-details { padding-top: 1em; padding-bottom: 1em; } + + +div.flex-bloc { + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-items: stretch; + align-content: stretch; + &.right { + justify-content: flex-end; + } + div.item-bloc { + border: 1px solid #000; + margin: 0 1em 1em 0; + padding: 1em; + flex-grow: 0; + flex-shrink: 0; + flex-basis: 30%; + + display: flex; + flex-direction: column; + h5 { + margin-top: 0; + margin-bottom: 0.3em; + } + .content-bloc { + margin: 0; + font-size: 90%; + } + dl { + } + ul.record_actions { + margin-top: auto; + margin-bottom: 0; + } + } + @media only screen and (max-width: 768px) { + flex-direction: column; + } +} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index d87b33a2b..563f57b25 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -19,40 +19,53 @@ {% endif %}

{{ 'Associated peoples'|trans }}

- +
{% for p in accompanyingCourse.participations %} {% if p.enddate is null %} -
- {{ p.person.firstname ~ ' ' ~ p.person.lastname }} -
- {{ p.person.gender == 'woman' ? 'F' : 'M' }}
- {{ 'né le ' ~ p.person.birthdate|format_date('short') }}
+
+ +
{{ p.person.firstname ~ ' ' ~ p.person.lastname }}
+
+ +
+ {{ p.person.gender == 'woman' ? 'F' : 'M' }} +
+
+ {{ 'né le ' ~ p.person.birthdate|format_date('short') }} +
+
+ {% if p.person.mobilenumber %} +
{{ p.person.mobilenumber }} + {% else %} +
+ {% if p.person.phonenumber %} + {{ p.person.phonenumber }} + {% else %} + {{ 'No data given'|trans }} + {% endif %} + {% endif %} + +
+ {%- if p.person.lastAddress is not empty -%} + {{ address._render(p.person.lastAddress, {'has_no_address': true, 'with_valid_from': false, 'with_icon': true}) }} + {%- else -%} +
+ {{ 'No address given'|trans }} + {%- endif -%} + - {% if p.person.mobilenumber %} - {{ p.person.mobilenumber }} - {% else %} - - {% if p.person.phonenumber %} - {{ p.person.phonenumber }} - {% else %} - {{ 'No data given'|trans }} - {% endif %} - {% endif %}
- - {%- if p.person.lastAddress is not empty -%} - {{ address._render(p.person.lastAddress, {'has_no_address': true, 'with_valid_from': false, 'with_icon': true}) }} - {%- else -%} - - {{ 'No address given'|trans }} - {%- endif -%} - -
    -
  • - -
  • -
+
+
    +
  • + +
  • +
+ +
{% endif %} {% endfor %} +
+

{{ 'Resources'|trans }}