mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
residential address: show residential address or info in PersonRenderBox + add ThirdPartyText
This commit is contained in:
@@ -117,18 +117,50 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item-col">
|
||||
<div class="item-col mx-3">
|
||||
<div class="float-button bottom">
|
||||
<div class="box">
|
||||
<ul class="list-content fa-ul">
|
||||
<li v-if="person.current_residential_address">
|
||||
<i class="fa fa-li fa-map-marker"></i>
|
||||
<div v-if="person.current_residential_address.address">
|
||||
<address-render-box
|
||||
:address="person.current_residential_address.address"
|
||||
:isMultiline="isMultiline">
|
||||
</address-render-box>
|
||||
<p>({{ $t('renderbox.residential_address') }})</p>
|
||||
</div>
|
||||
<div v-else-if="person.current_residential_address.hostPerson" class="mt-3">
|
||||
<p>{{ $t('renderbox.located_at') }}:</p>
|
||||
<span class="chill-entity entity-person badge-person">
|
||||
<person-text
|
||||
v-if="person.current_residential_address.hostPerson"
|
||||
:person="person.current_residential_address.hostPerson"
|
||||
></person-text>
|
||||
</span>
|
||||
<address-render-box v-if="person.current_residential_address.hostPerson.address"
|
||||
:address="person.current_residential_address.hostPerson.address"
|
||||
:isMultiline="isMultiline">
|
||||
</address-render-box>
|
||||
</div>
|
||||
<div v-else-if="person.current_residential_address.hostThirdParty" class="mt-3">
|
||||
<p>{{ $t('renderbox.located_at') }}:</p>
|
||||
<span class="chill-entity entity-person badge-thirdparty">
|
||||
<third-party-text
|
||||
v-if="person.current_residential_address.hostThirdParty"
|
||||
:thirdparty="person.current_residential_address.hostThirdParty"
|
||||
></third-party-text>
|
||||
</span>
|
||||
<address-render-box v-if="person.current_residential_address.hostThirdParty.address"
|
||||
:address="person.current_residential_address.hostThirdParty.address"
|
||||
:isMultiline="isMultiline">
|
||||
</address-render-box>
|
||||
</div>
|
||||
|
||||
<ul class="list-content fa-ul">
|
||||
<li v-if="person.current_residential_address">
|
||||
ICI l'adresse de résidence, if any
|
||||
<i class="fa fa-li fa-map-marker"></i>
|
||||
<address-render-box v-if="person.current_residential_address"
|
||||
:address="person.current_residential_address"
|
||||
:isMultiline="isMultiline">
|
||||
</address-render-box>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -162,6 +194,7 @@ import AddressRenderBox from 'ChillMainAssets/vuejs/_components/Entity/AddressRe
|
||||
import Confidential from 'ChillMainAssets/vuejs/_components/Confidential.vue';
|
||||
import BadgeEntity from 'ChillMainAssets/vuejs/_components/BadgeEntity.vue';
|
||||
import PersonText from 'ChillPersonAssets/vuejs/_components/Entity/PersonText.vue';
|
||||
import ThirdPartyText from 'ChillThirdPartyAssets/vuejs/_components/Entity/ThirdPartyText.vue';
|
||||
|
||||
export default {
|
||||
name: "PersonRenderBox",
|
||||
@@ -169,7 +202,8 @@ export default {
|
||||
AddressRenderBox,
|
||||
Confidential,
|
||||
BadgeEntity,
|
||||
PersonText
|
||||
PersonText,
|
||||
ThirdPartyText
|
||||
},
|
||||
props: ['person', 'options', 'render', 'returnPath'],
|
||||
computed: {
|
||||
|
Reference in New Issue
Block a user