From 7d7d2862896a1cf3465293c4ae78ab081de5c17e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gardien?= Date: Fri, 31 Jan 2025 15:34:48 +0100 Subject: [PATCH] General convention (#11412) * General convention * Fix adherent cascade * Add endpoints + fix review --- config/packages/security.yaml | 2 + config/services/admin.xml | 8 + features/api/general_conventions.feature | 121 +++++++++ migrations/2025/Version20250131111843.php | 94 +++++++ src/Admin/GeneralConventionAdmin.php | 249 ++++++++++++++++++ src/DataFixtures/ORM/LoadAdminData.php | 1 + .../ORM/LoadAdministratorRoleData.php | 5 + .../ORM/LoadGeneralConventionData.php | 166 ++++++++++++ src/Entity/EntityIdentityTrait.php | 2 + .../GeneralConvention/GeneralConvention.php | 156 +++++++++++ src/Entity/Geo/GeoTrait.php | 4 +- src/Entity/Geo/Zone.php | 4 +- src/GeneralConvention/MeetingTypeEnum.php | 9 + src/GeneralConvention/OrganizerEnum.php | 10 + src/GeneralConvention/ParticipantQuality.php | 10 + .../list_district_or_committee.html.twig | 9 + .../list_organizer.html.twig | 5 + translations/messages+intl-icu.fr.yml | 14 + 18 files changed, 865 insertions(+), 4 deletions(-) create mode 100644 features/api/general_conventions.feature create mode 100644 migrations/2025/Version20250131111843.php create mode 100644 src/Admin/GeneralConventionAdmin.php create mode 100644 src/DataFixtures/ORM/LoadGeneralConventionData.php create mode 100644 src/Entity/GeneralConvention/GeneralConvention.php create mode 100644 src/GeneralConvention/MeetingTypeEnum.php create mode 100644 src/GeneralConvention/OrganizerEnum.php create mode 100644 src/GeneralConvention/ParticipantQuality.php create mode 100644 templates/admin/general_convention/list_district_or_committee.html.twig create mode 100644 templates/admin/general_convention/list_organizer.html.twig diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 2ed6821b93..244755e3a3 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -175,6 +175,8 @@ security: - ROLE_APP_ADMIN_PROCURATION_V2_REQUEST_ALL - ROLE_APP_ADMIN_PROCURATION_V2_PROXY_ALL - ROLE_APP_ADMIN_PROCURATION_V2_PROCURATION_REQUEST_ALL + ROLE_ADMIN_TERRITOIRES_GENERAL_CONVENTIONS: + - ROLE_APP_ADMIN_GENERAL_CONVENTION_ALL ## Application Mobile ROLE_ADMIN_APPLICATION_MOBILE_NOTIFICATIONS: diff --git a/config/services/admin.xml b/config/services/admin.xml index 48d6ae3661..1755140893 100644 --- a/config/services/admin.xml +++ b/config/services/admin.xml @@ -310,6 +310,14 @@ + + + + + App\Entity\GeneralConvention\GeneralConvention + + +