diff --git a/src/Bundle/ChillDocStoreBundle/Menu/AdminMenuBuilder.php b/src/Bundle/ChillDocStoreBundle/Menu/AdminMenuBuilder.php index ce86d7c19..f955b1d2e 100644 --- a/src/Bundle/ChillDocStoreBundle/Menu/AdminMenuBuilder.php +++ b/src/Bundle/ChillDocStoreBundle/Menu/AdminMenuBuilder.php @@ -33,7 +33,9 @@ class AdminMenuBuilder implements LocalMenuBuilderInterface return; } - $menu->addChild('Documents') + $menu->addChild('Documents', [ + 'route' => 'chill_docstore_admin', + ]) ->setAttribute('class', 'list-group-item-header') ->setExtras(['order' => 4000, 'header' => true]); @@ -44,6 +46,6 @@ class AdminMenuBuilder implements LocalMenuBuilderInterface public static function getMenuIds(): array { - return ['admin_section']; + return ['admin_section', 'admin_docstore']; } } diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/Admin/layout.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/Admin/layout.html.twig index 03be4e6b9..a9860a20d 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/views/Admin/layout.html.twig +++ b/src/Bundle/ChillDocStoreBundle/Resources/views/Admin/layout.html.twig @@ -1,21 +1,3 @@ -{# - * Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS, - / - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . -#} - {% extends "@ChillMain/Admin/layoutWithVerticalMenu.html.twig" %} {% block vertical_menu_content %} diff --git a/src/Bundle/ChillDocStoreBundle/Resources/views/DocumentCategory/edit.html.twig b/src/Bundle/ChillDocStoreBundle/Resources/views/DocumentCategory/edit.html.twig index b3bcd154b..42f98596e 100644 --- a/src/Bundle/ChillDocStoreBundle/Resources/views/DocumentCategory/edit.html.twig +++ b/src/Bundle/ChillDocStoreBundle/Resources/views/DocumentCategory/edit.html.twig @@ -11,7 +11,7 @@ {{ form_start(form) }} {{ form_widget(form) }} -