person: add show/hide on marital status date

This commit is contained in:
nobohan
2021-06-24 08:25:55 +02:00
parent 504b2efacf
commit c23ada3533
3 changed files with 37 additions and 4 deletions

View File

@@ -185,12 +185,16 @@ This view should receive those arguments:
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
{% endif %}
</dd>
</dl>
<dl>
<dt>{{'Date of last marital status change'|trans}}&nbsp;:</dt>
{% if person.maritalStatusDate is not null %}
<dd>
{{ person.maritalStatusDate|format_date('long') }}
</dd>
{% endif %}
</dl>
<dl>
{% if not person.maritalStatusComment.isEmpty %}
<dt>{{'Comment on the marital status'|trans}}&nbsp;:</dt>
<dd>