mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-27 04:26:13 +00:00
70 lines
2.4 KiB
Twig
70 lines
2.4 KiB
Twig
{% extends '@ChillPerson/Household/layout.html.twig' %}
|
|
|
|
{% block title 'Addresses history for household'|trans %}
|
|
|
|
{% block content %}
|
|
<h1>{{ block('title') }}</h1>
|
|
|
|
<div class="address-timeline grid">
|
|
|
|
{% if household.addresses|length == 0 %}
|
|
<span class="chill-no-data-statement">{{ 'No address given'|trans }}</span>
|
|
{% else %}
|
|
<div class="top"><i class="fa fa-caret-up fa-3x"></i></div>
|
|
{% endif %}
|
|
|
|
{% for address in household.addresses %}
|
|
|
|
<div class="col-b"></div>
|
|
|
|
<div class="col-c content{{ ' row' ~ loop.index }}">
|
|
<div class="address">
|
|
{% if address.isNoAddress == true %}
|
|
<div class="chill_address_is_noaddress">{{ 'address.consider homeless'|trans }}</div>
|
|
{% else %}
|
|
{% if address.street is not empty %}
|
|
<div class="street">
|
|
<span class="streetNumber">{{ address.street }}</span>
|
|
{% if address.streetNumber is not empty %}
|
|
<span class="streetNumber">, {{ address.streetNumber }}</span>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
{% if address.postCode is not empty %}
|
|
<div class="postCode">
|
|
<span>{{ address.postCode.code }}</span> <span>{{ address.postCode.name }}</span>
|
|
<span class="country">({{ address.postCode.country.name|localize_translatable_string }})</span>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
</div>
|
|
|
|
{#<ul class="record_actions">
|
|
<li>
|
|
<a href="{{ path('chill_person_household_address_edit', { 'household_id': household.id, 'address_id' : address.id } ) }}" class="btn btn-edit"></a>
|
|
</li>
|
|
</ul> #}
|
|
</div>
|
|
|
|
<div class="date">
|
|
{% if address.validFrom is not empty %}
|
|
{{ address.validFrom|format_date('long') }}
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<ul class="record_actions">
|
|
<li>
|
|
<a class="btn btn-create"
|
|
href="{{ chill_path_add_return_path('chill_person_household_address_move', { 'household_id': household.id }) }}">
|
|
{{ 'Move household'|trans }}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
{% endblock %}
|