mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 00:53:48 +00:00
Update path to twig template with new syntax
This commit is contained in:
@@ -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,
|
||||
]);
|
||||
|
@@ -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'),
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user