admin: admin section for docstore

This commit is contained in:
nobohan 2022-05-09 17:07:36 +02:00
parent 3f399296c8
commit 1c04a873c0
5 changed files with 7 additions and 23 deletions

View File

@ -33,7 +33,9 @@ class AdminMenuBuilder implements LocalMenuBuilderInterface
return; return;
} }
$menu->addChild('Documents') $menu->addChild('Documents', [
'route' => 'chill_docstore_admin',
])
->setAttribute('class', 'list-group-item-header') ->setAttribute('class', 'list-group-item-header')
->setExtras(['order' => 4000, 'header' => true]); ->setExtras(['order' => 4000, 'header' => true]);
@ -44,6 +46,6 @@ class AdminMenuBuilder implements LocalMenuBuilderInterface
public static function getMenuIds(): array public static function getMenuIds(): array
{ {
return ['admin_section']; return ['admin_section', 'admin_docstore'];
} }
} }

View File

@ -1,21 +1,3 @@
{#
* Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS,
<info@champs-libres.coop> / <http://www.champs-libres.coop>
*
* 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 <http://www.gnu.org/licenses/>.
#}
{% extends "@ChillMain/Admin/layoutWithVerticalMenu.html.twig" %} {% extends "@ChillMain/Admin/layoutWithVerticalMenu.html.twig" %}
{% block vertical_menu_content %} {% block vertical_menu_content %}

View File

@ -11,7 +11,7 @@
{{ form_start(form) }} {{ form_start(form) }}
{{ form_widget(form) }} {{ form_widget(form) }}
<ul class="record_actions"> <ul class="record_actions sticky-form-buttons">
<li class="cancel"> <li class="cancel">
<a href="{{ path('document_category_index') }}" class="btn btn-cancel"> <a href="{{ path('document_category_index') }}" class="btn btn-cancel">
{{ 'Back to the category list' | trans }} {{ 'Back to the category list' | trans }}

View File

@ -38,7 +38,7 @@
</tbody> </tbody>
</table> </table>
<ul class="record_actions"> <ul class="record_actions sticky-form-buttons">
<li> <li>
<a href="{{ path('document_category_new') }}" class="btn btn-create">{{ 'Create new category' | trans }}</a> <a href="{{ path('document_category_new') }}" class="btn btn-create">{{ 'Create new category' | trans }}</a>
</li> </li>

View File

@ -11,7 +11,7 @@
{{ form_start(form) }} {{ form_start(form) }}
{{ form_widget(form) }} {{ form_widget(form) }}
<ul class="record_actions"> <ul class="record_actions sticky-form-buttons">
<li class="cancel"> <li class="cancel">
<a href="{{ path('document_category_index') }}" class="btn btn-cancel"> <a href="{{ path('document_category_index') }}" class="btn btn-cancel">
{{ 'Back to the category list' | trans }} {{ 'Back to the category list' | trans }}