requestor adapted to use PersonRenderBox or ThirdPartyRenderBox

This commit is contained in:
2021-08-19 14:47:41 +02:00
parent de7322464b
commit 6ca35d5a18
4 changed files with 51 additions and 27 deletions

View File

@@ -10,8 +10,28 @@
{{ $t('requestor.is_anonymous') }}
</label>
<div class="item-bloc">
<h4>
<!-- <div class="flex-bloc row row-cols-1 g-0"> -->
<third-party-renderbox v-if="accompanyingCourse.requestor.type == 'thirdparty'"
:thirdparty="accompanyingCourse.requestor"
:options="{
addLink: false,
addId: false,
addEntity: true,
addInfo: true
}"
></third-party-renderbox>
<person-render-box v-else-if="accompanyingCourse.requestor.type == 'person'"
:person="accompanyingCourse.requestor"
:options="{
addLink: false,
addId: false,
addAltNames: false,
addEntity: true,
addInfo: true
}"
></person-render-box>
<!-- </div> -->
<!-- <h4>
<span class="badge rounded-pill bg-secondary">{{ accompanyingCourse.requestor.type }}</span>
{{ accompanyingCourse.requestor.text }}
</h4>
@@ -54,8 +74,8 @@
action="edit">
</on-the-fly>
</li>
</ul>
</div>
</ul> -->
<ul class="record_actions">
<li>
<button class="btn btn-remove"
@@ -87,12 +107,16 @@
<script>
import AddPersons from 'ChillPersonAssets/vuejs/_components/AddPersons.vue';
import OnTheFly from 'ChillMainAssets/vuejs/_components/OnTheFly.vue';
import PersonRenderBox from '../../_components/Entity/PersonRenderBox.vue';
import ThirdPartyRenderbox from '../../../../../../ChillThirdPartyBundle/Resources/public/vuejs/_components/ThirdPartyRenderbox.vue';
export default {
name: 'Requestor',
components: {
AddPersons,
OnTheFly
OnTheFly,
PersonRenderBox,
ThirdPartyRenderbox,
},
data() {
return {

View File

@@ -26,7 +26,7 @@
addEntity: true,
addInfo: true
}"
:thirdparty="resource"
:thirdparty="resource.resource"
>
<template v-slot:record-actions>
<ul class="record_actions">