mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 14:36:13 +00:00
when a person has a household without address: display no_data message, even if option addNoData is false
This commit is contained in:
parent
a94a757ae6
commit
dba3ede9e1
@ -77,6 +77,7 @@ const messages = {
|
|||||||
man: "Né le",
|
man: "Né le",
|
||||||
woman: "Née le"
|
woman: "Née le"
|
||||||
} ,
|
} ,
|
||||||
|
household_without_address: "Le ménage de l'usager est sans adresse",
|
||||||
no_data: "Aucune information renseignée",
|
no_data: "Aucune information renseignée",
|
||||||
type: {
|
type: {
|
||||||
thirdparty: "Tiers",
|
thirdparty: "Tiers",
|
||||||
|
@ -48,20 +48,27 @@
|
|||||||
</div>
|
</div>
|
||||||
<ul class="list-content fa-ul">
|
<ul class="list-content fa-ul">
|
||||||
|
|
||||||
<li v-if="person.current_household_address">
|
<li v-if="person.current_household_id">
|
||||||
<i class="fa fa-li fa-map-marker"></i>
|
<i class="fa fa-li fa-map-marker"></i>
|
||||||
<address-render-box :address="person.current_household_address" :isMultiline="isMultiline"></address-render-box>
|
<address-render-box v-if="person.current_household_address"
|
||||||
<a :href="getCurrentHouseholdUrl" :title="$t('persons_associated.show_household_number', {id: person.current_household_id})">
|
:address="person.current_household_address"
|
||||||
|
:isMultiline="isMultiline">
|
||||||
|
</address-render-box>
|
||||||
|
<p v-else class="chill-no-data-statement">
|
||||||
|
{{ $t('renderbox.household_without_address') }}
|
||||||
|
</p>
|
||||||
|
<a :href="getCurrentHouseholdUrl"
|
||||||
|
:title="$t('persons_associated.show_household_number', {id: person.current_household_id})">
|
||||||
<span class="badge rounded-pill bg-chill-beige">
|
<span class="badge rounded-pill bg-chill-beige">
|
||||||
<i class="fa fa-fw fa-home"></i>
|
<i class="fa fa-fw fa-home"></i><!--{{ $t('persons_associated.show_household') }}-->
|
||||||
<!--{{ $t('persons_associated.show_household') }}-->
|
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<br>
|
|
||||||
</li>
|
</li>
|
||||||
<li v-else-if="options.addNoData">
|
<li v-else-if="options.addNoData">
|
||||||
<i class="fa fa-li fa-map-marker"></i>
|
<i class="fa fa-li fa-map-marker"></i>
|
||||||
<p class="chill-no-data-statement">{{ $t('renderbox.no_data') }}</p>
|
<p class="chill-no-data-statement">
|
||||||
|
{{ $t('renderbox.no_data') }}
|
||||||
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li v-if="person.mobilenumber">
|
<li v-if="person.mobilenumber">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user