admin: remove obsolet header => true tag + php code fix

This commit is contained in:
nobohan
2022-05-10 11:46:17 +02:00
parent 0e8b73638f
commit be27df1fd5
17 changed files with 30 additions and 39 deletions

View File

@@ -24,14 +24,6 @@ class AdminController extends AbstractController
return $this->render('@ChillMain/Admin/index.html.twig');
}
/**
* @Route("/{_locale}/admin/user", name="chill_main_user_admin")
*/
public function indexUserAction()
{
return $this->render('@ChillMain/Admin/indexUser.html.twig');
}
/**
* @Route("/{_locale}/admin/language", name="chill_main_language_admin")
*/
@@ -47,4 +39,12 @@ class AdminController extends AbstractController
{
return $this->render('@ChillMain/Admin/indexLocation.html.twig');
}
/**
* @Route("/{_locale}/admin/user", name="chill_main_user_admin")
*/
public function indexUserAction()
{
return $this->render('@ChillMain/Admin/indexUser.html.twig');
}
}

View File

@@ -38,7 +38,7 @@ class AdminLanguageMenuBuilder implements LocalMenuBuilderInterface
'route' => 'chill_main_language_admin',
])
->setAttribute('class', 'list-group-item-header')
->setExtras(['order' => 1200, 'header' => true]);
->setExtras(['order' => 1200]);
$menu->addChild('Language list', [
'route' => 'chill_crud_main_language_index',

View File

@@ -38,7 +38,7 @@ class AdminLocationMenuBuilder implements LocalMenuBuilderInterface
'route' => 'chill_main_location_admin',
])
->setAttribute('class', 'list-group-item-header')
->setExtras(['order' => 1300, 'header' => true]);
->setExtras(['order' => 1300]);
$menu->addChild('Location type list', [
'route' => 'chill_crud_main_location_type_index',

View File

@@ -38,7 +38,7 @@ class AdminUserMenuBuilder implements LocalMenuBuilderInterface
'route' => 'chill_main_user_admin',
])
->setAttribute('class', 'list-group-item-header')
->setExtras(['order' => 1000, 'header' => true]);
->setExtras(['order' => 1000]);
$menu->addChild('Center list', [
'route' => 'admin_center',