mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
Update path to twig template with new syntax
This commit is contained in:
@@ -23,7 +23,7 @@ class AdminController extends AbstractController
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
return $this->render('ChillDocStoreBundle:Admin:layout.html.twig');
|
||||
return $this->render('@ChillDocStore/Admin/layout.html.twig');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -68,7 +68,7 @@ class DocumentCategoryController extends AbstractController
|
||||
'idInsideBundle' => $documentCategory->getIdInsideBundle(), ]);
|
||||
}
|
||||
|
||||
return $this->render('ChillDocStoreBundle:DocumentCategory:edit.html.twig', [
|
||||
return $this->render('@ChillDocStore/DocumentCategory/edit.html.twig', [
|
||||
'document_category' => $documentCategory,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
@@ -83,7 +83,7 @@ class DocumentCategoryController extends AbstractController
|
||||
$categories = $em->getRepository(DocumentCategory::class)->findAll();
|
||||
|
||||
return $this->render(
|
||||
'ChillDocStoreBundle:DocumentCategory:index.html.twig',
|
||||
'@ChillDocStore/DocumentCategory/index.html.twig',
|
||||
[
|
||||
'document_categories' => $categories,
|
||||
]
|
||||
@@ -122,7 +122,7 @@ class DocumentCategoryController extends AbstractController
|
||||
return $this->redirectToRoute('document_category_index');
|
||||
}
|
||||
|
||||
return $this->render('ChillDocStoreBundle:DocumentCategory:new.html.twig', [
|
||||
return $this->render('@ChillDocStore/DocumentCategory/new.html.twig', [
|
||||
'document_category' => $documentCategory,
|
||||
'form' => $form->createView(),
|
||||
]);
|
||||
@@ -141,7 +141,7 @@ class DocumentCategoryController extends AbstractController
|
||||
);
|
||||
|
||||
return $this->render(
|
||||
'ChillDocStoreBundle:DocumentCategory:show.html.twig',
|
||||
'@ChillDocStore/DocumentCategory/show.html.twig',
|
||||
['document_category' => $documentCategory]
|
||||
);
|
||||
}
|
||||
|
@@ -75,7 +75,7 @@ class DocumentPersonController extends AbstractController
|
||||
}
|
||||
|
||||
return $this->render(
|
||||
'ChillDocStoreBundle:PersonDocument:delete.html.twig',
|
||||
'@ChillDocStore/PersonDocument/delete.html.twig',
|
||||
[
|
||||
'document' => $document,
|
||||
'delete_form' => $form->createView(),
|
||||
@@ -134,7 +134,7 @@ class DocumentPersonController extends AbstractController
|
||||
$this->eventDispatcher->dispatch($event, PrivacyEvent::PERSON_PRIVACY_EVENT);
|
||||
|
||||
return $this->render(
|
||||
'ChillDocStoreBundle:PersonDocument:edit.html.twig',
|
||||
'@ChillDocStore/PersonDocument/edit.html.twig',
|
||||
[
|
||||
'document' => $document,
|
||||
'form' => $form->createView(),
|
||||
@@ -184,7 +184,7 @@ class DocumentPersonController extends AbstractController
|
||||
$this->addFlash('error', $this->translator->trans('This form contains errors'));
|
||||
}
|
||||
|
||||
return $this->render('ChillDocStoreBundle:PersonDocument:new.html.twig', [
|
||||
return $this->render('@ChillDocStore/PersonDocument/new.html.twig', [
|
||||
'document' => $document,
|
||||
'form' => $form->createView(),
|
||||
'person' => $person,
|
||||
@@ -207,7 +207,7 @@ class DocumentPersonController extends AbstractController
|
||||
$this->eventDispatcher->dispatch($event, PrivacyEvent::PERSON_PRIVACY_EVENT);
|
||||
|
||||
return $this->render(
|
||||
'ChillDocStoreBundle:PersonDocument:show.html.twig',
|
||||
'@ChillDocStore/PersonDocument/show.html.twig',
|
||||
['document' => $document, 'person' => $person]
|
||||
);
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@
|
||||
<h1>{{ 'Document category edit'|trans }}</h1>
|
||||
|
||||
{# DISABLED
|
||||
{{ include('ChillDocStoreBundle:DocumentCategory:_form.html.twig', {'button_label': 'Update'}) }}
|
||||
{{ include('@ChillDocStore/DocumentCategory/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
#}
|
||||
|
||||
{{ form_start(form) }}
|
||||
|
@@ -6,7 +6,7 @@
|
||||
<h1>{{ 'Create new DocumentCategory' | trans }}</h1>
|
||||
|
||||
{# DISABLED
|
||||
{{ include('ChillDocStoreBundle:DocumentCategory:_form.html.twig') }}
|
||||
{{ include('@ChillDocStore/DocumentCategory/_form.html.twig') }}
|
||||
#}
|
||||
|
||||
{{ form_start(form) }}
|
||||
|
@@ -36,7 +36,7 @@
|
||||
class="btn btn-edit">{{ 'Edit' | trans }}</a>
|
||||
</li>
|
||||
<li>
|
||||
{{ include('ChillDocStoreBundle:DocumentCategory:_delete_form.html.twig') }}
|
||||
{{ include('@ChillDocStore/DocumentCategory/_delete_form.html.twig') }}
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user