mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-30 22:16:14 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
a17f5948fb
@ -11,6 +11,7 @@ and this project adheres to
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
<!-- write down unreleased development here -->
|
<!-- write down unreleased development here -->
|
||||||
|
* [person] add a returnPath when clicking on some Person or ThirdParty badge (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/427)
|
||||||
* [person] accompanying course work: fix on-the-fly update of thirdParty
|
* [person] accompanying course work: fix on-the-fly update of thirdParty
|
||||||
* [on-the-fly] close modal only after validation
|
* [on-the-fly] close modal only after validation
|
||||||
* [person] correct thirdparty PATCH url + add email and altnames in AddPerson and serializer (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/433)
|
* [person] correct thirdparty PATCH url + add email and altnames in AddPerson and serializer (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/433)
|
||||||
@ -18,12 +19,13 @@ and this project adheres to
|
|||||||
* [person]: style fix in parcours listing per person. (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/432)
|
* [person]: style fix in parcours listing per person. (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/432)
|
||||||
* 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)
|
||||||
|
* [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
|
||||||
|
|
||||||
### test release 2021-02-01
|
### test release 2021-02-01
|
||||||
>>>>>>> master
|
|
||||||
|
|
||||||
* renommer "dossier numéro" en "parcours numéro" dans les résultats de recherche
|
* renommer "dossier numéro" en "parcours numéro" dans les résultats de recherche
|
||||||
* renomme date de début en date d'ouverture dans le formulaire parcours
|
* renomme date de début en date d'ouverture dans le formulaire parcours
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span v-if="c.emergency" class="badge rounded-pill bg-danger">{{ $t('emergency') }}</span>
|
<span v-if="c.emergency" class="badge rounded-pill bg-danger me-1">{{ $t('emergency') }}</span>
|
||||||
<span v-if="c.confidential" class="badge rounded-pill bg-danger">{{ $t('confidential') }}</span>
|
<span v-if="c.confidential" class="badge rounded-pill bg-danger">{{ $t('confidential') }}</span>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@ -80,5 +80,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
span.badge.rounded-pill.bg-danger {
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
@ -50,7 +50,9 @@ const appMessages = {
|
|||||||
assignated_evaluations: "{n} évaluation assignée | {n} évaluations assignées",
|
assignated_evaluations: "{n} évaluation assignée | {n} évaluations assignées",
|
||||||
alert_tasks: "{n} tâche en rappel | {n} tâches en rappel",
|
alert_tasks: "{n} tâche en rappel | {n} tâches en rappel",
|
||||||
warning_tasks: "{n} tâche à échéance | {n} tâches à échéance",
|
warning_tasks: "{n} tâche à échéance | {n} tâches à échéance",
|
||||||
}
|
},
|
||||||
|
emergency: "Urgent",
|
||||||
|
confidential: "Confidentiel",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -160,7 +160,10 @@ export default {
|
|||||||
},
|
},
|
||||||
badgeType() {
|
badgeType() {
|
||||||
return 'entity-' + this.type + ' badge-' + this.type;
|
return 'entity-' + this.type + ' badge-' + this.type;
|
||||||
}
|
},
|
||||||
|
getReturnPath() {
|
||||||
|
return `?returnPath=${window.location.pathname}${window.location.search}${window.location.hash}`;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeModal() {
|
closeModal() {
|
||||||
@ -207,9 +210,9 @@ export default {
|
|||||||
buildLocation(id, type) {
|
buildLocation(id, type) {
|
||||||
if (type === 'person') {
|
if (type === 'person') {
|
||||||
// TODO i18n
|
// TODO i18n
|
||||||
return `/fr/person/${id}/general`;
|
return encodeURI(`/fr/person/${id}/general${this.getReturnPath}`);
|
||||||
} else if (type === 'thirdparty') {
|
} else if (type === 'thirdparty') {
|
||||||
return `/fr/3party/3party/${id}/view`;
|
return encodeURI(`/fr/3party/3party/${id}/view${this.getReturnPath}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,6 @@ class HouseholdApiController extends ApiController
|
|||||||
*/
|
*/
|
||||||
public function getHouseholdByAddressReference(AddressReference $addressReference): Response
|
public function getHouseholdByAddressReference(AddressReference $addressReference): Response
|
||||||
{
|
{
|
||||||
// TODO ACL
|
|
||||||
$this->denyAccessUnlessGranted('ROLE_USER');
|
$this->denyAccessUnlessGranted('ROLE_USER');
|
||||||
|
|
||||||
$total = $this->householdACLAwareRepository->countByAddressReference($addressReference);
|
$total = $this->householdACLAwareRepository->countByAddressReference($addressReference);
|
||||||
|
@ -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()]
|
||||||
|
@ -14,7 +14,7 @@ namespace Chill\PersonBundle\Repository\Household;
|
|||||||
use Chill\MainBundle\Entity\AddressReference;
|
use Chill\MainBundle\Entity\AddressReference;
|
||||||
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
|
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
|
||||||
use Chill\PersonBundle\Entity\Household\Household;
|
use Chill\PersonBundle\Entity\Household\Household;
|
||||||
use Chill\PersonBundle\Security\Authorization\HouseholdVoter;
|
use Chill\PersonBundle\Security\Authorization\PersonVoter;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Doctrine\ORM\QueryBuilder;
|
use Doctrine\ORM\QueryBuilder;
|
||||||
@ -39,7 +39,7 @@ final class HouseholdACLAwareRepository implements HouseholdACLAwareRepositoryIn
|
|||||||
{
|
{
|
||||||
$centers = $this->authorizationHelper->getReachableCenters(
|
$centers = $this->authorizationHelper->getReachableCenters(
|
||||||
$this->security->getUser(),
|
$this->security->getUser(),
|
||||||
HouseholdVoter::SEE
|
PersonVoter::SEE // the authorization to see a household is the same as seeing a person
|
||||||
);
|
);
|
||||||
|
|
||||||
if ([] === $centers) {
|
if ([] === $centers) {
|
||||||
|
@ -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