diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/flex_table.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/flex_table.scss index 3353749db..f0ed84771 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/flex_table.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/flex_table.scss @@ -203,3 +203,36 @@ div.wraplist { } } } + + +/* +* __WRAP_HEADER_BLOC________ +* HEADER ROW FOR FLEX-TABLE ELEMENTS +*/ + +div.wrapheader { + width: 100%; + + div.wh-row { + display: flex; + flex-direction: row; + + &:first-child { + align-items: baseline; + } + &:last-child {} + + div.wh-col { + &:first-child { + flex-grow: 0; flex-shrink: 1; flex-basis: auto; + } + &:last-child { + flex-grow: 1; flex-shrink: 1; flex-basis: auto; + + display: flex; + justify-content: flex-end; + } + } + + } +} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig index 21713e37d..31440d706 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig @@ -2,102 +2,95 @@
- - {{ p.person.firstname ~ ' ' ~ p.person.lastname }} - -
- {% endfor %} +- {{ accompanying_period.requestorPerson.firstname ~ ' ' ~ accompanying_period.requestorPerson.lastname }} -
- {% endif %} - {% if accompanying_period.requestorThirdParty is not null %} -- {{ accompanying_period.requestorThirdParty.name }} -
- {% endif %} + {% if accompanying_period.participations.count > 0 %} ++ {{ accompanying_period.requestorPerson.firstname ~ ' ' ~ accompanying_period.requestorPerson.lastname }} +
+ {% endif %} + {% if accompanying_period.requestorThirdParty is not null %} ++ {{ accompanying_period.requestorThirdParty.name }} +
+ {% endif %} +