mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
admin: admin section for docstore
This commit is contained in:
parent
3f399296c8
commit
1c04a873c0
@ -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'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 %}
|
||||||
|
@ -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 }}
|
||||||
|
@ -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>
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user