From c6c0b7ce2f205bf39e5149aa16842504c5469d0e Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 13 Dec 2021 20:08:16 +0100 Subject: [PATCH] age displayed between parenthesis in twig renderbox. Validation not yet correct --- .../Resources/views/Entity/person.html.twig | 6 +++--- tests/app | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig index 61bf3e83b..0cd0a23f1 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig @@ -88,9 +88,9 @@ {{ 'Date of death'|trans }}: {%- endif -%} {#- must be on one line to avoid spaces with dash -#} - + {%- if options['addAge'] -%} - {{ 'years_old'|trans({ 'age': person.age }) }} + ({{ 'years_old'|trans({ 'age': person.age }) }}) {%- endif -%} {%- elseif person.birthdate is not null -%} {%- if options['addAge'] -%} - {{- 'years_old'|trans({ 'age': person.age }) -}} + ({{- 'years_old'|trans({ 'age': person.age }) -}}) {%- endif -%} {%- endif -%}

diff --git a/tests/app b/tests/app index 5952eda44..bd95d3c96 160000 --- a/tests/app +++ b/tests/app @@ -1 +1 @@ -Subproject commit 5952eda44831896991989c2e4881adc26329140e +Subproject commit bd95d3c96a437757b7e8f35cdfd30da9aeac1a01