From 837cec905279a1eabee0fa546951d10f45cce88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Thu, 9 Jan 2025 14:54:56 +0100 Subject: [PATCH] Rename twig paths --- .../SetonoSyliusCatalogPromotionExtension.php | 18 +++++++++--------- src/Resources/config/routes/admin.yaml | 4 ++-- .../{Admin => admin}/_javascripts.html.twig | 0 .../catalog_promotion}/_form.html.twig | 0 .../_javascripts.html.twig | 0 .../label/state/completed.html.twig | 0 .../label/state/failed.html.twig | 0 .../label/state/pending.html.twig | 0 .../label/state/processing.html.twig | 0 .../field/catalog_promotion_list.html.twig | 0 .../grid/field/discount.html.twig | 0 .../grid/field/ends_at.html.twig | 0 .../grid/field/error.html.twig | 0 .../grid/field/product_list.html.twig | 0 .../grid/field/products_updated.html.twig | 0 .../grid/field/starts_at.html.twig | 0 16 files changed, 11 insertions(+), 11 deletions(-) rename src/Resources/views/{Admin => admin}/_javascripts.html.twig (100%) rename src/Resources/views/{Admin/Promotion => admin/catalog_promotion}/_form.html.twig (100%) rename src/Resources/views/{Admin => admin}/catalog_promotion_update/_javascripts.html.twig (100%) rename src/Resources/views/{Admin => admin}/catalog_promotion_update/label/state/completed.html.twig (100%) rename src/Resources/views/{Admin => admin}/catalog_promotion_update/label/state/failed.html.twig (100%) rename src/Resources/views/{Admin => admin}/catalog_promotion_update/label/state/pending.html.twig (100%) rename src/Resources/views/{Admin => admin}/catalog_promotion_update/label/state/processing.html.twig (100%) rename src/Resources/views/{Admin => admin}/grid/field/catalog_promotion_list.html.twig (100%) rename src/Resources/views/{Admin => admin}/grid/field/discount.html.twig (100%) rename src/Resources/views/{Admin => admin}/grid/field/ends_at.html.twig (100%) rename src/Resources/views/{Admin => admin}/grid/field/error.html.twig (100%) rename src/Resources/views/{Admin => admin}/grid/field/product_list.html.twig (100%) rename src/Resources/views/{Admin => admin}/grid/field/products_updated.html.twig (100%) rename src/Resources/views/{Admin => admin}/grid/field/starts_at.html.twig (100%) diff --git a/src/DependencyInjection/SetonoSyliusCatalogPromotionExtension.php b/src/DependencyInjection/SetonoSyliusCatalogPromotionExtension.php index 95b4db1..58094e2 100644 --- a/src/DependencyInjection/SetonoSyliusCatalogPromotionExtension.php +++ b/src/DependencyInjection/SetonoSyliusCatalogPromotionExtension.php @@ -68,7 +68,7 @@ public function prepend(ContainerBuilder $container): void 'options' => [ 'template' => '@SyliusUi/Grid/Field/state.html.twig', 'vars' => [ - 'labels' => '@SetonoSyliusCatalogPromotionPlugin/Admin/catalog_promotion_update/label/state', + 'labels' => '@SetonoSyliusCatalogPromotionPlugin/admin/catalog_promotion_update/label/state', ], ], ], @@ -83,28 +83,28 @@ public function prepend(ContainerBuilder $container): void 'sortable' => 'productsUpdated', 'path' => '.', 'options' => [ - 'template' => '@SetonoSyliusCatalogPromotionPlugin/Admin/grid/field/products_updated.html.twig', + 'template' => '@SetonoSyliusCatalogPromotionPlugin/admin/grid/field/products_updated.html.twig', ], ], 'catalogPromotions' => [ 'type' => 'twig', 'label' => 'setono_sylius_catalog_promotion.ui.catalog_promotions', 'options' => [ - 'template' => '@SetonoSyliusCatalogPromotionPlugin/Admin/grid/field/catalog_promotion_list.html.twig', + 'template' => '@SetonoSyliusCatalogPromotionPlugin/admin/grid/field/catalog_promotion_list.html.twig', ], ], 'products' => [ 'type' => 'twig', 'label' => 'sylius.ui.products', 'options' => [ - 'template' => '@SetonoSyliusCatalogPromotionPlugin/Admin/grid/field/product_list.html.twig', + 'template' => '@SetonoSyliusCatalogPromotionPlugin/admin/grid/field/product_list.html.twig', ], ], 'error' => [ 'type' => 'twig', 'label' => 'sylius.ui.error', 'options' => [ - 'template' => '@SetonoSyliusCatalogPromotionPlugin/Admin/grid/field/error.html.twig', + 'template' => '@SetonoSyliusCatalogPromotionPlugin/admin/grid/field/error.html.twig', ], ], 'createdAt' => [ @@ -165,7 +165,7 @@ public function prepend(ContainerBuilder $container): void 'label' => 'sylius.ui.discount', 'sortable' => null, 'options' => [ - 'template' => '@SetonoSyliusCatalogPromotionPlugin/Admin/grid/field/discount.html.twig', + 'template' => '@SetonoSyliusCatalogPromotionPlugin/admin/grid/field/discount.html.twig', ], ], 'priority' => [ @@ -212,7 +212,7 @@ public function prepend(ContainerBuilder $container): void 'label' => 'sylius.ui.starts_at', 'sortable' => null, 'options' => [ - 'template' => '@SetonoSyliusCatalogPromotionPlugin/Admin/grid/field/starts_at.html.twig', + 'template' => '@SetonoSyliusCatalogPromotionPlugin/admin/grid/field/starts_at.html.twig', ], ], 'endsAt' => [ @@ -220,7 +220,7 @@ public function prepend(ContainerBuilder $container): void 'label' => 'sylius.ui.ends_at', 'sortable' => null, 'options' => [ - 'template' => '@SetonoSyliusCatalogPromotionPlugin/Admin/grid/field/ends_at.html.twig', + 'template' => '@SetonoSyliusCatalogPromotionPlugin/admin/grid/field/ends_at.html.twig', ], ], ], @@ -263,7 +263,7 @@ public function prepend(ContainerBuilder $container): void 'setono_sylius_catalog_promotion.admin.catalog_promotion_update.index.javascripts' => [ 'blocks' => [ 'javascripts' => [ - 'template' => '@SetonoSyliusCatalogPromotionPlugin/Admin/catalog_promotion_update/_javascripts.html.twig', + 'template' => '@SetonoSyliusCatalogPromotionPlugin/admin/catalog_promotion_update/_javascripts.html.twig', ], ], ], diff --git a/src/Resources/config/routes/admin.yaml b/src/Resources/config/routes/admin.yaml index 24dff04..7ed9178 100644 --- a/src/Resources/config/routes/admin.yaml +++ b/src/Resources/config/routes/admin.yaml @@ -23,10 +23,10 @@ setono_sylius_catalog_promotion_admin_catalog_promotion: all: subheader: setono_sylius_catalog_promotion.ui.manage_catalog_promotions templates: - form: "@SetonoSyliusCatalogPromotionPlugin/Admin/Promotion/_form.html.twig" + form: "@SetonoSyliusCatalogPromotionPlugin/admin/catalog_promotion/_form.html.twig" index: icon: in cart update: templates: - form: "@SetonoSyliusCatalogPromotionPlugin/Admin/Promotion/_form.html.twig" + form: "@SetonoSyliusCatalogPromotionPlugin/admin/catalog_promotion/_form.html.twig" type: sylius.resource diff --git a/src/Resources/views/Admin/_javascripts.html.twig b/src/Resources/views/admin/_javascripts.html.twig similarity index 100% rename from src/Resources/views/Admin/_javascripts.html.twig rename to src/Resources/views/admin/_javascripts.html.twig diff --git a/src/Resources/views/Admin/Promotion/_form.html.twig b/src/Resources/views/admin/catalog_promotion/_form.html.twig similarity index 100% rename from src/Resources/views/Admin/Promotion/_form.html.twig rename to src/Resources/views/admin/catalog_promotion/_form.html.twig diff --git a/src/Resources/views/Admin/catalog_promotion_update/_javascripts.html.twig b/src/Resources/views/admin/catalog_promotion_update/_javascripts.html.twig similarity index 100% rename from src/Resources/views/Admin/catalog_promotion_update/_javascripts.html.twig rename to src/Resources/views/admin/catalog_promotion_update/_javascripts.html.twig diff --git a/src/Resources/views/Admin/catalog_promotion_update/label/state/completed.html.twig b/src/Resources/views/admin/catalog_promotion_update/label/state/completed.html.twig similarity index 100% rename from src/Resources/views/Admin/catalog_promotion_update/label/state/completed.html.twig rename to src/Resources/views/admin/catalog_promotion_update/label/state/completed.html.twig diff --git a/src/Resources/views/Admin/catalog_promotion_update/label/state/failed.html.twig b/src/Resources/views/admin/catalog_promotion_update/label/state/failed.html.twig similarity index 100% rename from src/Resources/views/Admin/catalog_promotion_update/label/state/failed.html.twig rename to src/Resources/views/admin/catalog_promotion_update/label/state/failed.html.twig diff --git a/src/Resources/views/Admin/catalog_promotion_update/label/state/pending.html.twig b/src/Resources/views/admin/catalog_promotion_update/label/state/pending.html.twig similarity index 100% rename from src/Resources/views/Admin/catalog_promotion_update/label/state/pending.html.twig rename to src/Resources/views/admin/catalog_promotion_update/label/state/pending.html.twig diff --git a/src/Resources/views/Admin/catalog_promotion_update/label/state/processing.html.twig b/src/Resources/views/admin/catalog_promotion_update/label/state/processing.html.twig similarity index 100% rename from src/Resources/views/Admin/catalog_promotion_update/label/state/processing.html.twig rename to src/Resources/views/admin/catalog_promotion_update/label/state/processing.html.twig diff --git a/src/Resources/views/Admin/grid/field/catalog_promotion_list.html.twig b/src/Resources/views/admin/grid/field/catalog_promotion_list.html.twig similarity index 100% rename from src/Resources/views/Admin/grid/field/catalog_promotion_list.html.twig rename to src/Resources/views/admin/grid/field/catalog_promotion_list.html.twig diff --git a/src/Resources/views/Admin/grid/field/discount.html.twig b/src/Resources/views/admin/grid/field/discount.html.twig similarity index 100% rename from src/Resources/views/Admin/grid/field/discount.html.twig rename to src/Resources/views/admin/grid/field/discount.html.twig diff --git a/src/Resources/views/Admin/grid/field/ends_at.html.twig b/src/Resources/views/admin/grid/field/ends_at.html.twig similarity index 100% rename from src/Resources/views/Admin/grid/field/ends_at.html.twig rename to src/Resources/views/admin/grid/field/ends_at.html.twig diff --git a/src/Resources/views/Admin/grid/field/error.html.twig b/src/Resources/views/admin/grid/field/error.html.twig similarity index 100% rename from src/Resources/views/Admin/grid/field/error.html.twig rename to src/Resources/views/admin/grid/field/error.html.twig diff --git a/src/Resources/views/Admin/grid/field/product_list.html.twig b/src/Resources/views/admin/grid/field/product_list.html.twig similarity index 100% rename from src/Resources/views/Admin/grid/field/product_list.html.twig rename to src/Resources/views/admin/grid/field/product_list.html.twig diff --git a/src/Resources/views/Admin/grid/field/products_updated.html.twig b/src/Resources/views/admin/grid/field/products_updated.html.twig similarity index 100% rename from src/Resources/views/Admin/grid/field/products_updated.html.twig rename to src/Resources/views/admin/grid/field/products_updated.html.twig diff --git a/src/Resources/views/Admin/grid/field/starts_at.html.twig b/src/Resources/views/admin/grid/field/starts_at.html.twig similarity index 100% rename from src/Resources/views/Admin/grid/field/starts_at.html.twig rename to src/Resources/views/admin/grid/field/starts_at.html.twig