From 87a917d11c38e6616481b6e5679bb35cb3cc0da6 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Sat, 21 Aug 2021 10:32:11 +0200 Subject: [PATCH] accompanyingPeriod button --- .../Resources/views/Activity/list.html.twig | 17 ++++----- .../Resources/views/Calendar/list.html.twig | 36 +++++++++---------- .../Resources/public/chill/scss/mixins.scss | 2 +- .../translations/messages.fr.yml | 1 + 4 files changed, 27 insertions(+), 29 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/list.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/list.html.twig index 50dcbcd92..bf9c8d5ca 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/list.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/list.html.twig @@ -34,13 +34,13 @@ {% if context == 'person' and activity.accompanyingPeriod is not empty %} -
- - {% + + {% if calendar.comment.comment is not empty or calendar.users|length > 0 or calendar.thirdParties|length > 0 - or calendar.users|length > 0 + or calendar.users|length > 0 %}
{% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with {'context': context, 'with_display': 'row', 'entity': calendar } %}
- + {% if calendar.comment.comment is not empty %}
{{ calendar.comment|chill_entity_render_box( { 'limit_lines': 3, 'metadata': false } ) }} @@ -127,7 +123,7 @@ {% endif %}
{% endif %} - +
{% endfor %} diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/mixins.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/mixins.scss index a6727593e..ec6e8a791 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/mixins.scss +++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/scss/mixins.scss @@ -1,5 +1,5 @@ $social-issue-color: #4bafe8; -$social-action-color: $pink; +$social-action-color: $orange; /// /// Social Issue mixin diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index 8c8add139..61a3cd035 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -146,6 +146,7 @@ and %number% other: '{0} et aucun autre| {1} et une autre |]1, Inf] et %number% 'Period opened': 'Période ouverte' 'Close accompanying period': 'Clôre la période' 'Open accompanying period': 'Ouvrir la période' +Period number %number%: 'Période n° %number%' 'Add an accompanying period in the past': Ajouter une période d'accompagnement dans le passé Begin a new accompanying period: Commencer une nouvelle période d'accompagnement Create an accompanying period: Créer une période d'accompagnement