mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
style fixes requestor + multiline option for thirdpartyrenderbox
This commit is contained in:
parent
8bcd69c5ec
commit
4ee67869bd
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="vue-component">
|
<div class="vue-component">
|
||||||
|
<!-- {{ accompanyingCourse.requestor }} -->
|
||||||
<h2><a name="section-40"></a>{{ $t('requestor.title') }}</h2>
|
<h2><a name="section-40"></a>{{ $t('requestor.title') }}</h2>
|
||||||
|
|
||||||
<div v-if="accompanyingCourse.requestor" class="flex-bloc row row-cols-1 g-0">
|
<div v-if="accompanyingCourse.requestor" class="flex-table">
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" v-model="isAnonymous" class="me-2" />
|
<input type="checkbox" v-model="isAnonymous" class="me-2" />
|
||||||
@ -17,14 +17,17 @@
|
|||||||
addId: false,
|
addId: false,
|
||||||
addEntity: true,
|
addEntity: true,
|
||||||
addInfo: true,
|
addInfo: true,
|
||||||
hLevel: 3
|
hLevel: 3,
|
||||||
|
isMultiline: true
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template v-slot:record-actions>
|
<template v-slot:record-actions>
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li><on-the-fly :type="accompanyingCourse.requestor.type" :id="accompanyingCourse.requestor.id" action="show"></on-the-fly></li>
|
<button-location v-if="hasCurrentHouseholdAddress" :thirdparty="accompanyingCourse.requestor"></button-location>
|
||||||
</ul>
|
<li><on-the-fly :type="accompanyingCourse.requestor.type" :id="accompanyingCourse.requestor.id" action="show"></on-the-fly></li>
|
||||||
</template>
|
<li><on-the-fly :type="accompanyingCourse.requestor.type" :id="accompanyingCourse.requestor.id" action="edit"></on-the-fly></li>
|
||||||
|
</ul>
|
||||||
|
</template>
|
||||||
</third-party-render-box>
|
</third-party-render-box>
|
||||||
|
|
||||||
<person-render-box v-else-if="accompanyingCourse.requestor.type == 'person'"
|
<person-render-box v-else-if="accompanyingCourse.requestor.type == 'person'"
|
||||||
@ -35,14 +38,17 @@
|
|||||||
addAltNames: false,
|
addAltNames: false,
|
||||||
addEntity: true,
|
addEntity: true,
|
||||||
addInfo: true,
|
addInfo: true,
|
||||||
hLevel: 3
|
hLevel: 3,
|
||||||
|
isMultiline: true
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<template v-slot:record-actions>
|
<template v-slot:record-actions>
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li><on-the-fly :type="accompanyingCourse.requestor.type" :id="accompanyingCourse.requestor.id" action="show"></on-the-fly></li>
|
<button-location v-if="hasCurrentHouseholdAddress" :person="accompanyingCourse.requestor"></button-location>
|
||||||
</ul>
|
<li><on-the-fly :type="accompanyingCourse.requestor.type" :id="accompanyingCourse.requestor.id" action="show"></on-the-fly></li>
|
||||||
</template>
|
<li><on-the-fly :type="accompanyingCourse.requestor.type" :id="accompanyingCourse.requestor.id" action="edit"></on-the-fly></li>
|
||||||
|
</ul>
|
||||||
|
</template>
|
||||||
</person-render-box>
|
</person-render-box>
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<ul class="list-content fa-ul">
|
<ul class="list-content fa-ul">
|
||||||
<li v-if="thirdparty.address">
|
<li v-if="thirdparty.address">
|
||||||
<i class="fa fa-li fa-map-marker"></i>
|
<i class="fa fa-li fa-map-marker"></i>
|
||||||
<show-address :address="thirdparty.address" :isMultiline="false"></show-address>
|
<show-address :address="thirdparty.address" :isMultiline="isMultiline"></show-address>
|
||||||
</li>
|
</li>
|
||||||
<li v-if="thirdparty.telephone">
|
<li v-if="thirdparty.telephone">
|
||||||
<i class="fa fa-li fa-mobile"></i>
|
<i class="fa fa-li fa-mobile"></i>
|
||||||
@ -67,6 +67,13 @@ export default {
|
|||||||
},
|
},
|
||||||
props: ['thirdparty', 'options'],
|
props: ['thirdparty', 'options'],
|
||||||
computed: {
|
computed: {
|
||||||
|
isMultiline: function() {
|
||||||
|
if(this.options.isMultiline){
|
||||||
|
return this.options.isMultiline
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
},
|
||||||
getGender: function() {
|
getGender: function() {
|
||||||
return this.thirdparty.gender == 'woman' ? 'renderbox.birthday.woman' : 'renderbox.birthday.man';
|
return this.thirdparty.gender == 'woman' ? 'renderbox.birthday.woman' : 'renderbox.birthday.man';
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user