mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
onTheFly with hardcoded data. needs to be changed when endpoint is created
This commit is contained in:
parent
4ee67869bd
commit
1e996ce230
@ -1,20 +1,77 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<!-- !!!! DATA still hardcoded until endpoint is fixed -->
|
||||||
|
|
||||||
<div v-if="action === 'show'">
|
<div v-if="action === 'show'">
|
||||||
show
|
<div class="flex-table">
|
||||||
thirdparty
|
<third-party-render-box
|
||||||
{{ id }}
|
:thirdparty="thirdparty"
|
||||||
|
:options="{
|
||||||
|
addInfo: true,
|
||||||
|
addEntity: false,
|
||||||
|
addAltNames: true,
|
||||||
|
addId: true,
|
||||||
|
addLink: false,
|
||||||
|
hLevel: 3,
|
||||||
|
addCenter: true,
|
||||||
|
addNoData: true,
|
||||||
|
isMultiline: true
|
||||||
|
}"
|
||||||
|
></third-party-render-box>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else-if="action === 'edit' || action === 'create'">
|
<div v-else-if="action === 'edit' || action === 'create'">
|
||||||
{{ action }}
|
<div class="form-floating mb-3">
|
||||||
thirdparty
|
<input class="form-control form-control-lg" id="firstname" v-model="thirdparty.firstName" v-bind:placeholder="$t('thirdparty.firstname')" />
|
||||||
{{ id }}
|
<label for="firstname">{{ $t('thirdparty.firstname') }}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-floating mb-3">
|
||||||
|
<input class="form-control form-control-lg" id="lastname" v-model="thirdparty.lastName" v-bind:placeholder="$t('thirdparty.lastname')" />
|
||||||
|
<label for="lastname">{{ $t('thirdparty.lastname') }}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="input-group mb-3">
|
||||||
|
<span class="input-group-text" id="email"><i class="fa fa-fw fa-envelope"></i></span>
|
||||||
|
<input class="form-control form-control-lg"
|
||||||
|
v-model="thirdparty.email"
|
||||||
|
v-bind:placeholder="$t('thirdparty.email')"
|
||||||
|
v-bind:aria-label="$t('thirdparty.email')"
|
||||||
|
aria-describedby="email" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="input-group mb-3">
|
||||||
|
<span class="input-group-text" id="phonenumber"><i class="fa fa-fw fa-phone"></i></span>
|
||||||
|
<input class="form-control form-control-lg"
|
||||||
|
v-model="thirdparty.telephone"
|
||||||
|
v-bind:placeholder="$t('thirdparty.phonenumber')"
|
||||||
|
v-bind:aria-label="$t('thirdparty.phonenumber')"
|
||||||
|
aria-describedby="phonenumber" />
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import ThirdPartyRenderBox from '../Entity/ThirdPartyRenderBox.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "OnTheFlyThirdParty",
|
name: "OnTheFlyThirdParty",
|
||||||
props: ['id', 'type', 'action']
|
props: ['id', 'type', 'action'],
|
||||||
|
components: {
|
||||||
|
ThirdPartyRenderBox,
|
||||||
|
},
|
||||||
|
data: function() {
|
||||||
|
return {
|
||||||
|
thirdparty: {
|
||||||
|
text : "Bart Maes",
|
||||||
|
firstName : "Bart",
|
||||||
|
lastName : "Maes",
|
||||||
|
email : "bartmaes@gmail.com",
|
||||||
|
telephone : "0475 94 66 15",
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// TODO move in ChillThirdpartyAssets
|
// TODO move in ChillThirdpartyAssets
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user