瀏覽代碼

I18N

master
Guillaume 3 年之前
父節點
當前提交
1178d0d667
共有 2 個文件被更改,包括 8 次插入8 次删除
  1. +7
    -7
      src/Controller/Admin/DashboardController.php
  2. +1
    -1
      src/Controller/Admin/PageCrudController.php

+ 7
- 7
src/Controller/Admin/DashboardController.php 查看文件

@@ -19,18 +19,18 @@ class DashboardController extends SovDashboardController
{
yield MenuItem::linkToDashboard('dashboard', 'circle');

yield MenuItem::subMenu('user.label', 'user')->setSubItems(
yield MenuItem::linkToCrud('page', 'copy', Page::class);

yield MenuItem::subMenu('user', 'user')->setSubItems(
[
MenuItem::linkToCrud('user.childs.index', '', User::class),
MenuItem::linkToCrud('user_index', '', User::class),
]
);

yield MenuItem::linkToCrud('page', 'copy', Page::class);

yield MenuItem::subMenu('account.label', 'user')->setSubItems(
yield MenuItem::subMenu('account', 'user')->setSubItems(
[
MenuItem::linkToRoute('account.childs.profile', '', 'sov_admin_account_profile'),
MenuItem::linkToRoute('account.childs.password', '', 'sov_admin_account_password'),
MenuItem::linkToRoute('account_profile', '', 'sov_admin_account_profile'),
MenuItem::linkToRoute('account_password', '', 'sov_admin_account_password'),
]
);
}

+ 1
- 1
src/Controller/Admin/PageCrudController.php 查看文件

@@ -29,7 +29,7 @@ class PageCrudController extends AbstractCrudController
return array_merge(
[
FormField::addPanel('general'),
TextField::new('title')->setHelp(true),
TextField::new('title'),
NumberField::new('position')->hideOnForm(),
CKEditorField::new('description'),
FileManagerField::new('file'),

Loading…
取消
儲存