diff --git a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/buttons.scss b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/buttons.scss index 6264a3a95..c2995e57d 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/chill/scss/buttons.scss +++ b/src/Bundle/ChillMainBundle/Resources/public/chill/scss/buttons.scss @@ -62,10 +62,10 @@ $chill-theme-buttons: ( &.btn-view::before, &.btn-save::before, &.btn-duplicate::before, - &.btn-not-duplicate::before, - &.btn-submit::before, - &.btn-reset::before, - &.btn-action::before, + // &.btn-not-duplicate::before, + // &.btn-submit::before, + // &.btn-reset::before, + // &.btn-action::before, &.btn-delete::before, &.btn-remove::before, &.btn-cancel::before { @@ -101,3 +101,13 @@ $chill-theme-buttons: ( color: $light; } } + +/// allow to hide icon (herited from scratch) +.btn { + &.change-icon { + &::before { + content: ''; + margin-right: 0; + } + } +} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig index 7b4ac4a61..af358c01e 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig @@ -1,39 +1,28 @@ {% block content %} - +
{% for accompanying_period in accompanying_periods %} -
+
- {{'period'|trans}} #{{ accompanying_period.id }} + #{{ accompanying_period.id }} {% if accompanying_period.emergency %} -   - - {{- 'Emergency'|trans|upper -}} - + {{- 'Emergency'|trans|upper -}} {% endif %} {% if accompanying_period.confidential %} -   - - {{- 'Confidential'|trans|upper -}} - + {{- 'Confidential'|trans|upper -}} {% endif %} {% if accompanying_period.step == 'DRAFT' %} -   - - {{- 'Draft'|trans|upper -}} - + {{- 'Draft'|trans|upper -}} {% else %} - - {{- 'Confirmed'|trans|upper -}} - + {{- 'Confirmed'|trans|upper -}} {% endif %}
{% if chill_accompanying_periods.fields.user == 'visible' %} {% if accompanying_period.user %} - {{ accompanying_period.user.username }} + {{ accompanying_period.user.username }} {% else %} {{ 'No accompanying user'|trans }} {% endif %} @@ -42,6 +31,7 @@
+ {% if accompanying_period.closingDate == null %} {{ 'accompanying_period.dates_from_%opening_date%'|trans({ '%opening_date%': accompanying_period.openingDate|format_date('long') } ) }} {% else %} @@ -49,92 +39,95 @@ '%opening_date%': accompanying_period.openingDate|format_date('long'), '%closing_date%': accompanying_period.closingDate|format_date('long')} ) }} - {% if accompanying_period.isOpen == false %}
{{ 'Closing motive'|trans }} :
{{ accompanying_period.closingMotive|chill_entity_render_box }}
{% endif %} - {% endif %} +
- -
-

{{ 'Participants'|trans }}

- {% if accompanying_period.participations.count > 0 %} - {% for p in accompanying_period.participations %} -

- - {{ p.person.firstname ~ ' ' ~ p.person.lastname }} - -

- {% endfor %} - {% else %} - {{ 'No data given'|trans }} - {% endif %} -
-
-

{{ 'Requestor'|trans }}

- {% if accompanying_period.requestorPerson is not null or accompanying_period.requestorThirdParty is not null %} - {% if accompanying_period.requestorPerson is not null %} -

{{ accompanying_period.requestorPerson.firstname ~ ' ' ~ accompanying_period.requestorPerson.lastname }}

- {% endif %} - {% if accompanying_period.requestorThirdParty is not null %} -

{{ accompanying_period.requestorThirdParty.name }}

- {% endif %} - {% else %} - {{ 'No data given'|trans }} - {% endif %} -
- -
-

{{ 'Social issues'|trans }}

- {% if accompanying_period.socialIssues.count > 0 %} - {% for si in accompanying_period.socialIssues %} -

{{ si.title|localize_translatable_string }}

- {% endfor %} - {% else %} - {{ 'No data given'|trans }} - {% endif %} -
-
+ +

{{ 'Participants'|trans }}

+ {% if accompanying_period.participations.count > 0 %} + {% for p in accompanying_period.participations %} +

+ + {{ p.person.firstname ~ ' ' ~ p.person.lastname }} + +

+ {% endfor %} + {% else %} + {{ 'No data given'|trans }} + {% endif %} + +
+
+ +

{{ 'Requestor'|trans }}

+ {% if accompanying_period.requestorPerson is not null or accompanying_period.requestorThirdParty is not null %} + {% if accompanying_period.requestorPerson is not null %} +

{{ accompanying_period.requestorPerson.firstname ~ ' ' ~ accompanying_period.requestorPerson.lastname }}

+ {% endif %} + {% if accompanying_period.requestorThirdParty is not null %} +

{{ accompanying_period.requestorThirdParty.name }}

+ {% endif %} + {% else %} + {{ 'No data given'|trans }} + {% endif %} + +
+
+ +

{{ 'Social issues'|trans }}

+ {% if accompanying_period.socialIssues.count > 0 %} + {% for si in accompanying_period.socialIssues %} +

{{ si.title|localize_translatable_string }}

+ {% endfor %} + {% else %} + {{ 'No data given'|trans }} + {% endif %} + +
+
+ +
-
-
-

{% endfor %} - - +
{% endblock content %} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig index 8ca4dd26e..4dc7a90aa 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig @@ -5,36 +5,44 @@ {% block title %}{{ 'Person accompanying period - %name%'|trans({ '%name%' : person.__toString}) }}{% endblock title %} {% block personcontent %} -

{{ 'Accompanying period list'|trans }}

+
-{% include 'ChillPersonBundle:AccompanyingPeriod:_list.html.twig' %} +

{{ 'Accompanying period list'|trans }}

- + {% include 'ChillPersonBundle:AccompanyingPeriod:_list.html.twig' %} + + +
{% endblock %}