mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
create person and household option added to dropdown
This commit is contained in:
parent
f42d106e3c
commit
a9624b36f7
@ -19,6 +19,7 @@ and this project adheres to
|
|||||||
* ajoute un ordre dans les localisation (api)
|
* ajoute un ordre dans les localisation (api)
|
||||||
* [pick entity]: fix translations in modal (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/419)
|
* [pick entity]: fix translations in modal (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/419)
|
||||||
* [homepage_widget]: fix translation on emergency badge (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/440)
|
* [homepage_widget]: fix translation on emergency badge (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/440)
|
||||||
|
* [person]: create person and household added to button dropdown (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/454)
|
||||||
|
|
||||||
|
|
||||||
## Test releases
|
## Test releases
|
||||||
|
@ -224,6 +224,8 @@ final class PersonController extends AbstractController
|
|||||||
'label' => 'Add the person',
|
'label' => 'Add the person',
|
||||||
])->add('createPeriod', SubmitType::class, [
|
])->add('createPeriod', SubmitType::class, [
|
||||||
'label' => 'Add the person and create an accompanying period',
|
'label' => 'Add the person and create an accompanying period',
|
||||||
|
])->add('createHousehold', SubmitType::class, [
|
||||||
|
'label' => 'Add the person and create a household'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
@ -252,6 +254,12 @@ final class PersonController extends AbstractController
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($form->get('createHousehold')->isClicked()) {
|
||||||
|
return $this->redirectToRoute('chill_person_household_members_editor', [
|
||||||
|
'persons' => [$person->getId()],
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
return $this->redirectToRoute(
|
return $this->redirectToRoute(
|
||||||
'chill_person_general_edit',
|
'chill_person_general_edit',
|
||||||
['person_id' => $person->getId()]
|
['person_id' => $person->getId()]
|
||||||
|
@ -115,6 +115,9 @@
|
|||||||
<li>
|
<li>
|
||||||
{{ form_widget(form.editPerson, { 'attr': { 'class': 'dropdown-item' }}) }}
|
{{ form_widget(form.editPerson, { 'attr': { 'class': 'dropdown-item' }}) }}
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
{{ form_widget(form.createHousehold, { 'attr': { 'class': 'dropdown-item' }}) }}
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
{{ form_widget(form.createPeriod, { 'attr': { 'class': 'dropdown-item' }}) }}
|
{{ form_widget(form.createPeriod, { 'attr': { 'class': 'dropdown-item' }}) }}
|
||||||
</li>
|
</li>
|
||||||
|
@ -124,7 +124,7 @@ address_country_code: Code pays
|
|||||||
'Alreay existing person': 'Dossiers déjà encodés'
|
'Alreay existing person': 'Dossiers déjà encodés'
|
||||||
'Add the person': 'Ajouter la personne'
|
'Add the person': 'Ajouter la personne'
|
||||||
'Add the person and create an accompanying period': "Créer la personne & créer une période d'accompagnement"
|
'Add the person and create an accompanying period': "Créer la personne & créer une période d'accompagnement"
|
||||||
'Add the person and create an household': "Créer la personne & créer un ménage"
|
'Add the person and create a household': "Créer la personne & créer un ménage"
|
||||||
Show person: Voir le dossier de la personne
|
Show person: Voir le dossier de la personne
|
||||||
'Confirm the creation': 'Confirmer la création'
|
'Confirm the creation': 'Confirmer la création'
|
||||||
'You will create this person': 'Vous allez créer le dossier suivant'
|
'You will create this person': 'Vous allez créer le dossier suivant'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user