{% extends '@ChillPerson/Household/layout.html.twig' %} {% block title 'household.Household summary'|trans %} {% block content %}

{{ block('title') }}

{{ 'household.Current address'|trans }}

{% set address = household.currentAddress %} {% if address is empty %}

{{ 'household.Household does not have any address currently'|trans }}

{% else %}
{{ address|chill_entity_render_box({'multiline': true}) }}
{% endif %}

{{ 'household.Household members'|trans }}

{% if form is not null %} {{ form_start(form) }} {{ form_row(form.commentMembers) }}
{{ form_row(form.waitingForBirth) }}
{{ form_row(form.waitingForBirthDate) }}
{{ form_end(form) }} {% else %} {% if not household.commentMembers.isEmpty() %} {{ household.commentMembers|chill_entity_render_box }} {% endif %} {% if household.waitingForBirth %} {% if household.waitingForBirthDate is not null %} {{ 'household.Expecting for birth on date'|trans({ 'date': household.waitingForBirthDate|format_date('long') }) }} {% else %} {{ 'household.Expecting for birth'|trans }} {% endif %} {% else %}

{{ 'household.Any expecting birth'|trans }}

{% endif %} {% endif %} {% for p in positions %}

{{ p.label|localize_translatable_string }}

{% if false == p.shareHousehold %}

{{ 'household.Those members does not share address'|trans }}

{% endif %} {%- 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 %}
{% if m.comment is not empty %}
{{ m.comment|chill_markdown_to_html }}
{% endif %}
{% 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 %}
{% if m.comment is not empty %}
{{ m.comment|chill_markdown_to_html }}
{% endif %}
{% endfor %}
{% endif %} {% endfor %} {% endblock %} {% block js %} {{ encore_entry_script_tags('household_edit_metadata') }} {% endblock %}