mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
person: create a person with address (and household without position (remove required position for household member)
This commit is contained in:
@@ -302,14 +302,10 @@ export default {
|
||||
'type': 'person',
|
||||
'id': responsePerson.id
|
||||
},
|
||||
'position': {
|
||||
"type": "household_position",
|
||||
"id": 4 //TODO, which position?
|
||||
},
|
||||
'start_date': {
|
||||
'datetime': `${new Date().toISOString().split('T')[0]}T00:00:00+02:00`
|
||||
},
|
||||
'holder': false, //TODO true or false?
|
||||
'holder': false,
|
||||
'comment': null
|
||||
}
|
||||
],
|
||||
|
@@ -146,6 +146,7 @@
|
||||
<label class="form-check-label">{{ $t('person.address.show_address_form') }}</label>
|
||||
</div>
|
||||
<div v-if="action === 'create' && showAddressFormValue" class="form-floating mb-3">
|
||||
<p>{{ $t('person.address.warning') }}</p>
|
||||
<add-address
|
||||
:context="addAddress.context"
|
||||
:options="addAddress.options"
|
||||
|
@@ -45,7 +45,8 @@ const personMessages = {
|
||||
},
|
||||
address: {
|
||||
create_address: "Ajouter une adresse",
|
||||
show_address_form: "Créer un ménage et ajouter une adresse"
|
||||
show_address_form: "Créer un ménage et ajouter une adresse",
|
||||
warning: "Un nouveau ménage va être créé. L'usager sera membre de ce ménage."
|
||||
}
|
||||
},
|
||||
error_only_one_person: "Une seule personne peut être sélectionnée !"
|
||||
|
@@ -111,6 +111,7 @@
|
||||
{{ form_row(form.addressForm) }}
|
||||
</div>
|
||||
<div id=address>
|
||||
<p>{{ 'A new household will be created. The person will be member of this household.'|trans }}</p>
|
||||
{{ form_row(form.address) }}
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user