diff --git a/src/Controller/PartController.php b/src/Controller/PartController.php index ccf2959f..3dab1dc3 100644 --- a/src/Controller/PartController.php +++ b/src/Controller/PartController.php @@ -113,7 +113,7 @@ class PartController extends AbstractController } return $this->render( - 'Parts/info/show_part_info.html.twig', + 'parts/info/show_part_info.html.twig', [ 'part' => $part, 'datatable' => $table, @@ -176,7 +176,7 @@ class PartController extends AbstractController $this->addFlash('error', 'part.edited_flash.invalid'); } - return $this->renderForm('Parts/edit/edit_part_info.html.twig', + return $this->renderForm('parts/edit/edit_part_info.html.twig', [ 'part' => $part, 'form' => $form, @@ -318,7 +318,7 @@ class PartController extends AbstractController $this->addFlash('error', 'part.created_flash.invalid'); } - return $this->renderForm('Parts/edit/new_part.html.twig', + return $this->renderForm('parts/edit/new_part.html.twig', [ 'part' => $new_part, 'form' => $form, diff --git a/src/Controller/PartListsController.php b/src/Controller/PartListsController.php index 2d2c4b3e..77e5bef2 100644 --- a/src/Controller/PartListsController.php +++ b/src/Controller/PartListsController.php @@ -163,7 +163,7 @@ class PartListsController extends AbstractController $this->denyAccessUnlessGranted('@categories.read'); return $this->showListWithFilter($request, - 'Parts/lists/category_list.html.twig', + 'parts/lists/category_list.html.twig', function (PartFilter $filter) use ($category) { $filter->getCategory()->setOperator('INCLUDING_CHILDREN')->setValue($category); }, function (FormInterface $filterForm) { @@ -185,7 +185,7 @@ class PartListsController extends AbstractController $this->denyAccessUnlessGranted('@footprints.read'); return $this->showListWithFilter($request, - 'Parts/lists/footprint_list.html.twig', + 'parts/lists/footprint_list.html.twig', function (PartFilter $filter) use ($footprint) { $filter->getFootprint()->setOperator('INCLUDING_CHILDREN')->setValue($footprint); }, function (FormInterface $filterForm) { @@ -207,7 +207,7 @@ class PartListsController extends AbstractController $this->denyAccessUnlessGranted('@manufacturers.read'); return $this->showListWithFilter($request, - 'Parts/lists/manufacturer_list.html.twig', + 'parts/lists/manufacturer_list.html.twig', function (PartFilter $filter) use ($manufacturer) { $filter->getManufacturer()->setOperator('INCLUDING_CHILDREN')->setValue($manufacturer); }, function (FormInterface $filterForm) { @@ -229,7 +229,7 @@ class PartListsController extends AbstractController $this->denyAccessUnlessGranted('@storelocations.read'); return $this->showListWithFilter($request, - 'Parts/lists/store_location_list.html.twig', + 'parts/lists/store_location_list.html.twig', function (PartFilter $filter) use ($storelocation) { $filter->getStorelocation()->setOperator('INCLUDING_CHILDREN')->setValue($storelocation); }, function (FormInterface $filterForm) { @@ -251,7 +251,7 @@ class PartListsController extends AbstractController $this->denyAccessUnlessGranted('@suppliers.read'); return $this->showListWithFilter($request, - 'Parts/lists/supplier_list.html.twig', + 'parts/lists/supplier_list.html.twig', function (PartFilter $filter) use ($supplier) { $filter->getSupplier()->setOperator('INCLUDING_CHILDREN')->setValue($supplier); }, function (FormInterface $filterForm) { @@ -273,7 +273,7 @@ class PartListsController extends AbstractController $tag = trim($tag); return $this->showListWithFilter($request, - 'Parts/lists/tags_list.html.twig', + 'parts/lists/tags_list.html.twig', function (PartFilter $filter) use ($tag) { $filter->getTags()->setOperator('ANY')->setValue($tag); }, function (FormInterface $filterForm) { @@ -314,7 +314,7 @@ class PartListsController extends AbstractController $searchFilter = $this->searchRequestToFilter($request); return $this->showListWithFilter($request, - 'Parts/lists/search_list.html.twig', + 'parts/lists/search_list.html.twig', null, null, [ @@ -334,6 +334,6 @@ class PartListsController extends AbstractController */ public function showAll(Request $request, DataTableFactory $dataTable) { - return $this->showListWithFilter($request,'Parts/lists/all_list.html.twig'); + return $this->showListWithFilter($request,'parts/lists/all_list.html.twig'); } } diff --git a/templates/AdminPages/_parameters.html.twig b/templates/AdminPages/_parameters.html.twig index f4d48395..d9a614a0 100644 --- a/templates/AdminPages/_parameters.html.twig +++ b/templates/AdminPages/_parameters.html.twig @@ -1,4 +1,4 @@ -{% form_theme form with ['Parts/edit/edit_form_styles.html.twig'] %} +{% form_theme form with ['parts/edit/edit_form_styles.html.twig'] %} {% import 'components/collection_type.macro.html.twig' as collection %} diff --git a/templates/components/attachments.macro.html.twig b/templates/components/attachments.macro.html.twig index 47c9e0bd..9c858dd9 100644 --- a/templates/components/attachments.macro.html.twig +++ b/templates/components/attachments.macro.html.twig @@ -1,6 +1,6 @@ {# Renders a editable list of all attachments. form is the Attachment CollectionType #} {% macro attachment_edit_list(form, part_mode = false) %} - {% form_theme form with ['Parts/edit/edit_form_styles.html.twig'] %} + {% form_theme form with ['parts/edit/edit_form_styles.html.twig'] %} {% import 'components/collection_type.macro.html.twig' as collection %}