Layout for the admin section

This commit is contained in:
Marc Ducobu
2015-10-30 10:14:52 +01:00
parent a7d4bf4162
commit 5fb2279d38
6 changed files with 103 additions and 13 deletions

View File

@@ -16,19 +16,26 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
{% extends "ChillMainBundle::layoutWithVerticalMenu.html.twig" %}
{#
The layout of the admin section. All the page / template of the admin section must use this
layout.
#}
{% extends "ChillMainBundle::layout.html.twig" %}
{% block navigation_search_bar %}{% endblock %}
{% block navigation_section_menu %}{% endblock %}
{% block vertical_menu_content %}
{{ chill_menu('admin', {
'layout': 'ChillMainBundle::Menu/admin.html.twig',
}) }}
{% block navigation_section_menu %}
{{ chill_menu('admin_section', {
'layout': 'ChillMainBundle::Menu/adminSection.html.twig',
}) }}
{% endblock %}
{% block layout_wvm_content %}
{% block content %}
{% block admin_content %}<!-- block personcontent empty -->
Welcome to the admin section !
<div class="container">
<div class="grid-10 push-1">
Welcome to the admin section !
</div>
</div>
{% endblock %}
{% endblock %}

View File

@@ -0,0 +1,43 @@
{#
* 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/>.
#}
{#
The layout of the admin section. All the page / template of the admin section must use this
layout.
#}
{% extends "ChillMainBundle::layoutWithVerticalMenu.html.twig" %}
{% block navigation_search_bar %}{% endblock %}
{% block navigation_section_menu %}
{{ chill_menu('admin_section', {
'layout': 'ChillMainBundle::Menu/adminSection.html.twig',
}) }}
{% endblock %}
{% block vertical_menu_content %}
{{ chill_menu('admin', {
'layout': 'ChillMainBundle::Menu/admin.html.twig',
}) }}
{% endblock %}
{% block layout_wvm_content %}
{% block admin_content %}<!-- block personcontent empty -->
Welcome to the admin section !
{% endblock %}
{% endblock %}

View File

@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
{% extends "ChillMainBundle::layoutWithVerticalMenu.html.twig" %}
{% extends "ChillMainBundle::Admin/layoutWithVerticalMenu.html.twig" %}
{% block vertical_menu_content %}
{{ chill_menu('admin_permissions', {