浏览代码

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'),

正在加载...
取消
保存