placeholders for civility and profession

This commit is contained in:
Julie Lenaerts 2022-01-19 12:14:37 +01:00
parent f093765d03
commit 8f92f79f85
2 changed files with 7 additions and 6 deletions

View File

@ -228,13 +228,14 @@ export default {
"profession": {"id": data.profession},
"comment": data.comment,
"telephone": data.phonenumber,
"email": data.email
"email": data.email,
"address": data.address
}
// console.log('body', body)
postThirdparty(body)
.then(thirdparty => new Promise((resolve, reject) => {
// this.newPriorSuggestion(thirdparty);
console.log('thirdparty created', thirdparty)
// this.$parent.newPriorSuggestion(thirdparty);
// console.log('thirdparty created', thirdparty)
resolve();
}));
} else {

View File

@ -69,14 +69,14 @@
<div class="input-group mb-3">
<select class="form-select form-select-lg" id="profession"
v-model="thirdparty.civility">
<option selected disabled >{{ $t('thirdparty.civility') }}</option>
<option selected disabled :value="undefined" >{{ $t('thirdparty.civility') }}</option>
<option v-for="civility in civilities" :key="civility.id" :value="civility.id">{{ civility.name.fr }}</option>
</select>
</div>
<div class="input-group mb-3">
<select class="form-select form-select-lg" id="civility"
v-model="thirdparty.profession">
<option selected disabled >{{ $t('thirdparty.profession') }}</option>
<option selected disabled :value="undefined">{{ $t('thirdparty.profession') }}</option>
<option v-for="profession in professions" :key="profession.id" :value="profession.id">{{ profession.name.fr }}</option>
</select>
</div>
@ -89,7 +89,7 @@
</div>
<template
v-if="thirdparty.kind !== 'child' || parent">
v-if="thirdparty.kind !== 'child'">
<add-address
key="thirdparty"
:context="context"