mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
#134 fixes address multiline
This commit is contained in:
parent
7363092d51
commit
badf632a8a
@ -7,7 +7,7 @@
|
|||||||
addLink: false,
|
addLink: false,
|
||||||
addAltNames: true,
|
addAltNames: true,
|
||||||
addAge : false,
|
addAge : false,
|
||||||
hLevel : 3
|
hLevel : 3,
|
||||||
}"
|
}"
|
||||||
:person="participation.person">
|
:person="participation.person">
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
<li v-if="person.current_household_address">
|
<li v-if="person.current_household_address">
|
||||||
<i class="fa fa-li fa-map-marker"></i>
|
<i class="fa fa-li fa-map-marker"></i>
|
||||||
<show-address :address="person.current_household_address" :isMultiline="false"></show-address>
|
<show-address :address="person.current_household_address" :isMultiline="isMultiline"></show-address>
|
||||||
</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>
|
||||||
@ -77,7 +77,6 @@
|
|||||||
<i class="fa fa-li fa-long-arrow-right"></i>
|
<i class="fa fa-li fa-long-arrow-right"></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>
|
||||||
|
|
||||||
<slot name="custom-zone"></slot>
|
<slot name="custom-zone"></slot>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
@ -104,6 +103,13 @@ export default {
|
|||||||
getGender: function() {
|
getGender: function() {
|
||||||
return this.person.gender == 'woman' ? 'renderbox.birthday.woman' : 'renderbox.birthday.man';
|
return this.person.gender == 'woman' ? 'renderbox.birthday.woman' : 'renderbox.birthday.man';
|
||||||
},
|
},
|
||||||
|
isMultiline: function() {
|
||||||
|
if(this.options.isMultiline){
|
||||||
|
return this.options.isMultiline
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
},
|
||||||
getGenderIcon: function() {
|
getGenderIcon: function() {
|
||||||
return this.person.gender == 'woman' ? 'fa-venus' : this.person.gender == 'man' ? 'fa-mars' : 'fa-neuter';
|
return this.person.gender == 'woman' ? 'fa-venus' : this.person.gender == 'man' ? 'fa-mars' : 'fa-neuter';
|
||||||
},
|
},
|
||||||
@ -129,7 +135,7 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang='scss'>
|
||||||
.lastname:before{
|
.lastname:before{
|
||||||
content: " "
|
content: " "
|
||||||
}
|
}
|
||||||
@ -137,6 +143,16 @@ export default {
|
|||||||
div.item-col:first-child{
|
div.item-col:first-child{
|
||||||
width: 33%;
|
width: 33%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.flex-table {
|
||||||
|
div.item-bloc {
|
||||||
|
div.item-row {
|
||||||
|
div.item-col:last-child {
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="action === 'show'">
|
<div v-if="action === 'show'">
|
||||||
<div class="flex-table">
|
<div class="flex-table">
|
||||||
<!-- {{ person }} -->
|
|
||||||
<person-render-box
|
<person-render-box
|
||||||
:person="person"
|
:person="person"
|
||||||
:options="{
|
:options="{
|
||||||
@ -12,7 +11,8 @@
|
|||||||
addLink: false,
|
addLink: false,
|
||||||
hLevel: 3,
|
hLevel: 3,
|
||||||
addCenter: true,
|
addCenter: true,
|
||||||
addNoData: true
|
addNoData: true,
|
||||||
|
isMultiline: true
|
||||||
}"
|
}"
|
||||||
></person-render-box>
|
></person-render-box>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user