household: if no addresses, misc stuffs

This commit is contained in:
2021-08-01 16:17:29 +02:00
parent 96e979f92d
commit a096266ca5
3 changed files with 150 additions and 145 deletions

View File

@@ -7,22 +7,22 @@
<h1>{{ block('title') }}</h1>
<ul class="record_actions my-3">
<li style="margin: auto;">
<a class="btn btn-lg btn-create"
href="{{ chill_path_add_return_path('chill_person_household_address_move', { 'household_id': household.id }) }}">
{{ 'Move household'|trans }}
</a>
</li>
</ul>
{% if household.addresses|length == 0 %}
<span class="chill-no-data-statement">{{ 'No address given'|trans }}</span>
{% else %}
<div class="address-timeline grid">
<ul class="record_actions my-3">
<li style="margin: auto;">
<a class="btn btn-lg btn-create"
href="{{ chill_path_add_return_path('chill_person_household_address_move', { 'household_id': household.id }) }}">
{{ 'Move household'|trans }}
</a>
</li>
</ul>
{% 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 %}
<div class="address-timeline grid">
<div class="top"><i class="fa fa-caret-up fa-3x"></i></div>
{% set row = 0 %}
{% set previousRowFrom = null %}
@@ -68,6 +68,7 @@
{% set previousRowFrom = address.validFrom %}
{% endfor %}
</div>
{% endif %}
<ul class="record_actions sticky-form-buttons">
<li class="cancel">