From 05868b398eab3c99f3d69480221699fa000f9bab Mon Sep 17 00:00:00 2001 From: Tchama Date: Wed, 22 Jul 2020 16:28:21 +0200 Subject: [PATCH] fix sf4 deprecated: rename twig spaceless tags --- Resources/views/Person/create_review.html.twig | 4 ++-- Resources/views/Person/list.html.twig | 4 ++-- Resources/views/Person/list_by_phonenumber.html.twig | 4 ++-- Resources/views/Person/view.html.twig | 4 ++-- Resources/views/layout.html.twig | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Resources/views/Person/create_review.html.twig b/Resources/views/Person/create_review.html.twig index c8dd64455..cca78758b 100644 --- a/Resources/views/Person/create_review.html.twig +++ b/Resources/views/Person/create_review.html.twig @@ -44,11 +44,11 @@ - {{ person|chill_entity_render_string }}{% spaceless %} + {{ person|chill_entity_render_string }}{% apply spaceless %} {% if person.isOpen == false %} {% endif %} - {% endspaceless %} + {% endapply %} {% if person.birthdate is not null %}{{ person.birthdate|localizeddate('long', 'none', app.request.locale) }}{% else %} {% endif %} diff --git a/Resources/views/Person/list.html.twig b/Resources/views/Person/list.html.twig index 3b309eb0d..e4f2896c2 100644 --- a/Resources/views/Person/list.html.twig +++ b/Resources/views/Person/list.html.twig @@ -43,7 +43,7 @@ {% set is_open = person.isOpen() %} {{ person|chill_entity_render_box }} - {% spaceless %} + {% apply spaceless %} {% if chill_person.fields.accompanying_period == 'visible' %} {% if is_open == false %} @@ -51,7 +51,7 @@ {% endif %} {% endif %} - {% endspaceless %} + {% endapply %} diff --git a/Resources/views/Person/list_by_phonenumber.html.twig b/Resources/views/Person/list_by_phonenumber.html.twig index f15a6906b..44444024b 100644 --- a/Resources/views/Person/list_by_phonenumber.html.twig +++ b/Resources/views/Person/list_by_phonenumber.html.twig @@ -43,7 +43,7 @@ {% set is_open = person.isOpen() %} {{person.firstName}} {{person.lastName}} - {% spaceless %} + {% apply spaceless %} {% if chill_person.fields.accompanying_period == 'visible' %} {% if is_open == false %} @@ -51,7 +51,7 @@ {% endif %} {% endif %} - {% endspaceless %} + {% endapply %} diff --git a/Resources/views/Person/view.html.twig b/Resources/views/Person/view.html.twig index 1293dc5dc..3194f9dad 100644 --- a/Resources/views/Person/view.html.twig +++ b/Resources/views/Person/view.html.twig @@ -104,13 +104,13 @@ This view should receive those arguments: {%- endif -%} {%- if chill_person.fields.country_of_birth == 'visible' -%}
{{ 'Country of birth'|trans }} :
-
{% spaceless %} +
{% apply spaceless %} {% if person.countryOfBirth is not null %} {{ person.countryOfBirth.name|localize_translatable_string }} {% else %} {{ 'Unknown country of birth'|trans }} {% endif %} - {% endspaceless %}
+ {% endapply %} {%- endif -%} diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 30028b54b..9f6339691 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -34,7 +34,7 @@
{{ 'File number'|trans|upper}} : {{ person.id|upper }} — - + {% endapply %}">
{{ 'Phonenumber'|trans|upper }} :