Using thirdparty renderbox to display intervening thirdparties

This commit is contained in:
Julie Lenaerts 2021-12-09 12:35:52 +01:00
parent 21e3da0266
commit 534a8bb3af
2 changed files with 41 additions and 54 deletions

View File

@ -149,8 +149,6 @@
</ul>
</div>
<div v-else class="flex-table">
<!-- <p>{{ handlingThirdParty.text }}</p>
<address-render-box :address="handlingThirdParty.address"></address-render-box> -->
<third-party-render-box
:thirdparty="handlingThirdParty"
:options="{
@ -164,8 +162,7 @@
}"></third-party-render-box>
<ul class="record_actions">
<li>
<button :title="$t('remove_handling_thirdparty')" class="btn btn-remove"
@click="removeHandlingThirdParty"></button>
<button :title="$t('remove_handling_thirdparty')" class="btn btn-remove" @click="removeHandlingThirdParty"/>
</li>
</ul>
</div>
@ -180,32 +177,22 @@
</div>
<div v-else>
<!-- <div class="flex-bloc mb-3">
<div class="flex-bloc mb-3">
<third-party-render-box
:v-for="t in thirdParties"
:thirdparty="t"
v-for="thirdparty in thirdParties"
:key="thirdparty.id"
:thirdparty="thirdparty"
:options="{ addLink : false, addId : false, addEntity: true, addInfo: false, hLevel: 3 }"
>
<template v-slot:record-actions>
<ul class="record_actions">
<li><on-the-fly :id="t.id" action="show"></on-the-fly></li>
<li><on-the-fly :id="t.id" action="edit" @saveFormOnTheFly="saveFormOnTheFly"></on-the-fly></li>
<li><button class="btn btn-sm btn-remove" :title="$t('action.remove')" @click.prevent="$emit('remove', resource)"></button></li>
<li>
<button :title="$t('remove_thirdparty')" class="btn btn-remove" @click="removeThirdParty(thirdparty)" />
</li>
</ul>
</template>
</third-party-render-box>
</div> -->
<ul>
<li v-for="t in thirdParties">
<p>{{ t.text }}</p>
<address-render-box :address="t.address"></address-render-box>
<ul class="record_actions">
<button :title="$t('remove_thirdparty')" class="btn btn-remove"
@click="removeThirdParty(t)"></button>
</ul>
</li>
</ul>
</div>
</div>
<ul class="record_actions">