Browse Source

I18N

master
Guillaume 3 years ago
parent
commit
1178d0d667
2 changed files with 8 additions and 8 deletions
  1. +7
    -7
      src/Controller/Admin/DashboardController.php
  2. +1
    -1
      src/Controller/Admin/PageCrudController.php

+ 7
- 7
src/Controller/Admin/DashboardController.php View 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 View 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…
Cancel
Save