Guillaume 3 anni fa
parent
commit
1178d0d667
2 ha cambiato i file con 8 aggiunte e 8 eliminazioni
  1. +7
    -7
      src/Controller/Admin/DashboardController.php
  2. +1
    -1
      src/Controller/Admin/PageCrudController.php

+ 7
- 7
src/Controller/Admin/DashboardController.php Vedi File

@@ -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 Vedi File

@@ -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…
Annulla
Salva