#134 fixes address multiline

This commit is contained in:
Julie Lenaerts 2021-08-20 16:55:04 +02:00
parent 7363092d51
commit badf632a8a
3 changed files with 22 additions and 6 deletions

View File

@ -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">

View File

@ -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>

View File

@ -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>