mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
Export view
This commit is contained in:
parent
10fdc2e072
commit
756a188817
39
Controller/ExportController.php
Normal file
39
Controller/ExportController.php
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Chill is a software for social workers
|
||||||
|
*
|
||||||
|
* Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS,
|
||||||
|
* <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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Chill\MainBundle\Controller;
|
||||||
|
|
||||||
|
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ExportController is the controller use for exporting data.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
class ExportController extends Controller
|
||||||
|
{
|
||||||
|
public function indexAction($menu = 'admin',
|
||||||
|
$header_title = 'views.Main.admin.index.header_title',
|
||||||
|
$page_title = 'views.Main.admin.index.page_title')
|
||||||
|
{
|
||||||
|
return $this->render('ChillMainBundle:Export:layout.html.twig');
|
||||||
|
}
|
||||||
|
}
|
@ -19,16 +19,26 @@ chill_main_homepage:
|
|||||||
label: Homepage
|
label: Homepage
|
||||||
icons: [home]
|
icons: [home]
|
||||||
|
|
||||||
|
chill_main_export_index:
|
||||||
|
pattern: /{_locale}/export
|
||||||
|
defaults: { _controller: ChillMainBundle:Export:index }
|
||||||
|
options:
|
||||||
|
menus:
|
||||||
|
section:
|
||||||
|
order: 20
|
||||||
|
label: Export Menu
|
||||||
|
icons: [upload]
|
||||||
|
|
||||||
chill_main_admin_central:
|
chill_main_admin_central:
|
||||||
pattern: /{_locale}/admin
|
pattern: /{_locale}/admin
|
||||||
defaults: { _controller: ChillMainBundle:Admin:index }
|
defaults: { _controller: ChillMainBundle:Admin:index }
|
||||||
options:
|
options:
|
||||||
menus:
|
menus:
|
||||||
section:
|
section:
|
||||||
order: 20
|
order: 30
|
||||||
label: Admin Menu
|
label: Admin Menu
|
||||||
icons: [gears]
|
icons: [gears]
|
||||||
|
|
||||||
chill_main_search:
|
chill_main_search:
|
||||||
pattern: /{_locale}/search
|
pattern: /{_locale}/search
|
||||||
defaults: { _controller: ChillMainBundle:Search:search }
|
defaults: { _controller: ChillMainBundle:Search:search }
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{#
|
{#
|
||||||
* Copyright (C) 2014, Champs Libres Cooperative SCRLFS, <http://www.champs-libres.coop>
|
* 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
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
@ -14,46 +15,17 @@
|
|||||||
* You should have received a copy of the GNU Affero General Public License
|
* 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/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#}
|
#}
|
||||||
{% extends "ChillMainBundle::layout.html.twig" %}
|
|
||||||
|
|
||||||
{% block layout_content %}
|
{% extends "ChillMainBundle::layoutWithVerticalMenu.html.twig" %}
|
||||||
|
|
||||||
<div class="container content">
|
{% block vertical_menu_content %}
|
||||||
{{ chill_menu('admin', {
|
{{ chill_menu('admin', {
|
||||||
'layout': 'ChillMainBundle::Menu/admin.html.twig',
|
'layout': 'ChillMainBundle::Menu/admin.html.twig',
|
||||||
}) }}
|
}) }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
<div class="grid-8">
|
{% block layout_wvm_content %}
|
||||||
{# Flash messages ! #}
|
{% block admin_content %}<!-- block personcontent empty -->
|
||||||
<div class="container">
|
Welcome to the admin section !
|
||||||
{% for flashMessage in app.session.flashbag.get('success') %}
|
{% endblock %}
|
||||||
<div class="grid-8 centered success">
|
{% endblock %}
|
||||||
<span>
|
|
||||||
{{ flashMessage|raw }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% for flashMessage in app.session.flashbag.get('danger') %}
|
|
||||||
<div class="grid-8 centered error">
|
|
||||||
<span>
|
|
||||||
{{ flashMessage|raw }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% for flashMessage in app.session.flashbag.get('info') %}
|
|
||||||
<div class="grid-8 centered notice">
|
|
||||||
<span>
|
|
||||||
{{ flashMessage|raw }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% block admin_content %}<!-- block personcontent empty -->
|
|
||||||
Welcome to the Admin !
|
|
||||||
{% endblock %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
31
Resources/views/Export/layout.html.twig
Normal file
31
Resources/views/Export/layout.html.twig
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
{#
|
||||||
|
* 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 "ChillMainBundle::layoutWithVerticalMenu.html.twig" %}
|
||||||
|
|
||||||
|
{% block vertical_menu_content %}
|
||||||
|
{{ chill_menu('export', {
|
||||||
|
'layout': 'ChillMainBundle::Menu/export.html.twig',
|
||||||
|
}) }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block layout_wvm_content %}
|
||||||
|
{% block export_content %}<!-- block personcontent empty -->
|
||||||
|
Welcome to the Export section !
|
||||||
|
{% endblock %}
|
||||||
|
{% endblock %}
|
@ -1,14 +1,20 @@
|
|||||||
<div class="grid-4">
|
{#
|
||||||
<ul class="tab-nav follow-href-path">
|
* Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS,
|
||||||
<li class="title">{{ 'Admin Menu'|trans }}</li>
|
<info@champs-libres.coop> / <http://www.champs-libres.coop>
|
||||||
{% for route in routes %}
|
*
|
||||||
<li class="{% spaceless %}
|
* This program is free software: you can redistribute it and/or modify
|
||||||
{% if route.key == activeRouteKey %}
|
* it under the terms of the GNU Affero General Public License as
|
||||||
active
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
{% endif %}
|
* License, or (at your option) any later version.
|
||||||
{% endspaceless %} ">
|
*
|
||||||
<a href="{{ path(route.key, args ) }}" >{{ route.label|trans }}</a>
|
* This program is distributed in the hope that it will be useful,
|
||||||
</li>
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
{% endfor %}
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
</ul>
|
* GNU Affero General Public License for more details.
|
||||||
</div>
|
*
|
||||||
|
* 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 "ChillMainBundle::Menu/verticalMenu.html.twig" %}
|
||||||
|
{% block v_menu_title %}{{ 'Admin Menu'|trans }}{% endblock %}
|
20
Resources/views/Menu/export.html.twig
Normal file
20
Resources/views/Menu/export.html.twig
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{#
|
||||||
|
* 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 "ChillMainBundle::Menu/verticalMenu.html.twig" %}
|
||||||
|
{% block v_menu_title %}{{ 'Export Menu'|trans }}{% endblock %}
|
38
Resources/views/Menu/verticalMenu.html.twig
Normal file
38
Resources/views/Menu/verticalMenu.html.twig
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{#
|
||||||
|
* 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/>.
|
||||||
|
#}
|
||||||
|
|
||||||
|
{#
|
||||||
|
Layout for a vertical menu (like admin, export) to use with the
|
||||||
|
layout ../layoutWithVerticalMenu.html.twig.
|
||||||
|
#}
|
||||||
|
<div class="grid-4">
|
||||||
|
<ul class="tab-nav follow-href-path">
|
||||||
|
<li class="title">
|
||||||
|
{% block v_menu_title %}<!-- title of the verticalMenu is empty -->{% endblock %}
|
||||||
|
</li>
|
||||||
|
{% for route in routes %}
|
||||||
|
<li class="{% spaceless %}
|
||||||
|
{% if route.key == activeRouteKey %}
|
||||||
|
active
|
||||||
|
{% endif %}
|
||||||
|
{% endspaceless %} ">
|
||||||
|
<a href="{{ path(route.key, args ) }}" >{{ route.label|trans }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
64
Resources/views/layoutWithVerticalMenu.html.twig
Normal file
64
Resources/views/layoutWithVerticalMenu.html.twig
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
{#
|
||||||
|
* 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/>.
|
||||||
|
#}
|
||||||
|
|
||||||
|
{#
|
||||||
|
Layout with a vertical menu and a conainer for the content (like admin, export)
|
||||||
|
( for the vertical menu you can extends Menu/veticalMenu.html.twig ).
|
||||||
|
#}
|
||||||
|
|
||||||
|
{% extends "ChillMainBundle::layout.html.twig" %}
|
||||||
|
|
||||||
|
{% block layout_content %}
|
||||||
|
|
||||||
|
<div class="container content">
|
||||||
|
{% block vertical_menu_content %}<!-- vertical menu of the layoutWithVerticalMenu is empty -->
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
<div class="grid-8">
|
||||||
|
{# Flash messages ! #}
|
||||||
|
<div class="container">
|
||||||
|
{% for flashMessage in app.session.flashbag.get('success') %}
|
||||||
|
<div class="grid-8 centered success">
|
||||||
|
<span>
|
||||||
|
{{ flashMessage|raw }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% for flashMessage in app.session.flashbag.get('danger') %}
|
||||||
|
<div class="grid-8 centered error">
|
||||||
|
<span>
|
||||||
|
{{ flashMessage|raw }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
{% for flashMessage in app.session.flashbag.get('info') %}
|
||||||
|
<div class="grid-8 centered notice">
|
||||||
|
<span>
|
||||||
|
{{ flashMessage|raw }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% block layout_wvm_content %}<!-- content of the layoutWithVerticalMenu is empty -->
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user