ChillPersonBundle: add administrativeStatus property to Person

This commit is contained in:
Christophe Siraut
2024-11-27 17:05:50 +01:00
parent 9e3431f397
commit 6c37d798bf
17 changed files with 431 additions and 2 deletions

View File

@@ -170,8 +170,20 @@ This view should receive those arguments:
</dd>
</dl>
{%- endif -%}
{% if chill_person.fields.administrative_status == 'visible' %}
<dl>
<dt>{{ 'Administrative status'|trans }}&nbsp;:</dt>
<dd>
{% if person.administrativeStatus is not empty %}
{{ person.administrativeStatus.name|localize_translatable_string }}
{% else %}
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
{% endif %}
</dd>
</dl>
{% endif %}
{% if chill_person.fields.employment_status == 'visible' %}
<dl>
{% if chill_person.fields.employment_status == 'visible' %}
<dt>{{ 'Employment status'|trans }}&nbsp;:</dt>
<dd>
{% if person.employmentStatus is not empty %}
@@ -180,8 +192,8 @@ This view should receive those arguments:
<span class="chill-no-data-statement">{{ 'No data given'|trans }}</span>
{% endif %}
</dd>
{% endif %}
</dl>
{% endif %}
{%- if chill_person.fields.number_of_children == 'visible' -%}
<dl>
<dt>{{'Number of children'|trans}}&nbsp;:</dt>