Feature: Add a list export for evaluation, actions and household

This commit is contained in:
2023-01-26 14:22:30 +00:00
committed by Julien Fastré
parent 9ada19ef23
commit e54c2ca712
24 changed files with 1323 additions and 50 deletions

View File

@@ -28,6 +28,21 @@ class LabelThirdPartyHelper
$this->thirdPartyRepository = $thirdPartyRepository;
}
public function getLabel(string $key, array $values, string $header): callable
{
return function ($value) use ($header) {
if ('_header' === $value) {
return $header;
}
if (null === $value || null === $thirdParty = $this->thirdPartyRepository->find($value)) {
return '';
}
return $this->thirdPartyRender->renderString($thirdParty, []);
};
}
public function getLabelMulti(string $key, array $values, string $header): callable
{
return function ($value) use ($header) {

View File

@@ -54,7 +54,7 @@ class ThirdPartyVoter extends AbstractChillVoter implements ProvideRoleHierarchy
public function getRolesWithHierarchy(): array
{
return [
'Third Party' => $this->getRoles(),
'Third party' => $this->getRoles(),
];
}

View File

@@ -82,6 +82,15 @@ Third party category: Catégories de tiers
Third party configuration: Gestion des tiers
# person resource
Select a thirdparty: "Choisissez un tiers"
Contact person: "Personne de contact"
# Residential address
The address of a third party: L'adresse d'un tiers
residential_address_third_party_explanation: L'adresse sera associée à celle d'un tiers.
Host third party: Choisir l'adresse d'un tiers
# ROLES
CHILL_3PARTY_3PARTY_CREATE: Ajouter un Tiers
CHILL_3PARTY_3PARTY_SHOW: Voir un Tiers
@@ -99,3 +108,25 @@ crud:
title_new: Nouvelle catégorie de tiers
title_edit: Modifier la catégorie de tiers
# docgen
docgen:
A context for person with a third party (for sending mail): Un contexte d'une personne avec un tiers (pour envoyer un courrier à ce tiers, par exemple)
Person with third party: Personne avec choix d'un tiers
# exports
export:
list:
acp:
isRequestorThirdParty: Le demandeur est-il un tiers ?
requestorThirdPartyId: Identifiant du tiers
acprequestorThirdPaty: Nom du demandeur tiers
acpw:
handlingThierParty: Tiers traitant
thirdParties: Tiers intervenant
# exports filters/aggregators
Filtered by person\'s who have a residential address located at a thirdparty of type %thirparty_type%: Uniquement les personnes qui ont une addresse de résidence chez un tiers de catégorie %thirdparty_type%
is thirdparty: Le demandeur est un tiers
Filter by person's who have a residential address located at a thirdparty of type: Filtrer les personnes qui ont une addresse de résidence chez un tiers de catégorie "xxx"
"Filtered by person's who have a residential address located at a thirdparty of type %thirdparty_type% and valid on %date_calc%": "Uniquement les personnes qui ont une addresse de résidence chez un tiers de catégorie %thirdparty_type% et valide sur la date %date_calc%"