From 6dae4785e653fdb6d9ee7d699d7112e3d93ea036 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Sun, 1 Aug 2021 12:08:04 +0200 Subject: [PATCH] missing comment fields on person details page --- .../Resources/views/Person/view.html.twig | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig index aeaaeac37..db81ec320 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig @@ -107,7 +107,7 @@ This view should receive those arguments: - {% if person.genderComment is not empty %} + {% if person.genderComment.comment is not empty %}

{{ 'Gender comment'|trans }} :

@@ -162,14 +162,16 @@ This view should receive those arguments: {% endif %} - {% if person.maritalStatusComment is not empty %} -
{{ 'Comment on the marital status'|trans }} :
-
+
{{ 'Comment on the marital status'|trans }} :
+
+ {% if person.maritalStatusComment.comment is not empty %}
{{ person.maritalStatusComment.comment|chill_markdown_to_html }}
-
- {% endif %} + {% else %} + {{ 'No data given'|trans }} + {% endif %} + {%- endif -%}