mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Household summary: improve Address display when there is no address
This commit is contained in:
parent
e13b7bf195
commit
f1c29a8bd3
@ -16,42 +16,39 @@
|
|||||||
|
|
||||||
{% set address = household.currentAddress %}
|
{% set address = household.currentAddress %}
|
||||||
|
|
||||||
{% if address is empty %}
|
<div class="row household-resume">
|
||||||
<p class="chill-no-data-statement">{{ 'household.Household does not have any address currently'|trans }}</p>
|
<div class="item-bloc col-5 col-address">
|
||||||
{% else %}
|
<h2>{{ 'Address'|trans }}</h2>
|
||||||
<div class="row household-resume">
|
|
||||||
|
|
||||||
<div class="item-bloc col-5 col-address">
|
|
||||||
|
|
||||||
<h2>{{ 'Address'|trans }}</h2>
|
|
||||||
|
|
||||||
|
{% if address is empty %}
|
||||||
|
<p class="chill-no-data-statement">{{ 'household.Household does not have any address currently'|trans }}</p>
|
||||||
|
{% else %}
|
||||||
{{ address|chill_entity_render_box({'multiline': true}) }}
|
{{ address|chill_entity_render_box({'multiline': true}) }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<ul class="list-inline text-right mt-2">
|
<ul class="list-inline text-right mt-2">
|
||||||
<li class="list-inline-item">
|
<li class="list-inline-item">
|
||||||
{# include vue_address component #}
|
{# include vue_address component #}
|
||||||
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
{% include '@ChillMain/Address/_insert_vue_address.html.twig' with {
|
||||||
targetEntity: { name: 'household', id: household.id },
|
targetEntity: { name: 'household', id: household.id },
|
||||||
backUrl: path('chill_person_household_addresses', { 'household_id': household.id }),
|
backUrl: path('chill_person_household_summary', { 'household_id': household.id }),
|
||||||
mode: 'new',
|
forceRedirect: true,
|
||||||
buttonSize: 'btn-sm',
|
mode: 'new',
|
||||||
buttonText: 'Move household',
|
buttonSize: 'btn-sm',
|
||||||
modalTitle: 'Move household',
|
buttonText: 'Move household',
|
||||||
buttonDisplayText: false,
|
modalTitle: 'Move household',
|
||||||
} %}
|
buttonDisplayText: false,
|
||||||
{#
|
} %}
|
||||||
openPanesInModal: false
|
</li>
|
||||||
#}
|
<li class="list-inline-item">
|
||||||
</li>
|
<a class="btn btn-secondary btn-sm" title="{{ "Addresses history"|trans }}"
|
||||||
<li class="list-inline-item">
|
href="{{ path('chill_person_household_addresses', { 'household_id': household.id } ) }}">
|
||||||
<a class="btn btn-secondary btn-sm" title="{{ "Addresses history"|trans }}"
|
<i class="fa fa-list fa-fw"></i>
|
||||||
href="{{ path('chill_person_household_addresses', { 'household_id': household.id } ) }}">
|
</a>
|
||||||
<i class="fa fa-list fa-fw"></i>
|
</li>
|
||||||
</a>
|
</ul>
|
||||||
</li>
|
</div>
|
||||||
</ul>
|
{% if address is not empty %}
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="item-bloc col-7 col-comment">
|
<div class="item-bloc col-7 col-comment">
|
||||||
{% if form is null %}
|
{% if form is null %}
|
||||||
|
|
||||||
@ -106,10 +103,9 @@
|
|||||||
{{ form_end(form) }}
|
{{ form_end(form) }}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endif %}
|
||||||
{% endif %}
|
</div>
|
||||||
|
|
||||||
<h2 class="my-5">{{ 'household.Household members'|trans }}</h2>
|
<h2 class="my-5">{{ 'household.Household members'|trans }}</h2>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user