missing comment fields on person details page

This commit is contained in:
Mathieu Jaumotte 2021-08-01 12:08:04 +02:00
parent 360322bdbf
commit 6dae4785e6

View File

@ -107,7 +107,7 @@ This view should receive those arguments:
</figure> </figure>
</div> </div>
{% if person.genderComment is not empty %} {% if person.genderComment.comment is not empty %}
<div class="col-12"> <div class="col-12">
<figure class="person-details"> <figure class="person-details">
<h2 class="chill-beige">{{ 'Gender comment'|trans }}&nbsp;:</h2> <h2 class="chill-beige">{{ 'Gender comment'|trans }}&nbsp;:</h2>
@ -162,14 +162,16 @@ This view should receive those arguments:
{% endif %} {% endif %}
</dd> </dd>
{% if person.maritalStatusComment is not empty %} <dt>{{ 'Comment on the marital status'|trans }}&nbsp;:</dt>
<dt>{{ 'Comment on the marital status'|trans }}&nbsp;:</dt> <dd>
<dd> {% if person.maritalStatusComment.comment is not empty %}
<blockquote class="chill-user-quote"> <blockquote class="chill-user-quote">
{{ person.maritalStatusComment.comment|chill_markdown_to_html }} {{ person.maritalStatusComment.comment|chill_markdown_to_html }}
</blockquote> </blockquote>
</dd> {% else %}
{% endif %} <span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
{% endif %}
</dd>
</dl> </dl>
{%- endif -%} {%- endif -%}
</figure> </figure>