- {{ m.person|chill_entity_render_box({'addLink': true}) }}
- {% if m.holder %}
-
{{ 'household.holder'|trans }}
+ {%- set members = household.currentMembersByPosition(p) %}
+ {% if members|length > 0 %}
+
+ {% for m in members %}
+
+
+
+
+ {{ m.person|chill_entity_render_box({'addLink': true}) }}
+ {% if m.holder %}
+ {{ 'household.holder'|trans }}
+ {% endif %}
+
+
+ {{ 'Born the date'|trans({ 'gender': m.person.gender, 'birthdate': m.person.birthdate|format_date('long') }) }}
+
+
+
+
+ {% if m.startDate is not empty %}
+ - {{ 'Since %date%'|trans({'%date%': m.startDate|format_date('long') }) }}
+ {% endif %}
+ {% if m.endDate is not empty %}
+ - {{ 'Until %date%'|trans({'%date%': m.endDate|format_date('long') }) }}
+ {% endif %}
+
+
+ -
+
+ {{ 'household.Update membership'|trans }}
+
+
+ -
+ {{ 'household.Leave'|trans }}
+
+
+
+
+ {% if m.comment is not empty %}
+
{% endif %}
-
- {{ 'Born the date'|trans({ 'gender': m.person.gender, 'birthdate': m.person.birthdate|format_date('long') }) }}
-
-
-
-
- {% if m.startDate is not empty %}
- - {{ 'Since %date%'|trans({'%date%': m.startDate|format_date('long') }) }}
- {% endif %}
- {% if m.endDate is not empty %}
- - {{ 'Until %date%'|trans({'%date%': m.endDate|format_date('long') }) }}
- {% endif %}
-
-
- -
-
- {{ 'household.Update membership'|trans }}
-
-
- -
- {{ 'household.Leave'|trans }}
-
-
+ {% endfor %}
+
+ {% else %}
+
{{ 'household.Any persons into this position'|trans }}
+ {% endif %}
+
+ {% set members = household.nonCurrentMembersByPosition(p) %}
+ {% if members|length > 0 %}
+
+
+
+
+
+ {% for m in members %}
+
+
+
+
+ {{ m.person|chill_entity_render_box({'addLink': true}) }}
+ {% if m.holder %}
+ {{ 'household.holder'|trans }}
+ {% endif %}
+
+
+ {{ 'Born the date'|trans({ 'gender': m.person.gender, 'birthdate': m.person.birthdate|format_date('long') }) }}
+
+
+
+
+ {% if m.startDate is not empty %}
+ - {{ 'Since %date%'|trans({'%date%': m.startDate|format_date('long') }) }}
+ {% endif %}
+ {% if m.endDate is not empty %}
+ - {{ 'Until %date%'|trans({'%date%': m.endDate|format_date('long') }) }}
+ {% endif %}
+
+
+ -
+
+ {{ 'household.Update membership'|trans }}
+
+
+
+
+
+ {% if m.comment is not empty %}
+
+ {% endif %}
+
+ {% endfor %}
- {% if m.comment is not empty %}
-
- {% endif %}
-