mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
try to fix some things
This commit is contained in:
@@ -128,42 +128,42 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="item-col mx-3">
|
||||
<div class="item-col mx-3" v-if="this.showResidentialAddresses && (person.current_residential_addresses || []).length > 0">
|
||||
<div class="float-button bottom">
|
||||
<div class="box">
|
||||
<div class="box" >
|
||||
<ul class="list-content fa-ul">
|
||||
<li v-if="person.current_residential_address">
|
||||
<li v-for="addr in person.current_residential_addresses">
|
||||
<i class="fa fa-li fa-map-marker"></i>
|
||||
<div v-if="person.current_residential_address.address">
|
||||
<div v-if="addr.address">
|
||||
<address-render-box
|
||||
:address="person.current_residential_address.address"
|
||||
:address="addr.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">
|
||||
<div v-else-if="addr.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"
|
||||
v-if="addr.hostPerson"
|
||||
:person="addr.hostPerson"
|
||||
></person-text>
|
||||
</span>
|
||||
<address-render-box v-if="person.current_residential_address.hostPerson.address"
|
||||
:address="person.current_residential_address.hostPerson.address"
|
||||
<address-render-box v-if="addr.hostPerson.address"
|
||||
:address="addr.hostPerson.address"
|
||||
:isMultiline="isMultiline">
|
||||
</address-render-box>
|
||||
</div>
|
||||
<div v-else-if="person.current_residential_address.hostThirdParty" class="mt-3">
|
||||
<div v-else-if="addr.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"
|
||||
v-if="addr.hostThirdParty"
|
||||
:thirdparty="addr.hostThirdParty"
|
||||
></third-party-text>
|
||||
</span>
|
||||
<address-render-box v-if="person.current_residential_address.hostThirdParty.address"
|
||||
:address="person.current_residential_address.hostThirdParty.address"
|
||||
<address-render-box v-if="addr.hostThirdParty.address"
|
||||
:address="addr.hostThirdParty.address"
|
||||
:isMultiline="isMultiline">
|
||||
</address-render-box>
|
||||
</div>
|
||||
@@ -216,7 +216,25 @@ export default {
|
||||
PersonText,
|
||||
ThirdPartyText
|
||||
},
|
||||
props: ['person', 'options', 'render', 'returnPath'],
|
||||
props: {
|
||||
person: {
|
||||
required: true,
|
||||
},
|
||||
options: {
|
||||
type: Object,
|
||||
required: false,
|
||||
},
|
||||
render: {
|
||||
type: String,
|
||||
},
|
||||
returnPath: {
|
||||
type: String,
|
||||
},
|
||||
showResidentialAddresses: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
isMultiline: function() {
|
||||
if(this.options.isMultiline){
|
||||
|
@@ -15,6 +15,7 @@
|
||||
addNoData: true,
|
||||
isMultiline: true
|
||||
}"
|
||||
:show-residential-addresses="true"
|
||||
></person-render-box>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user