From e839b03cc991994f734c76c61208d812b56d7862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 28 Jul 2023 12:16:50 +0200 Subject: [PATCH] Update path to twig template with new syntax --- .../Controller/ActivityController.php | 24 +++++++++---------- .../Controller/ActivityReasonController.php | 12 +++++----- .../Controller/AdminController.php | 2 +- .../views/Activity/_list_item.html.twig | 2 +- .../Activity/editAccompanyingCourse.html.twig | 2 +- .../views/Activity/editPerson.html.twig | 2 +- .../Resources/views/Activity/list.html.twig | 2 +- .../Activity/listAccompanyingCourse.html.twig | 2 +- .../views/Activity/listPerson.html.twig | 2 +- .../Activity/newAccompanyingCourse.html.twig | 2 +- .../views/Activity/newPerson.html.twig | 2 +- .../selectTypeAccompanyingCourse.html.twig | 2 +- .../views/Activity/selectTypePerson.html.twig | 2 +- .../Resources/views/Activity/show.html.twig | 2 +- .../Activity/showAccompanyingCourse.html.twig | 4 ++-- .../Activity/showInNotification.html.twig | 2 +- .../views/Activity/showPerson.html.twig | 4 ++-- .../activity_person_context.html.twig | 2 +- .../Timeline/TimelineActivityProvider.php | 2 +- .../Controller/ElementController.php | 4 ++-- .../views/Budget/_future_budget.html.twig | 2 +- .../views/Budget/_past_budget.html.twig | 2 +- .../views/Charge/confirm_delete.html.twig | 2 +- .../Resources/views/Household/index.html.twig | 6 ++--- .../Resources/views/Person/index.html.twig | 2 +- .../views/Resource/confirm_delete.html.twig | 2 +- .../Controller/AdminController.php | 2 +- .../Resources/views/Calendar/_list.html.twig | 2 +- .../editByAccompanyingCourse.html.twig | 2 +- .../views/Calendar/editByPerson.html.twig | 2 +- .../views/Calendar/editByUser.html.twig | 2 +- .../newByAccompanyingCourse.html.twig | 2 +- .../views/Calendar/newByPerson.html.twig | 2 +- .../Resources/views/Calendar/show.html.twig | 2 +- .../showByAccompanyingCourse.html.twig | 2 +- .../views/Calendar/showByUser.html.twig | 2 +- .../views/Generator/basic_form.html.twig | 2 +- .../Controller/AdminController.php | 2 +- .../Controller/DocumentCategoryController.php | 8 +++---- .../Controller/DocumentPersonController.php | 8 +++---- .../views/DocumentCategory/edit.html.twig | 2 +- .../views/DocumentCategory/new.html.twig | 2 +- .../views/DocumentCategory/show.html.twig | 2 +- .../Controller/AdminController.php | 2 +- .../Controller/EventController.php | 14 +++++------ .../Controller/EventTypeController.php | 12 +++++----- .../Controller/ParticipationController.php | 20 ++++++++-------- .../Controller/RoleController.php | 12 +++++----- .../Controller/StatusController.php | 12 +++++----- .../Resources/views/Event/show.html.twig | 2 +- .../Resources/views/EventType/edit.html.twig | 2 +- .../Resources/views/EventType/index.html.twig | 2 +- .../Resources/views/EventType/new.html.twig | 2 +- .../Resources/views/EventType/show.html.twig | 2 +- .../_ignored_participations.html.twig | 4 ++-- .../Participation/edit-multiple.html.twig | 12 +++++----- .../views/Participation/edit.html.twig | 6 ++--- .../Participation/new-multiple.html.twig | 4 ++-- .../views/Participation/new.html.twig | 18 +++++++------- .../Resources/views/Role/edit.html.twig | 2 +- .../Resources/views/Role/index.html.twig | 2 +- .../Resources/views/Role/new.html.twig | 2 +- .../Resources/views/Role/show.html.twig | 2 +- .../Resources/views/Status/edit.html.twig | 2 +- .../Resources/views/Status/index.html.twig | 2 +- .../Resources/views/Status/new.html.twig | 2 +- .../Resources/views/Status/show.html.twig | 2 +- .../Timeline/event_person_context.html.twig | 2 +- .../Timeline/TimelineEventProvider.php | 2 +- .../CRUD/Controller/CRUDController.php | 3 +-- .../Widget/AbstractWidgetsCompilerPass.php | 14 +++++------ ...extension_list_notifications_for.html.twig | 2 +- .../views/Notification/list.html.twig | 2 +- .../views/Notification/show.html.twig | 4 ++-- .../User/edit_current_location.html.twig | 2 +- .../Resources/views/Workflow/list.html.twig | 2 +- .../ChillMainBundle/Routing/MenuTwig.php | 2 +- .../Timeline/TimelineProviderInterface.php | 2 +- .../AccompanyingPeriodController.php | 10 ++++---- .../Controller/AdminController.php | 8 +++---- .../HouseholdCompositionController.php | 2 +- .../Controller/PersonAddressController.php | 10 ++++---- .../Controller/PersonController.php | 4 ++-- .../Controller/PersonDuplicateController.php | 6 ++--- .../Controller/PersonResourceController.php | 8 +++---- .../Controller/TimelinePersonController.php | 2 +- .../DataFixtures/ORM/LoadPersonACL.php | 3 --- .../dispatch_list.html.twig | 2 +- .../views/AccompanyingCourse/index.html.twig | 2 +- .../views/AccompanyingPeriod/_list.html.twig | 4 ++-- .../views/AccompanyingPeriod/list.html.twig | 2 +- .../reassign_list.html.twig | 2 +- .../Household/accompanying_period.html.twig | 4 ++-- .../Resources/views/Person/view.html.twig | 2 +- .../Widget/homepage_person_list.html.twig | 4 ++-- .../AccompanyingCourseControllerTest.php | 4 ++-- .../PersonDuplicateControllerViewTest.php | 1 + .../TimelineAccompanyingPeriodClosing.php | 2 +- .../TimelineAccompanyingPeriodOpening.php | 2 +- .../Widget/AddAPersonWidget.php | 2 +- .../Widget/PersonListWidget.php | 2 +- .../Controller/ReportController.php | 16 ++++++------- .../ChillReportBundle/Search/ReportSearch.php | 2 +- .../Timeline/TimelineReportProvider.php | 2 +- .../AccompanyingCourse/list.html.twig | 2 +- .../views/SingleTask/List/index.html.twig | 4 ++-- .../SingleTask/List/index_my_tasks.html.twig | 2 +- .../views/SingleTask/Person/list.html.twig | 2 +- ...TaskTaskLifeCycleEventTimelineProvider.php | 2 +- .../TaskLifeCycleEventTimelineProvider.php | 2 +- .../Editor/stored_object_failure.html.twig | 2 +- 111 files changed, 220 insertions(+), 223 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Controller/ActivityController.php b/src/Bundle/ChillActivityBundle/Controller/ActivityController.php index e0869b77f..808293c75 100644 --- a/src/Bundle/ChillActivityBundle/Controller/ActivityController.php +++ b/src/Bundle/ChillActivityBundle/Controller/ActivityController.php @@ -91,10 +91,10 @@ final class ActivityController extends AbstractController } if ($activity->getAccompanyingPeriod() instanceof AccompanyingPeriod) { - $view = 'ChillActivityBundle:Activity:confirm_deleteAccompanyingCourse.html.twig'; + $view = '@ChillActivity/Activity/confirm_deleteAccompanyingCourse.html.twig'; $accompanyingPeriod = $activity->getAccompanyingPeriod(); } else { - $view = 'ChillActivityBundle:Activity:confirm_deletePerson.html.twig'; + $view = '@ChillActivity/Activity/confirm_deletePerson.html.twig'; } // TODO @@ -164,10 +164,10 @@ final class ActivityController extends AbstractController $person = $entity->getPerson(); if ($entity->getAccompanyingPeriod() instanceof AccompanyingPeriod) { - $view = 'ChillActivityBundle:Activity:editAccompanyingCourse.html.twig'; + $view = '@ChillActivity/Activity/editAccompanyingCourse.html.twig'; $accompanyingPeriod = $entity->getAccompanyingPeriod(); } else { - $view = 'ChillActivityBundle:Activity:editPerson.html.twig'; + $view = '@ChillActivity/Activity/editPerson.html.twig'; } // TODO // $this->denyAccessUnlessGranted('CHILL_ACTIVITY_UPDATE', $entity); @@ -283,7 +283,7 @@ final class ActivityController extends AbstractController ]); $this->eventDispatcher->dispatch($event, PrivacyEvent::PERSON_PRIVACY_EVENT); - $view = 'ChillActivityBundle:Activity:listPerson.html.twig'; + $view = '@ChillActivity/Activity/listPerson.html.twig'; } elseif ($accompanyingPeriod instanceof AccompanyingPeriod) { $this->denyAccessUnlessGranted(ActivityVoter::SEE, $accompanyingPeriod); @@ -299,7 +299,7 @@ final class ActivityController extends AbstractController $filterArgs ); - $view = 'ChillActivityBundle:Activity:listAccompanyingCourse.html.twig'; + $view = '@ChillActivity/Activity/listAccompanyingCourse.html.twig'; } else { throw new \LogicException("Unsupported"); } @@ -358,9 +358,9 @@ final class ActivityController extends AbstractController [$person, $accompanyingPeriod] = $this->getEntity($request); if ($accompanyingPeriod instanceof AccompanyingPeriod) { - $view = 'ChillActivityBundle:Activity:newAccompanyingCourse.html.twig'; + $view = '@ChillActivity/Activity/newAccompanyingCourse.html.twig'; } elseif ($person instanceof Person) { - $view = 'ChillActivityBundle:Activity:newPerson.html.twig'; + $view = '@ChillActivity/Activity/newPerson.html.twig'; } $activityType_id = $request->get('activityType_id', 0); @@ -538,9 +538,9 @@ final class ActivityController extends AbstractController [$person, $accompanyingPeriod] = $this->getEntity($request); if ($accompanyingPeriod instanceof AccompanyingPeriod) { - $view = 'ChillActivityBundle:Activity:selectTypeAccompanyingCourse.html.twig'; + $view = '@ChillActivity/Activity/selectTypeAccompanyingCourse.html.twig'; } elseif ($person instanceof Person) { - $view = 'ChillActivityBundle:Activity:selectTypePerson.html.twig'; + $view = '@ChillActivity/Activity/selectTypePerson.html.twig'; } $data = []; @@ -587,9 +587,9 @@ final class ActivityController extends AbstractController $person = $entity->getPerson(); if ($accompanyingPeriod instanceof AccompanyingPeriod) { - $view = 'ChillActivityBundle:Activity:showAccompanyingCourse.html.twig'; + $view = '@ChillActivity/Activity/showAccompanyingCourse.html.twig'; } elseif ($person instanceof Person) { - $view = 'ChillActivityBundle:Activity:showPerson.html.twig'; + $view = '@ChillActivity/Activity/showPerson.html.twig'; } else { throw new RuntimeException('the activity should be linked with a period or person'); } diff --git a/src/Bundle/ChillActivityBundle/Controller/ActivityReasonController.php b/src/Bundle/ChillActivityBundle/Controller/ActivityReasonController.php index 3094b8e26..b1050d3b8 100644 --- a/src/Bundle/ChillActivityBundle/Controller/ActivityReasonController.php +++ b/src/Bundle/ChillActivityBundle/Controller/ActivityReasonController.php @@ -45,7 +45,7 @@ class ActivityReasonController extends AbstractController return $this->redirectToRoute('chill_activity_activityreason', ['id' => $entity->getId()]); } - return $this->render('ChillActivityBundle:ActivityReason:new.html.twig', [ + return $this->render('@ChillActivity/ActivityReason/new.html.twig', [ 'entity' => $entity, 'form' => $form->createView(), ]); @@ -66,7 +66,7 @@ class ActivityReasonController extends AbstractController $editForm = $this->createEditForm($entity); - return $this->render('ChillActivityBundle:ActivityReason:edit.html.twig', [ + return $this->render('@ChillActivity/ActivityReason/edit.html.twig', [ 'entity' => $entity, 'edit_form' => $editForm->createView(), ]); @@ -81,7 +81,7 @@ class ActivityReasonController extends AbstractController $entities = $this->activityReasonRepository->findAll(); - return $this->render('ChillActivityBundle:ActivityReason:index.html.twig', [ + return $this->render('@ChillActivity/ActivityReason/index.html.twig', [ 'entities' => $entities, ]); } @@ -94,7 +94,7 @@ class ActivityReasonController extends AbstractController $entity = new ActivityReason(); $form = $this->createCreateForm($entity); - return $this->render('ChillActivityBundle:ActivityReason:new.html.twig', [ + return $this->render('@ChillActivity/ActivityReason/new.html.twig', [ 'entity' => $entity, 'form' => $form->createView(), ]); @@ -113,7 +113,7 @@ class ActivityReasonController extends AbstractController throw $this->createNotFoundException('Unable to find ActivityReason entity.'); } - return $this->render('ChillActivityBundle:ActivityReason:show.html.twig', [ + return $this->render('@ChillActivity/ActivityReason/show.html.twig', [ 'entity' => $entity, ]); } @@ -140,7 +140,7 @@ class ActivityReasonController extends AbstractController return $this->redirectToRoute('chill_activity_activityreason', ['id' => $id]); } - return $this->render('ChillActivityBundle:ActivityReason:edit.html.twig', [ + return $this->render('@ChillActivity/ActivityReason/edit.html.twig', [ 'entity' => $entity, 'edit_form' => $editForm->createView(), ]); diff --git a/src/Bundle/ChillActivityBundle/Controller/AdminController.php b/src/Bundle/ChillActivityBundle/Controller/AdminController.php index 4f96bb36f..64d03cd2b 100644 --- a/src/Bundle/ChillActivityBundle/Controller/AdminController.php +++ b/src/Bundle/ChillActivityBundle/Controller/AdminController.php @@ -20,7 +20,7 @@ class AdminController extends AbstractController { public function indexActivityAction() { - return $this->render('ChillActivityBundle:Admin:layout_activity.html.twig'); + return $this->render('@ChillActivity/Admin/layout_activity.html.twig'); } public function redirectToAdminIndexAction() diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig index 8d1aba2b3..b3382c3de 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig @@ -75,7 +75,7 @@ {% endif %} - {% include 'ChillActivityBundle:Activity:concernedGroups.html.twig' with { + {% include '@ChillActivity/Activity/concernedGroups.html.twig' with { 'context': context, 'render': 'wrap-list', 'entity': activity, diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/editAccompanyingCourse.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/editAccompanyingCourse.html.twig index d0359e223..3cf476bbb 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/editAccompanyingCourse.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/editAccompanyingCourse.html.twig @@ -8,7 +8,7 @@
{# <=== vue component #} - {% include 'ChillActivityBundle:Activity:edit.html.twig' %} + {% include '@ChillActivity/Activity/edit.html.twig' %}
{% endblock %} diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/editPerson.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/editPerson.html.twig index 91b3867c1..73eec5f62 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/editPerson.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/editPerson.html.twig @@ -24,7 +24,7 @@
{# <=== vue component #} - {% include 'ChillActivityBundle:Activity:edit.html.twig' %} + {% include '@ChillActivity/Activity/edit.html.twig' %}
{% endblock %} diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/list.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/list.html.twig index dd78c9396..fde256af0 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/list.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/list.html.twig @@ -91,7 +91,7 @@
{% for activity in activities %} - {% include 'ChillActivityBundle:Activity:_list_item.html.twig' with { + {% include '@ChillActivity/Activity/_list_item.html.twig' with { 'context': context, 'recordAction': _self.recordAction(activity, context, person_id, accompanying_course_id) } %} diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/listAccompanyingCourse.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/listAccompanyingCourse.html.twig index bdf55d86f..e2710ea43 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/listAccompanyingCourse.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/listAccompanyingCourse.html.twig @@ -31,7 +31,7 @@

{{ 'Activity list' |trans }}

- {% include 'ChillActivityBundle:Activity:list.html.twig' with {'context': 'accompanyingCourse'} %} + {% include '@ChillActivity/Activity/list.html.twig' with {'context': 'accompanyingCourse'} %} {% if is_granted('CHILL_ACTIVITY_CREATE', accompanyingCourse) %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Participation/edit-multiple.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Participation/edit-multiple.html.twig index f0f522a3d..a01c51e49 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Participation/edit-multiple.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Participation/edit-multiple.html.twig @@ -1,6 +1,6 @@ {% extends '@ChillEvent/layout.html.twig' %} -{% import 'ChillPersonBundle:Person:macro.html.twig' as person_macro %} +{% import '@ChillPerson/Person/macro.html.twig' as person_macro %} {% block event_content -%}
@@ -18,11 +18,11 @@ - +

{{ 'Participations'|trans }}

- + {{ form_start(form) }} - + @@ -47,7 +47,7 @@ {% endfor %}
- + - + {{ form_end(form) }}
{% endblock %} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Participation/edit.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Participation/edit.html.twig index db716b3dc..d1995b625 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Participation/edit.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Participation/edit.html.twig @@ -1,6 +1,6 @@ {% extends '@ChillEvent/layout.html.twig' %} -{% import 'ChillPersonBundle:Person:macro.html.twig' as person_macro %} +{% import '@ChillPerson/Person/macro.html.twig' as person_macro %} {% block event_content -%}
@@ -22,7 +22,7 @@ - + {{ form_start(form) }} {{ form_row(form.role) }} {{ form_row(form.status) }} @@ -41,7 +41,7 @@ {{ form_widget(form.submit, { 'attr' : { 'class' : 'btn btn-edit' } } ) }} - + {{ form_end(form) }}
{% endblock %} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Participation/new-multiple.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Participation/new-multiple.html.twig index 224b7265f..a9451a755 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Participation/new-multiple.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Participation/new-multiple.html.twig @@ -1,6 +1,6 @@ {% extends '@ChillEvent/layout.html.twig' %} -{% import 'ChillPersonBundle:Person:macro.html.twig' as person_macro %} +{% import '@ChillPerson/Person/macro.html.twig' as person_macro %} {% block title 'Participation creation'|trans %} @@ -27,7 +27,7 @@ - {% include 'ChillEventBundle:Participation:_ignored_participations.html.twig' with ignored_participations %} + {% include '@ChillEvent/Participation/_ignored_participations.html.twig' with ignored_participations %} {{ form_start(form) }} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Participation/new.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Participation/new.html.twig index 3fbea8b68..8374f04ea 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Participation/new.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Participation/new.html.twig @@ -1,6 +1,6 @@ {% extends '@ChillEvent/layout.html.twig' %} -{% import 'ChillPersonBundle:Person:macro.html.twig' as person_macro %} +{% import '@ChillPerson/Person/macro.html.twig' as person_macro %} {% block title 'Participation creation'|trans %} @@ -20,17 +20,17 @@
- - {% include 'ChillEventBundle:Participation:_ignored_participations.html.twig' with ignored_participations %} - + + {% include '@ChillEvent/Participation/_ignored_participations.html.twig' with ignored_participations %} + {{ form_start(form) }} - + {{ form_errors(form) }} - + {{ form_row(form.role) }} {{ form_row(form.status) }} - - + +
  • @@ -42,7 +42,7 @@ {{ form_widget(form.submit, { 'attr' : { 'class' : 'btn btn-create' } } ) }}
- + {{ form_end(form) }}
{% endblock %} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Role/edit.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Role/edit.html.twig index 0c9d61795..41ad81b90 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Role/edit.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Role/edit.html.twig @@ -1,4 +1,4 @@ -{% extends "ChillEventBundle:Admin:index.html.twig" %} +{% extends "@ChillEvent/Admin/index.html.twig" %} {% block admin_content -%}

{{ 'Role edit'|trans }}

diff --git a/src/Bundle/ChillEventBundle/Resources/views/Role/index.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Role/index.html.twig index 091b2f6ac..6010576bc 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Role/index.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Role/index.html.twig @@ -1,4 +1,4 @@ -{% extends "ChillEventBundle:Admin:index.html.twig" %} +{% extends "@ChillEvent/Admin/index.html.twig" %} {% block admin_content -%} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Role/new.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Role/new.html.twig index 03681f30c..15363c02c 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Role/new.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Role/new.html.twig @@ -1,4 +1,4 @@ -{% extends "ChillEventBundle:Admin:index.html.twig" %} +{% extends "@ChillEvent/Admin/index.html.twig" %} {% block admin_content -%} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Role/show.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Role/show.html.twig index 68a15958f..9fe7e3adf 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Role/show.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Role/show.html.twig @@ -1,4 +1,4 @@ -{% extends "ChillEventBundle:Admin:index.html.twig" %} +{% extends "@ChillEvent/Admin/index.html.twig" %} {% block admin_content -%} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Status/edit.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Status/edit.html.twig index 3d00a66fa..00ee2d25c 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Status/edit.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Status/edit.html.twig @@ -1,4 +1,4 @@ -{% extends "ChillEventBundle:Admin:index.html.twig" %} +{% extends "@ChillEvent/Admin/index.html.twig" %} {% block admin_content -%} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Status/index.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Status/index.html.twig index 144a80e51..114e2a1b1 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Status/index.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Status/index.html.twig @@ -1,4 +1,4 @@ -{% extends "ChillEventBundle:Admin:index.html.twig" %} +{% extends "@ChillEvent/Admin/index.html.twig" %} {% block admin_content -%} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Status/new.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Status/new.html.twig index 03ba1de3a..0e0b788ad 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Status/new.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Status/new.html.twig @@ -1,4 +1,4 @@ -{% extends "ChillEventBundle:Admin:index.html.twig" %} +{% extends "@ChillEvent/Admin/index.html.twig" %} {% block admin_content -%} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Status/show.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Status/show.html.twig index 0e0a75069..ce0aaae98 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Status/show.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Status/show.html.twig @@ -1,4 +1,4 @@ -{% extends "ChillEventBundle:Admin:index.html.twig" %} +{% extends "@ChillEvent/Admin/index.html.twig" %} {% block admin_content -%} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Timeline/event_person_context.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Timeline/event_person_context.html.twig index 2750b285f..2e4de23e6 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Timeline/event_person_context.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Timeline/event_person_context.html.twig @@ -1,4 +1,4 @@ -{% import 'ChillEventBundle:EventReason:macro.html.twig' as m %} +{% import '@ChillEvent/EventReason/macro.html.twig' as m %} {% if "now"|date('U') > event.date|date('U') %} {% set boolDate = 'past' %} diff --git a/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php b/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php index 9fac6c88e..2624e42f5 100644 --- a/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php +++ b/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php @@ -116,7 +116,7 @@ class TimelineEventProvider implements TimelineProviderInterface $this->checkContext($context); return [ - 'template' => 'ChillEventBundle:Timeline:event_person_context.html.twig', + 'template' => '@ChillEvent/Timeline/event_person_context.html.twig', 'template_data' => [ 'event' => $entity, 'person' => $args['person'], diff --git a/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php b/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php index f9491d800..caa5a8297 100644 --- a/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php +++ b/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php @@ -578,13 +578,12 @@ class CRUDController extends AbstractController /** * Customize template parameters. * - * @param mixed $entity * * @return array */ protected function generateTemplateParameter( string $action, - $entity, + mixed $entity, Request $request, array $defaultTemplateParameters = [] ) { diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php b/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php index a0c9912cf..4a502c3e7 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php @@ -63,24 +63,24 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface /** * the key to use to identify widget for a given place. */ - public const WIDGET_CONFIG_ALIAS = 'widget_alias'; + final public const WIDGET_CONFIG_ALIAS = 'widget_alias'; /** * the key to use to order widget for a given place. */ - public const WIDGET_CONFIG_ORDER = 'order'; + final public const WIDGET_CONFIG_ORDER = 'order'; /** * The service which will manage the widgets. * * @var string */ - public const WIDGET_MANAGER = 'chill.main.twig.widget'; + final public const WIDGET_MANAGER = 'chill.main.twig.widget'; /** * the method wich register the widget into give service. */ - public const WIDGET_MANAGER_METHOD_REGISTER = 'addWidget'; + final public const WIDGET_MANAGER_METHOD_REGISTER = 'addWidget'; /** * the key used to collect the alias in the service definition's tag. @@ -89,21 +89,21 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface * * @var string */ - public const WIDGET_SERVICE_TAG_ALIAS = 'alias'; + final public const WIDGET_SERVICE_TAG_ALIAS = 'alias'; /** * the value of the `name` key in service definitions's tag. * * @var string */ - public const WIDGET_SERVICE_TAG_NAME = 'chill_widget'; + final public const WIDGET_SERVICE_TAG_NAME = 'chill_widget'; /** * the key used to collect the authorized place in the service definition's tag. * * @var string */ - public const WIDGET_SERVICE_TAG_PLACES = 'place'; + final public const WIDGET_SERVICE_TAG_PLACES = 'place'; /** * cache of ordering by place. diff --git a/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig index 748142ab8..fbb9e3f4d 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig @@ -2,7 +2,7 @@
{% for notification in notifications %} - {% include 'ChillMainBundle:Notification:_list_item.html.twig' with { + {% include '@ChillMain/Notification/_list_item.html.twig' with { 'full_content': true, 'fold_item': true, 'action_button': true, diff --git a/src/Bundle/ChillMainBundle/Resources/views/Notification/list.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Notification/list.html.twig index 6dff67299..90d103aaf 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Notification/list.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Notification/list.html.twig @@ -49,7 +49,7 @@
{% for data in datas %} {% set notification = data.notification %} - {% include 'ChillMainBundle:Notification:_list_item.html.twig' with { + {% include '@ChillMain/Notification/_list_item.html.twig' with { 'fold_item': true, 'notification_cc': data.template_data.notificationCc is defined ? data.template_data.notificationCc : false } %} diff --git a/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig index 2f9d5d63f..53e296d8d 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Notification/show.html.twig @@ -20,7 +20,7 @@

{{ 'notification.Notification'|trans }}

- {% include 'ChillMainBundle:Notification:_list_item.html.twig' with { + {% include '@ChillMain/Notification/_list_item.html.twig' with { 'data': { 'template': handler.getTemplate(notification), 'template_data': handler.getTemplateData(notification) @@ -32,7 +32,7 @@ } %}
- {% include 'ChillMainBundle:Notification:_item_comments.html.twig' %} + {% include '@ChillMain/Notification/_item_comments.html.twig' %}
  • diff --git a/src/Bundle/ChillMainBundle/Resources/views/User/edit_current_location.html.twig b/src/Bundle/ChillMainBundle/Resources/views/User/edit_current_location.html.twig index b1990833c..3c3e6d5f7 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/User/edit_current_location.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/User/edit_current_location.html.twig @@ -1,4 +1,4 @@ -{% extends 'ChillMainBundle::layout.html.twig' %} +{% extends '@ChillMain/layout.html.twig' %} {% block title %}{{ 'Edit my current location'|trans }}{% endblock %} diff --git a/src/Bundle/ChillMainBundle/Resources/views/Workflow/list.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Workflow/list.html.twig index 1099d8452..5d8c39c63 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Workflow/list.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Workflow/list.html.twig @@ -1,4 +1,4 @@ -{% extends 'ChillMainBundle::layout.html.twig' %} +{% extends '@ChillMain/layout.html.twig' %} {% import '@ChillMain/Workflow/macro_breadcrumb.html.twig' as macro %} diff --git a/src/Bundle/ChillMainBundle/Routing/MenuTwig.php b/src/Bundle/ChillMainBundle/Routing/MenuTwig.php index 9ebcece18..905fae57f 100644 --- a/src/Bundle/ChillMainBundle/Routing/MenuTwig.php +++ b/src/Bundle/ChillMainBundle/Routing/MenuTwig.php @@ -44,7 +44,7 @@ class MenuTwig extends AbstractExtension implements ContainerAwareInterface * * Expected params : * - args: the arguments to build the path (i.e: if pattern is /something/{bar}, args must contain {'bar': 'foo'} - * - layout: the layout. Absolute path needed (i.e.: ChillXyzBundle:section:foo.html.twig) + * - layout: the layout. Absolute path needed (i.e.: @ChillXyz/section/foo.html.twig) * - activeRouteKey : the key active, will render the menu differently. * * @deprecated link: see https://redmine.champs-libres.coop/issues/179 for more informations diff --git a/src/Bundle/ChillMainBundle/Timeline/TimelineProviderInterface.php b/src/Bundle/ChillMainBundle/Timeline/TimelineProviderInterface.php index 2cef728c0..ca61d814f 100644 --- a/src/Bundle/ChillMainBundle/Timeline/TimelineProviderInterface.php +++ b/src/Bundle/ChillMainBundle/Timeline/TimelineProviderInterface.php @@ -92,7 +92,7 @@ interface TimelineProviderInterface * * ``` * array( - * 'template' => 'ChillMyBundle:timeline:template.html.twig', + * 'template' => '@ChillMy/timeline/template.html.twig', * 'template_data' => array( * 'accompanyingPeriod' => $entity, * 'person' => $args['person'] diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php index 1e27c2cdf..4c92227ec 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php @@ -127,7 +127,7 @@ class AccompanyingPeriodController extends AbstractController } } - return $this->render('ChillPersonBundle:AccompanyingPeriod:form.html.twig', [ + return $this->render('@ChillPerson/AccompanyingPeriod/form.html.twig', [ 'form' => $form->createView(), 'person' => $person, 'accompanying_period' => $current, @@ -190,7 +190,7 @@ class AccompanyingPeriodController extends AbstractController } } - return $this->render('ChillPersonBundle:AccompanyingPeriod:form.html.twig', [ + return $this->render('@ChillPerson/AccompanyingPeriod/form.html.twig', [ 'form' => $form->createView(), 'person' => $person, 'accompanying_period' => $accompanyingPeriod, @@ -299,7 +299,7 @@ class AccompanyingPeriodController extends AbstractController } } - return $this->render('ChillPersonBundle:AccompanyingPeriod:form.html.twig', [ + return $this->render('@ChillPerson/AccompanyingPeriod/form.html.twig', [ 'form' => $form->createView(), 'person' => $person, 'accompanying_period' => $accompanyingPeriod, @@ -340,7 +340,7 @@ class AccompanyingPeriodController extends AbstractController } if (false === $confirm && $period->canBeReOpened($person)) { - return $this->render('ChillPersonBundle:AccompanyingPeriod:re_open.html.twig', [ + return $this->render('@ChillPerson/AccompanyingPeriod/re_open.html.twig', [ 'period' => $period, 'person' => $person, ]); @@ -417,7 +417,7 @@ class AccompanyingPeriodController extends AbstractController } } - return $this->render('ChillPersonBundle:AccompanyingPeriod:form.html.twig', [ + return $this->render('@ChillPerson/AccompanyingPeriod/form.html.twig', [ 'form' => $form->createView(), 'person' => $person, 'accompanying_period' => $accompanyingPeriod, diff --git a/src/Bundle/ChillPersonBundle/Controller/AdminController.php b/src/Bundle/ChillPersonBundle/Controller/AdminController.php index 37218d686..0b4c7fdf2 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AdminController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AdminController.php @@ -24,7 +24,7 @@ class AdminController extends AbstractController */ public function indexAccompanyingCourseAdminAction() { - return $this->render('ChillPersonBundle:Admin:indexAccompanyingCourse.html.twig'); + return $this->render('@ChillPerson/Admin/indexAccompanyingCourse.html.twig'); } /** @@ -32,7 +32,7 @@ class AdminController extends AbstractController */ public function indexHouseholdAdminAction() { - return $this->render('ChillPersonBundle:Admin:indexHousehold.html.twig'); + return $this->render('@ChillPerson/Admin/indexHousehold.html.twig'); } /** @@ -40,7 +40,7 @@ class AdminController extends AbstractController */ public function indexPersonAdminAction() { - return $this->render('ChillPersonBundle:Admin:indexPerson.html.twig'); + return $this->render('@ChillPerson/Admin/indexPerson.html.twig'); } /** @@ -48,7 +48,7 @@ class AdminController extends AbstractController */ public function indexSocialWorkAdminAction() { - return $this->render('ChillPersonBundle:Admin:indexSocialWork.html.twig'); + return $this->render('@ChillPerson/Admin/indexSocialWork.html.twig'); } /** diff --git a/src/Bundle/ChillPersonBundle/Controller/HouseholdCompositionController.php b/src/Bundle/ChillPersonBundle/Controller/HouseholdCompositionController.php index ad4743921..5aa0b1ca7 100644 --- a/src/Bundle/ChillPersonBundle/Controller/HouseholdCompositionController.php +++ b/src/Bundle/ChillPersonBundle/Controller/HouseholdCompositionController.php @@ -80,7 +80,7 @@ class HouseholdCompositionController extends AbstractController } return $this->render( - 'ChillPersonBundle:HouseholdComposition:delete.html.twig', + '@ChillPerson/HouseholdComposition/delete.html.twig', [ 'household' => $household, 'composition' => $composition, diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonAddressController.php b/src/Bundle/ChillPersonBundle/Controller/PersonAddressController.php index 133daf3be..0bb1472ba 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonAddressController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonAddressController.php @@ -89,7 +89,7 @@ class PersonAddressController extends AbstractController } } - return $this->render('ChillPersonBundle:Address:new.html.twig', [ + return $this->render('@ChillPerson/Address/new.html.twig', [ 'person' => $person, 'form' => $form->createView(), ]); @@ -116,7 +116,7 @@ class PersonAddressController extends AbstractController $form = $this->createEditForm($person, $address); - return $this->render('ChillPersonBundle:Address:edit.html.twig', [ + return $this->render('@ChillPerson/Address/edit.html.twig', [ 'person' => $person, 'address' => $address, 'form' => $form->createView(), @@ -140,7 +140,7 @@ class PersonAddressController extends AbstractController 'You are not allowed to edit this person.' ); - return $this->render('ChillPersonBundle:Address:list.html.twig', [ + return $this->render('@ChillPerson/Address/list.html.twig', [ 'person' => $person, ]); } @@ -166,7 +166,7 @@ class PersonAddressController extends AbstractController $form = $this->createCreateForm($person, $address); - return $this->render('ChillPersonBundle:Address:new.html.twig', [ + return $this->render('@ChillPerson/Address/new.html.twig', [ 'person' => $person, 'form' => $form->createView(), ]); @@ -218,7 +218,7 @@ class PersonAddressController extends AbstractController } } - return $this->render('ChillPersonBundle:Address:edit.html.twig', [ + return $this->render('@ChillPerson/Address/edit.html.twig', [ 'person' => $person, 'address' => $address, 'form' => $form->createView(), diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonController.php b/src/Bundle/ChillPersonBundle/Controller/PersonController.php index 16b7c7050..ff04e1f95 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonController.php @@ -107,7 +107,7 @@ final class PersonController extends AbstractController } return $this->render( - 'ChillPersonBundle:Person:edit.html.twig', + '@ChillPerson/Person/edit.html.twig', ['person' => $person, 'form' => $form->createView()] ); } @@ -275,7 +275,7 @@ final class PersonController extends AbstractController $this->eventDispatcher->dispatch($event, PrivacyEvent::PERSON_PRIVACY_EVENT); return $this->render( - 'ChillPersonBundle:Person:view.html.twig', + '@ChillPerson/Person/view.html.twig', [ 'person' => $person, 'cFGroup' => $this->getCFGroup(), diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php b/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php index 92f6fb197..b0d945fc0 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonDuplicateController.php @@ -92,7 +92,7 @@ class PersonDuplicateController extends \Symfony\Bundle\FrameworkBundle\Controll return $this->redirectToRoute('chill_person_duplicate_view', ['person_id' => $person1->getId()]); } - return $this->render('ChillPersonBundle:PersonDuplicate:confirm.html.twig', [ + return $this->render('@ChillPerson/PersonDuplicate/confirm.html.twig', [ 'person' => $person1, 'person2' => $person2, 'form' => $form->createView(), @@ -143,7 +143,7 @@ class PersonDuplicateController extends \Symfony\Bundle\FrameworkBundle\Controll return $this->redirectToRoute('chill_person_duplicate_confirm', $params); } - return $this->render('ChillPersonBundle:PersonDuplicate:find_manually.html.twig', [ + return $this->render('@ChillPerson/PersonDuplicate/find_manually.html.twig', [ 'person' => $person, 'form' => $form->createView(), ]); @@ -216,7 +216,7 @@ class PersonDuplicateController extends \Symfony\Bundle\FrameworkBundle\Controll $notDuplicatePersons = $personNotDuplicateRepository->findNotDuplicatePerson($person); - return $this->render('ChillPersonBundle:PersonDuplicate:view.html.twig', [ + return $this->render('@ChillPerson/PersonDuplicate/view.html.twig', [ 'person' => $person, 'duplicatePersons' => $duplicatePersons, 'notDuplicatePersons' => $notDuplicatePersons, diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonResourceController.php b/src/Bundle/ChillPersonBundle/Controller/PersonResourceController.php index 432852331..c4b84f012 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonResourceController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonResourceController.php @@ -66,7 +66,7 @@ final class PersonResourceController extends AbstractController } return $this->render( - 'ChillPersonBundle:PersonResource:delete.html.twig', + '@ChillPerson/PersonResource/delete.html.twig', [ 'person' => $personOwner, 'resource' => $resource, @@ -99,7 +99,7 @@ final class PersonResourceController extends AbstractController } return $this->render( - 'ChillPersonBundle:PersonResource:edit.html.twig', + '@ChillPerson/PersonResource/edit.html.twig', [ 'person' => $personOwner, 'resource' => $resource, @@ -118,7 +118,7 @@ final class PersonResourceController extends AbstractController $personResources = $this->personResourceRepository->findBy(['personOwner' => $personOwner->getId()]); return $this->render( - 'ChillPersonBundle:PersonResource:list.html.twig', + '@ChillPerson/PersonResource/list.html.twig', [ 'person' => $personOwner, 'personResources' => $personResources, @@ -148,7 +148,7 @@ final class PersonResourceController extends AbstractController } return $this->render( - 'ChillPersonBundle:PersonResource:create.html.twig', + '@ChillPerson/PersonResource/create.html.twig', [ 'form' => $form->createView(), 'person' => $personOwner, diff --git a/src/Bundle/ChillPersonBundle/Controller/TimelinePersonController.php b/src/Bundle/ChillPersonBundle/Controller/TimelinePersonController.php index a646a0894..575321e81 100644 --- a/src/Bundle/ChillPersonBundle/Controller/TimelinePersonController.php +++ b/src/Bundle/ChillPersonBundle/Controller/TimelinePersonController.php @@ -49,7 +49,7 @@ class TimelinePersonController extends AbstractController $this->eventDispatcher->dispatch($event, PrivacyEvent::PERSON_PRIVACY_EVENT); return $this->render( - 'ChillPersonBundle:Timeline:index.html.twig', + '@ChillPerson/Timeline/index.html.twig', [ 'timeline' => $this->timelineBuilder->getTimelineHTML( 'person', diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPersonACL.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPersonACL.php index 8cc15b9e0..9c4c90447 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPersonACL.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPersonACL.php @@ -40,8 +40,6 @@ class LoadPersonACL extends AbstractFixture implements OrderedFixtureInterface switch ($permissionsGroup->getName()) { case 'social': case 'direction': - printf("Adding CHILL_PERSON_UPDATE & CHILL_PERSON_CREATE to %s permission group \n", $permissionsGroup->getName()); - $permissionsGroup->addRoleScope( (new RoleScope()) ->setRole(AccompanyingPeriodVoter::FULL) @@ -80,7 +78,6 @@ class LoadPersonACL extends AbstractFixture implements OrderedFixtureInterface break; case 'administrative': - printf("Adding CHILL_PERSON_SEE to %s permission group \n", $permissionsGroup->getName()); $roleScopeSee = (new RoleScope()) ->setRole('CHILL_PERSON_SEE') ->setScope(null); diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/dispatch_list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/dispatch_list.html.twig index 8cb5ab59f..aac7df003 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/dispatch_list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/dispatch_list.html.twig @@ -1,4 +1,4 @@ -{% extends 'ChillMainBundle::layout.html.twig' %} +{% extends '@ChillMain/layout.html.twig' %} {% block title "Liste de parcours à répartir" %} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig index a9d51393d..5bcba7953 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingCourse/index.html.twig @@ -258,7 +258,7 @@ {% endif %}

    {{ 'Last activities' |trans }}

    - {% include 'ChillActivityBundle:Activity:list_recent.html.twig' with { 'context': 'accompanyingCourse', 'no_action': true } %} + {% include '@ChillActivity/Activity/list_recent.html.twig' with { 'context': 'accompanyingCourse', 'no_action': true } %}
{% endblock %} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig index b140bb4c1..56c6d92c3 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/_list.html.twig @@ -63,7 +63,7 @@
{% for period in acps %} - {% include 'ChillPersonBundle:AccompanyingPeriod:_list_item.html.twig' with { + {% include '@ChillPerson/AccompanyingPeriod/_list_item.html.twig' with { 'recordAction': _self.recordAction(period, contextEntity) } %} {% else %} @@ -100,7 +100,7 @@
{% for period in acpsClosed %} - {% include 'ChillPersonBundle:AccompanyingPeriod:_list_item.html.twig' with { + {% include '@ChillPerson/AccompanyingPeriod/_list_item.html.twig' with { 'recordAction': _self.recordAction(period, contextEntity) } %} {% endfor %} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig index f30bfc45a..0b3669b85 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/list.html.twig @@ -9,7 +9,7 @@

{{ 'Accompanying period list'|trans }}

- {% include 'ChillPersonBundle:AccompanyingPeriod:_list.html.twig' %} + {% include '@ChillPerson/AccompanyingPeriod/_list.html.twig' %}
  • diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/reassign_list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/reassign_list.html.twig index c1144512d..c98dd253e 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/reassign_list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/reassign_list.html.twig @@ -1,4 +1,4 @@ -{% extends 'ChillMainBundle::layout.html.twig' %} +{% extends '@ChillMain/layout.html.twig' %} {% block title 'period_by_user_list.Period by user'|trans %} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Household/accompanying_period.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Household/accompanying_period.html.twig index c734eee8e..e473799ff 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Household/accompanying_period.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Household/accompanying_period.html.twig @@ -7,7 +7,7 @@

    {{ block('title') }}

    - {% include 'ChillPersonBundle:AccompanyingPeriod:_list.html.twig' %} + {% include '@ChillPerson/AccompanyingPeriod/_list.html.twig' %} {% if accompanying_periods_old|length > 0 %}
    @@ -28,7 +28,7 @@ class="accordion-collapse collapse" aria-labelledby="heading_{{ household.id }}" data-bs-parent="#nonCurrent"> - {% include 'ChillPersonBundle:AccompanyingPeriod:_list.html.twig' with {'accompanying_periods' : accompanying_periods_old} %} + {% include '@ChillPerson/AccompanyingPeriod/_list.html.twig' with {'accompanying_periods' : accompanying_periods_old} %}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig index ceff2137d..094e23427 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig @@ -28,7 +28,7 @@ This view should receive those arguments: we define variables to include an edit form repeated multiple time across the page #} -{% set edit_tmp_name = 'ChillPersonBundle:Form:go_to_form.html.twig' %} +{% set edit_tmp_name = '@ChillPerson/Form/go_to_form.html.twig' %} {% set edit_tmp_args = { 'form_path_args' : { 'person_id': person.id }, 'form_path_key' : 'chill_person_general_edit' } %} diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_person_list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_person_list.html.twig index 9603cad17..89b24e27b 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_person_list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Widget/homepage_person_list.html.twig @@ -1,8 +1,8 @@ -{# +{# if the `custom_fields` option is used, the custom fields are available under the customFields variable, with the custom field slug as key. #} -{% import 'ChillPersonBundle:Person:macro.html.twig' as person %} +{% import '@ChillPerson/Person/macro.html.twig' as person %}

{{ 'Accompanyied people'|trans }}

diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseControllerTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseControllerTest.php index a4b11fdb6..c5e98caa5 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseControllerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseControllerTest.php @@ -54,8 +54,8 @@ final class AccompanyingCourseControllerTest extends WebTestCase ->findOneBy(['name' => 'Center A']); $personIds = $em->createQuery('SELECT p.id FROM ' . - Person::class . ' p ' . - ' WHERE p.center = :center') + Person::class . ' p JOIN p.centerCurrent cc ' . + ' WHERE cc.center = :center') ->setParameter('center', $center) ->setMaxResults(100) ->getScalarResult(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonDuplicateControllerViewTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonDuplicateControllerViewTest.php index d6f4ca7cf..68ee8af62 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonDuplicateControllerViewTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonDuplicateControllerViewTest.php @@ -56,6 +56,7 @@ final class PersonDuplicateControllerViewTest extends WebTestCase $crawler = $client->request('GET', '/en/person/' . $this->person->getId() . '/duplicate/view'); $response = $client->getResponse(); + var_dump(substr($crawler->html(), 0, 500)); $this->assertTrue($response->isSuccessful()); $this->assertGreaterThan(0, $crawler->filter('html:contains("Find duplicate")')->count()); diff --git a/src/Bundle/ChillPersonBundle/Timeline/TimelineAccompanyingPeriodClosing.php b/src/Bundle/ChillPersonBundle/Timeline/TimelineAccompanyingPeriodClosing.php index 21cb0438c..70afcd1c2 100644 --- a/src/Bundle/ChillPersonBundle/Timeline/TimelineAccompanyingPeriodClosing.php +++ b/src/Bundle/ChillPersonBundle/Timeline/TimelineAccompanyingPeriodClosing.php @@ -36,7 +36,7 @@ class TimelineAccompanyingPeriodClosing extends AbstractTimelineAccompanyingPeri public function getEntityTemplate($entity, $context, array $args) { return $this->getBasicEntityTemplate( - 'ChillPersonBundle:Timeline:closing_period.html.twig', + '@ChillPerson/Timeline/closing_period.html.twig', $entity, $context, $args diff --git a/src/Bundle/ChillPersonBundle/Timeline/TimelineAccompanyingPeriodOpening.php b/src/Bundle/ChillPersonBundle/Timeline/TimelineAccompanyingPeriodOpening.php index 9cd8df75f..74162ddb0 100644 --- a/src/Bundle/ChillPersonBundle/Timeline/TimelineAccompanyingPeriodOpening.php +++ b/src/Bundle/ChillPersonBundle/Timeline/TimelineAccompanyingPeriodOpening.php @@ -34,7 +34,7 @@ class TimelineAccompanyingPeriodOpening extends AbstractTimelineAccompanyingPeri public function getEntityTemplate($entity, $context, array $args) { return $this->getBasicEntityTemplate( - 'ChillPersonBundle:Timeline:opening_period.html.twig', + '@ChillPerson/Timeline/opening_period.html.twig', $entity, $context, $args diff --git a/src/Bundle/ChillPersonBundle/Widget/AddAPersonWidget.php b/src/Bundle/ChillPersonBundle/Widget/AddAPersonWidget.php index 8047d3b44..ef150f91d 100644 --- a/src/Bundle/ChillPersonBundle/Widget/AddAPersonWidget.php +++ b/src/Bundle/ChillPersonBundle/Widget/AddAPersonWidget.php @@ -25,6 +25,6 @@ class AddAPersonWidget implements WidgetInterface array $context, array $config ) { - return $env->render('ChillPersonBundle:Widget:homepage_add_a_person.html.twig'); + return $env->render('@ChillPerson/Widget/homepage_add_a_person.html.twig'); } } diff --git a/src/Bundle/ChillPersonBundle/Widget/PersonListWidget.php b/src/Bundle/ChillPersonBundle/Widget/PersonListWidget.php index 0db3eb429..bf0d3b1b2 100644 --- a/src/Bundle/ChillPersonBundle/Widget/PersonListWidget.php +++ b/src/Bundle/ChillPersonBundle/Widget/PersonListWidget.php @@ -127,7 +127,7 @@ class PersonListWidget implements WidgetInterface } return $env->render( - 'ChillPersonBundle:Widget:homepage_person_list.html.twig', + '@ChillPerson/Widget/homepage_person_list.html.twig', [ 'persons' => $persons, 'customFields' => $cfields, diff --git a/src/Bundle/ChillReportBundle/Controller/ReportController.php b/src/Bundle/ChillReportBundle/Controller/ReportController.php index e4622913e..2762c5cbf 100644 --- a/src/Bundle/ChillReportBundle/Controller/ReportController.php +++ b/src/Bundle/ChillReportBundle/Controller/ReportController.php @@ -117,7 +117,7 @@ class ReportController extends AbstractController ->trans('The form is not valid. The report has not been created !') ); - return $this->render('ChillReportBundle:Report:new.html.twig', [ + return $this->render('@ChillReport/Report/new.html.twig', [ 'entity' => $entity, 'form' => $form->createView(), 'person' => $person, @@ -165,7 +165,7 @@ class ReportController extends AbstractController ]); $this->eventDispatcher->dispatch($event, PrivacyEvent::PERSON_PRIVACY_EVENT); - return $this->render('ChillReportBundle:Report:edit.html.twig', [ + return $this->render('@ChillReport/Report/edit.html.twig', [ 'edit_form' => $editForm->createView(), 'person' => $person, ]); @@ -246,7 +246,7 @@ class ReportController extends AbstractController ]); $this->eventDispatcher->dispatch($event, PrivacyEvent::PERSON_PRIVACY_EVENT); - return $this->render('ChillReportBundle:Report:list.html.twig', [ + return $this->render('@ChillReport/Report/list.html.twig', [ 'reports' => $reports, 'person' => $person, 'paginator' => $paginator, @@ -295,7 +295,7 @@ class ReportController extends AbstractController $form = $this->createCreateForm($entity, $person, $cFGroup); - return $this->render('ChillReportBundle:Report:new.html.twig', [ + return $this->render('@ChillReport/Report/new.html.twig', [ 'entity' => $entity, 'form' => $form->createView(), 'person' => $person, @@ -360,7 +360,7 @@ class ReportController extends AbstractController $person = $em->getRepository(\Chill\PersonBundle\Entity\Person::class)->find($person_id); - return $this->render('ChillReportBundle:Report:select_report_type.html.twig', [ + return $this->render('@ChillReport/Report/select_report_type.html.twig', [ 'form' => $form->createView(), 'person' => $person, ]); @@ -407,7 +407,7 @@ class ReportController extends AbstractController ]) ->getForm(); - return $this->render('ChillReportBundle:Report:select_report_type_for_export.html.twig', [ + return $this->render('@ChillReport/Report/select_report_type_for_export.html.twig', [ 'form' => $form->createView(), 'layout_name' => '@ChillMain/Export/layout.html.twig', ]); @@ -469,7 +469,7 @@ class ReportController extends AbstractController ->trans('The form is not valid. The report has not been updated !') ); - return $this->render('ChillReportBundle:Report:edit.html.twig', [ + return $this->render('@ChillReport/Report/edit.html.twig', [ 'edit_form' => $editForm->createView(), 'person' => $report->getPerson(), ]); @@ -506,7 +506,7 @@ class ReportController extends AbstractController ]); $this->eventDispatcher->dispatch($event, PrivacyEvent::PERSON_PRIVACY_EVENT); - return $this->render('ChillReportBundle:Report:view.html.twig', [ + return $this->render('@ChillReport/Report/view.html.twig', [ 'entity' => $entity, 'person' => $person, ]); diff --git a/src/Bundle/ChillReportBundle/Search/ReportSearch.php b/src/Bundle/ChillReportBundle/Search/ReportSearch.php index 188faaee5..70ba3282c 100644 --- a/src/Bundle/ChillReportBundle/Search/ReportSearch.php +++ b/src/Bundle/ChillReportBundle/Search/ReportSearch.php @@ -56,7 +56,7 @@ class ReportSearch extends AbstractSearch implements ContainerAwareInterface public function renderResult(array $terms, $start = 0, $limit = 50, array $options = [], $format = 'html') { - return $this->container->get('templating')->render('ChillReportBundle:Search:results.html.twig', [ + return $this->container->get('templating')->render('@ChillReport/Search/results.html.twig', [ 'reports' => $this->getReports($terms, $start, $limit), 'total' => $this->count($terms), 'pattern' => $this->recomposePattern($terms, ['date'], 'report'), diff --git a/src/Bundle/ChillReportBundle/Timeline/TimelineReportProvider.php b/src/Bundle/ChillReportBundle/Timeline/TimelineReportProvider.php index a5f62debc..282783b7e 100644 --- a/src/Bundle/ChillReportBundle/Timeline/TimelineReportProvider.php +++ b/src/Bundle/ChillReportBundle/Timeline/TimelineReportProvider.php @@ -77,7 +77,7 @@ class TimelineReportProvider implements TimelineProviderInterface $this->checkContext($context); return [ - 'template' => 'ChillReportBundle:Timeline:report.html.twig', + 'template' => '@ChillReport/Timeline/report.html.twig', 'template_data' => [ 'report' => $entity, 'context' => $context, diff --git a/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/AccompanyingCourse/list.html.twig b/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/AccompanyingCourse/list.html.twig index bc8a042d6..8c6ac735e 100644 --- a/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/AccompanyingCourse/list.html.twig +++ b/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/AccompanyingCourse/list.html.twig @@ -14,7 +14,7 @@ {% else %}
{% for task in tasks %} - {% include 'ChillTaskBundle:SingleTask/List:index_item.html.twig' with { 'showContext' : false } %} + {% include '@ChillTask/SingleTask/List/index_item.html.twig' with { 'showContext' : false } %} {% endfor %}
{% endif %} diff --git a/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/List/index.html.twig b/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/List/index.html.twig index b479eb948..1cb2bc228 100644 --- a/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/List/index.html.twig +++ b/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/List/index.html.twig @@ -1,4 +1,4 @@ -{% extends 'ChillMainBundle::layout.html.twig' %} +{% extends '@ChillMain/layout.html.twig' %} {% block title 'Tasks'|trans %} @@ -14,7 +14,7 @@ {% else %}
{% for task in tasks %} - {% include 'ChillTaskBundle:SingleTask/List:index_item.html.twig' with { 'showContext' : true} %} + {% include '@ChillTask/SingleTask/List/index_item.html.twig' with { 'showContext' : true} %} {% endfor %}
{% endif %} diff --git a/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/List/index_my_tasks.html.twig b/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/List/index_my_tasks.html.twig index 359d02ef0..64182fe3b 100644 --- a/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/List/index_my_tasks.html.twig +++ b/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/List/index_my_tasks.html.twig @@ -14,7 +14,7 @@ {% else %}
{% for task in tasks %} - {% include 'ChillTaskBundle:SingleTask/List:index_item.html.twig' with { 'showContext' : true} %} + {% include '@ChillTask/SingleTask/List/index_item.html.twig' with { 'showContext' : true} %} {% endfor %}
{% endif %} diff --git a/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/Person/list.html.twig b/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/Person/list.html.twig index 0763dd8f3..f154205be 100644 --- a/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/Person/list.html.twig +++ b/src/Bundle/ChillTaskBundle/Resources/views/SingleTask/Person/list.html.twig @@ -16,7 +16,7 @@ {% else %}
{% for task in tasks %} - {% include 'ChillTaskBundle:SingleTask/List:index_item.html.twig' with { 'showContext' : false } %} + {% include '@ChillTask/SingleTask/List/index_item.html.twig' with { 'showContext' : false } %} {% endfor %}
{% endif %} diff --git a/src/Bundle/ChillTaskBundle/Timeline/SingleTaskTaskLifeCycleEventTimelineProvider.php b/src/Bundle/ChillTaskBundle/Timeline/SingleTaskTaskLifeCycleEventTimelineProvider.php index 8b2e5c707..70633e071 100644 --- a/src/Bundle/ChillTaskBundle/Timeline/SingleTaskTaskLifeCycleEventTimelineProvider.php +++ b/src/Bundle/ChillTaskBundle/Timeline/SingleTaskTaskLifeCycleEventTimelineProvider.php @@ -99,7 +99,7 @@ class SingleTaskTaskLifeCycleEventTimelineProvider implements TimelineProviderIn } return [ - 'template' => 'ChillTaskBundle:Timeline:single_task_transition_task_context.html.twig', + 'template' => '@ChillTask/Timeline/single_task_transition_task_context.html.twig', 'template_data' => [ 'task' => $args['task'], 'event' => $entity, diff --git a/src/Bundle/ChillTaskBundle/Timeline/TaskLifeCycleEventTimelineProvider.php b/src/Bundle/ChillTaskBundle/Timeline/TaskLifeCycleEventTimelineProvider.php index 1fa818f41..d1f3990af 100644 --- a/src/Bundle/ChillTaskBundle/Timeline/TaskLifeCycleEventTimelineProvider.php +++ b/src/Bundle/ChillTaskBundle/Timeline/TaskLifeCycleEventTimelineProvider.php @@ -91,7 +91,7 @@ class TaskLifeCycleEventTimelineProvider implements TimelineProviderInterface $transition = $this->getTransitionByName($entity->getTransition(), $workflow); return [ - 'template' => 'ChillTaskBundle:Timeline:single_task_transition.html.twig', + 'template' => '@ChillTask/Timeline/single_task_transition.html.twig', 'template_data' => [ 'context' => $context, 'event' => $entity, diff --git a/src/Bundle/ChillWopiBundle/src/Resources/views/Editor/stored_object_failure.html.twig b/src/Bundle/ChillWopiBundle/src/Resources/views/Editor/stored_object_failure.html.twig index 145b58b8b..cdc2dc347 100644 --- a/src/Bundle/ChillWopiBundle/src/Resources/views/Editor/stored_object_failure.html.twig +++ b/src/Bundle/ChillWopiBundle/src/Resources/views/Editor/stored_object_failure.html.twig @@ -1,4 +1,4 @@ -{% extends 'ChillMainBundle::layout.html.twig' %} +{% extends '@ChillMain/layout.html.twig' %} {% block content %}