From 8b945dc38baeb0b89adf140ab7feb1de6036c7a8 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 3 Sep 2021 18:30:43 +0200 Subject: [PATCH] test a new chill help tooltip --- .../Resources/public/chill/chillmain.scss | 14 ++++++++++++++ .../Resources/views/Household/summary.html.twig | 11 ++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss index 577cadf04..436f764dd 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/chill/chillmain.scss @@ -276,6 +276,20 @@ div.metadata { } } +/// chill help tooltip + +.chill-help-tooltip { + &::before { + content: '\f05a'; + color: $chill-pink; + font-family: ForkAwesome; + font-style: normal; + font-size: 120%; + cursor: pointer; + margin: auto 0.3em; + } +} + /// display definition list // with dt and dd on same line diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig index 1b1d22775..614e13fed 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Household/summary.html.twig @@ -76,11 +76,12 @@ {% for p in positions %} -

{{ p.label|localize_translatable_string }}

- - {% if false == p.shareHousehold %} -

{{ 'household.Those members does not share address'|trans }}

- {% endif %} +

{{ p.label|localize_translatable_string }} + {% if false == p.shareHousehold %} + + {% endif %} +

{%- set members = household.currentMembersByPosition(p) %}