diff --git a/app/modules/module_shop/controllers/ThemeShopController.php b/app/modules/module_shop/controllers/ThemeShopController.php index 4ec7325..b87afef 100644 --- a/app/modules/module_shop/controllers/ThemeShopController.php +++ b/app/modules/module_shop/controllers/ThemeShopController.php @@ -3,6 +3,7 @@ namespace app\modules\module_shop\controllers; use app\modules\module_shop\models\forms\CreateAdminThemeShopForm; +use app\modules\module_shop\models\forms\CreateThemeShopForm; use app\modules\module_shop\services\ModuleShopService; use JetBrains\PhpStorm\NoReturn; use kernel\AdminController; diff --git a/app/modules/module_shop/routs/ms.php b/app/modules/module_shop/routs/ms.php index 809c66b..cf9ef9f 100644 --- a/app/modules/module_shop/routs/ms.php +++ b/app/modules/module_shop/routs/ms.php @@ -27,6 +27,10 @@ App::$collector->group(["prefix" => "admin"], function (CgRouteCollector $router App::$collector->get('/create', [\app\modules\module_shop\controllers\AdminThemeShopController::class, 'actionCreate']); App::$collector->post("/", [\app\modules\module_shop\controllers\AdminThemeShopController::class, 'actionAdd']); }); + App::$collector->group(["prefix" => "theme"], function (CgRouteCollector $router) { + App::$collector->get('/create', [\app\modules\module_shop\controllers\ThemeShopController::class, 'actionCreate']); + App::$collector->post("/", [\app\modules\module_shop\controllers\ThemeShopController::class, 'actionAdd']); + }); }); }); diff --git a/app/modules/module_shop/views/index.php b/app/modules/module_shop/views/index.php index 9b72242..8959380 100644 --- a/app/modules/module_shop/views/index.php +++ b/app/modules/module_shop/views/index.php @@ -27,6 +27,7 @@ $table->beforePrint(function () { $btn = PrimaryBtn::create("Добавить модуль", "/admin/module_shop/module/create", width: '250px')->fetch(); $btn .= PrimaryBtn::create("Добавить ядро", "/admin/module_shop/kernel/create", '250px')->fetch(); $btn .= PrimaryBtn::create("Добавить тему админ-панели", "/admin/module_shop/admin_theme/create", '250px')->fetch(); + $btn .= PrimaryBtn::create("Добавить тему сайта", "/admin/module_shop/theme/create", '250px')->fetch(); return $btn; }); $table->addAction(ViewActionColumn::class);