mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
Update path to twig template with new syntax
This commit is contained in:
@@ -27,6 +27,6 @@ class AdminController extends AbstractController
|
||||
*/
|
||||
public function indexAdminAction()
|
||||
{
|
||||
return $this->render('ChillEventBundle:Admin:index.html.twig');
|
||||
return $this->render('@ChillEvent/Admin/index.html.twig');
|
||||
}
|
||||
}
|
||||
|
@@ -132,7 +132,7 @@ class EventController extends AbstractController
|
||||
}
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Event:confirm_delete.html.twig', [
|
||||
return $this->render('@ChillEvent/Event/confirm_delete.html.twig', [
|
||||
'event_id' => $event->getId(),
|
||||
'delete_form' => $form->createView(),
|
||||
]);
|
||||
@@ -157,7 +157,7 @@ class EventController extends AbstractController
|
||||
|
||||
$editForm = $this->createEditForm($entity);
|
||||
|
||||
return $this->render('ChillEventBundle:Event:edit.html.twig', [
|
||||
return $this->render('@ChillEvent/Event/edit.html.twig', [
|
||||
'entity' => $entity,
|
||||
'edit_form' => $editForm->createView(),
|
||||
]);
|
||||
@@ -209,7 +209,7 @@ class EventController extends AbstractController
|
||||
|
||||
$addEventParticipationByPersonForm = $this->createAddEventParticipationByPersonForm($person);
|
||||
|
||||
return $this->render('ChillEventBundle:Event:listByPerson.html.twig', [
|
||||
return $this->render('@ChillEvent/Event/listByPerson.html.twig', [
|
||||
'participations' => $participations,
|
||||
'person' => $person,
|
||||
'paginator' => $paginator,
|
||||
@@ -255,7 +255,7 @@ class EventController extends AbstractController
|
||||
return $this->redirectToRoute('chill_event__event_show', ['event_id' => $entity->getId()]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Event:new.html.twig', [
|
||||
return $this->render('@ChillEvent/Event/new.html.twig', [
|
||||
'entity' => $entity,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
@@ -298,7 +298,7 @@ class EventController extends AbstractController
|
||||
])
|
||||
->getForm();
|
||||
|
||||
return $this->render('ChillEventBundle:Event:newPickCenter.html.twig', [
|
||||
return $this->render('@ChillEvent/Event/newPickCenter.html.twig', [
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
}
|
||||
@@ -332,7 +332,7 @@ class EventController extends AbstractController
|
||||
return $exportParticipationsList['response'];
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Event:show.html.twig', [
|
||||
return $this->render('@ChillEvent/Event/show.html.twig', [
|
||||
'event' => $event,
|
||||
'form_add_participation_by_person' => $addParticipationByPersonForm->createView(),
|
||||
'form_export' => $exportParticipationsList['form']->createView(),
|
||||
@@ -366,7 +366,7 @@ class EventController extends AbstractController
|
||||
return $this->redirectToRoute('chill_event__event_edit', ['event_id' => $event_id]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Event:edit.html.twig', [
|
||||
return $this->render('@ChillEvent/Event/edit.html.twig', [
|
||||
'entity' => $entity,
|
||||
'edit_form' => $editForm->createView(),
|
||||
]);
|
||||
|
@@ -39,7 +39,7 @@ class EventTypeController extends AbstractController
|
||||
return $this->redirectToRoute('chill_eventtype_admin', ['id' => $entity->getId()]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:EventType:new.html.twig', [
|
||||
return $this->render('@ChillEvent/EventType/new.html.twig', [
|
||||
'entity' => $entity,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
@@ -84,7 +84,7 @@ class EventTypeController extends AbstractController
|
||||
$editForm = $this->createEditForm($entity);
|
||||
$deleteForm = $this->createDeleteForm($id);
|
||||
|
||||
return $this->render('ChillEventBundle:EventType:edit.html.twig', [
|
||||
return $this->render('@ChillEvent/EventType/edit.html.twig', [
|
||||
'entity' => $entity,
|
||||
'edit_form' => $editForm->createView(),
|
||||
'delete_form' => $deleteForm->createView(),
|
||||
@@ -100,7 +100,7 @@ class EventTypeController extends AbstractController
|
||||
|
||||
$entities = $em->getRepository(\Chill\EventBundle\Entity\EventType::class)->findAll();
|
||||
|
||||
return $this->render('ChillEventBundle:EventType:index.html.twig', [
|
||||
return $this->render('@ChillEvent/EventType/index.html.twig', [
|
||||
'entities' => $entities,
|
||||
]);
|
||||
}
|
||||
@@ -113,7 +113,7 @@ class EventTypeController extends AbstractController
|
||||
$entity = new EventType();
|
||||
$form = $this->createCreateForm($entity);
|
||||
|
||||
return $this->render('ChillEventBundle:EventType:new.html.twig', [
|
||||
return $this->render('@ChillEvent/EventType/new.html.twig', [
|
||||
'entity' => $entity,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
@@ -134,7 +134,7 @@ class EventTypeController extends AbstractController
|
||||
|
||||
$deleteForm = $this->createDeleteForm($id);
|
||||
|
||||
return $this->render('ChillEventBundle:EventType:show.html.twig', [
|
||||
return $this->render('@ChillEvent/EventType/show.html.twig', [
|
||||
'entity' => $entity,
|
||||
'delete_form' => $deleteForm->createView(),
|
||||
]);
|
||||
@@ -163,7 +163,7 @@ class EventTypeController extends AbstractController
|
||||
return $this->redirectToRoute('chill_eventtype_admin', ['id' => $id]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:EventType:edit.html.twig', [
|
||||
return $this->render('@ChillEvent/EventType/edit.html.twig', [
|
||||
'entity' => $entity,
|
||||
'edit_form' => $editForm->createView(),
|
||||
'delete_form' => $deleteForm->createView(),
|
||||
|
@@ -197,7 +197,7 @@ class ParticipationController extends AbstractController
|
||||
]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Participation:new.html.twig', [
|
||||
return $this->render('@ChillEvent/Participation/new.html.twig', [
|
||||
'form' => $form->createView(),
|
||||
'participation' => $participation,
|
||||
]);
|
||||
@@ -238,7 +238,7 @@ class ParticipationController extends AbstractController
|
||||
]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Participation:new.html.twig', [
|
||||
return $this->render('@ChillEvent/Participation/new.html.twig', [
|
||||
'form' => $form->createView(),
|
||||
'participation' => $participation,
|
||||
]);
|
||||
@@ -284,7 +284,7 @@ class ParticipationController extends AbstractController
|
||||
}
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Participation:confirm_delete.html.twig', [
|
||||
return $this->render('@ChillEvent/Participation/confirm_delete.html.twig', [
|
||||
'event_id' => $event->getId(),
|
||||
'delete_form' => $form->createView(),
|
||||
]);
|
||||
@@ -315,7 +315,7 @@ class ParticipationController extends AbstractController
|
||||
|
||||
$form = $this->createEditForm($participation);
|
||||
|
||||
return $this->render('ChillEventBundle:Participation:edit.html.twig', [
|
||||
return $this->render('@ChillEvent/Participation/edit.html.twig', [
|
||||
'form' => $form->createView(),
|
||||
'participation' => $participation,
|
||||
]);
|
||||
@@ -369,7 +369,7 @@ class ParticipationController extends AbstractController
|
||||
|
||||
$form = $this->createEditFormMultiple($event->getParticipations(), $event);
|
||||
|
||||
return $this->render('ChillEventBundle:Participation:edit-multiple.html.twig', [
|
||||
return $this->render('@ChillEvent/Participation/edit-multiple.html.twig', [
|
||||
'event' => $event,
|
||||
'participations' => $event->getParticipations(),
|
||||
'form' => $form->createView(),
|
||||
@@ -452,7 +452,7 @@ class ParticipationController extends AbstractController
|
||||
]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Participation:edit.html.twig', [
|
||||
return $this->render('@ChillEvent/Participation/edit.html.twig', [
|
||||
'form' => $form->createView(),
|
||||
'participation' => $participation,
|
||||
]);
|
||||
@@ -495,7 +495,7 @@ class ParticipationController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Participation:edit-multiple.html.twig', [
|
||||
return $this->render('@ChillEvent/Participation/edit-multiple.html.twig', [
|
||||
'event' => $event,
|
||||
'participations' => $event->getParticipations(),
|
||||
'form' => $form->createView(),
|
||||
@@ -677,7 +677,7 @@ class ParticipationController extends AbstractController
|
||||
$form = $this->createCreateFormMultiple($newParticipations);
|
||||
|
||||
return $this->render(
|
||||
'ChillEventBundle:Participation:new-multiple.html.twig',
|
||||
'@ChillEvent/Participation/new-multiple.html.twig',
|
||||
[
|
||||
'form' => $form->createView(),
|
||||
'participations' => $newParticipations,
|
||||
@@ -690,7 +690,7 @@ class ParticipationController extends AbstractController
|
||||
$form = $this->createCreateForm($participation);
|
||||
|
||||
return $this->render(
|
||||
'ChillEventBundle:Participation:new.html.twig',
|
||||
'@ChillEvent/Participation/new.html.twig',
|
||||
[
|
||||
'form' => $form->createView(),
|
||||
'participation' => $participation,
|
||||
@@ -719,7 +719,7 @@ class ParticipationController extends AbstractController
|
||||
|
||||
$form = $this->createCreateForm($participation, $returnPath);
|
||||
|
||||
return $this->render('ChillEventBundle:Participation:new.html.twig', [
|
||||
return $this->render('@ChillEvent/Participation/new.html.twig', [
|
||||
'form' => $form->createView(),
|
||||
'participation' => $participation,
|
||||
'ignored_participations' => [], // this is required, see self::newMultiple
|
||||
|
@@ -39,7 +39,7 @@ class RoleController extends AbstractController
|
||||
return $this->redirectToRoute('chill_event_admin_role', ['id' => $entity->getId()]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Role:new.html.twig', [
|
||||
return $this->render('@ChillEvent/Role/new.html.twig', [
|
||||
'entity' => $entity,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
@@ -84,7 +84,7 @@ class RoleController extends AbstractController
|
||||
$editForm = $this->createEditForm($entity);
|
||||
$deleteForm = $this->createDeleteForm($id);
|
||||
|
||||
return $this->render('ChillEventBundle:Role:edit.html.twig', [
|
||||
return $this->render('@ChillEvent/Role/edit.html.twig', [
|
||||
'entity' => $entity,
|
||||
'edit_form' => $editForm->createView(),
|
||||
'delete_form' => $deleteForm->createView(),
|
||||
@@ -100,7 +100,7 @@ class RoleController extends AbstractController
|
||||
|
||||
$entities = $em->getRepository(\Chill\EventBundle\Entity\Role::class)->findAll();
|
||||
|
||||
return $this->render('ChillEventBundle:Role:index.html.twig', [
|
||||
return $this->render('@ChillEvent/Role/index.html.twig', [
|
||||
'entities' => $entities,
|
||||
]);
|
||||
}
|
||||
@@ -113,7 +113,7 @@ class RoleController extends AbstractController
|
||||
$entity = new Role();
|
||||
$form = $this->createCreateForm($entity);
|
||||
|
||||
return $this->render('ChillEventBundle:Role:new.html.twig', [
|
||||
return $this->render('@ChillEvent/Role/new.html.twig', [
|
||||
'entity' => $entity,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
@@ -134,7 +134,7 @@ class RoleController extends AbstractController
|
||||
|
||||
$deleteForm = $this->createDeleteForm($id);
|
||||
|
||||
return $this->render('ChillEventBundle:Role:show.html.twig', [
|
||||
return $this->render('@ChillEvent/Role/show.html.twig', [
|
||||
'entity' => $entity,
|
||||
'delete_form' => $deleteForm->createView(),
|
||||
]);
|
||||
@@ -163,7 +163,7 @@ class RoleController extends AbstractController
|
||||
return $this->redirectToRoute('chill_event_admin_role', ['id' => $id]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Role:edit.html.twig', [
|
||||
return $this->render('@ChillEvent/Role/edit.html.twig', [
|
||||
'entity' => $entity,
|
||||
'edit_form' => $editForm->createView(),
|
||||
'delete_form' => $deleteForm->createView(),
|
||||
|
@@ -39,7 +39,7 @@ class StatusController extends AbstractController
|
||||
return $this->redirectToRoute('chill_event_admin_status', ['id' => $entity->getId()]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Status:new.html.twig', [
|
||||
return $this->render('@ChillEvent/Status/new.html.twig', [
|
||||
'entity' => $entity,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
@@ -84,7 +84,7 @@ class StatusController extends AbstractController
|
||||
$editForm = $this->createEditForm($entity);
|
||||
$deleteForm = $this->createDeleteForm($id);
|
||||
|
||||
return $this->render('ChillEventBundle:Status:edit.html.twig', [
|
||||
return $this->render('@ChillEvent/Status/edit.html.twig', [
|
||||
'entity' => $entity,
|
||||
'edit_form' => $editForm->createView(),
|
||||
'delete_form' => $deleteForm->createView(),
|
||||
@@ -100,7 +100,7 @@ class StatusController extends AbstractController
|
||||
|
||||
$entities = $em->getRepository(\Chill\EventBundle\Entity\Status::class)->findAll();
|
||||
|
||||
return $this->render('ChillEventBundle:Status:index.html.twig', [
|
||||
return $this->render('@ChillEvent/Status/index.html.twig', [
|
||||
'entities' => $entities,
|
||||
]);
|
||||
}
|
||||
@@ -113,7 +113,7 @@ class StatusController extends AbstractController
|
||||
$entity = new Status();
|
||||
$form = $this->createCreateForm($entity);
|
||||
|
||||
return $this->render('ChillEventBundle:Status:new.html.twig', [
|
||||
return $this->render('@ChillEvent/Status/new.html.twig', [
|
||||
'entity' => $entity,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
@@ -134,7 +134,7 @@ class StatusController extends AbstractController
|
||||
|
||||
$deleteForm = $this->createDeleteForm($id);
|
||||
|
||||
return $this->render('ChillEventBundle:Status:show.html.twig', [
|
||||
return $this->render('@ChillEvent/Status/show.html.twig', [
|
||||
'entity' => $entity,
|
||||
'delete_form' => $deleteForm->createView(),
|
||||
]);
|
||||
@@ -163,7 +163,7 @@ class StatusController extends AbstractController
|
||||
return $this->redirectToRoute('chill_event_admin_status', ['id' => $id]);
|
||||
}
|
||||
|
||||
return $this->render('ChillEventBundle:Status:edit.html.twig', [
|
||||
return $this->render('@ChillEvent/Status/edit.html.twig', [
|
||||
'entity' => $entity,
|
||||
'edit_form' => $editForm->createView(),
|
||||
'delete_form' => $deleteForm->createView(),
|
||||
|
Reference in New Issue
Block a user