mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
Add Chill context for event admins pages
This commit is contained in:
31
Resources/views/Admin/layout.html.twig
Normal file
31
Resources/views/Admin/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::Admin/layoutWithVerticalMenu.html.twig" %}
|
||||
|
||||
{% block vertical_menu_content %}
|
||||
{{ chill_menu('admin_events', {
|
||||
'layout': 'ChillEventBundle::Admin/menu.html.twig',
|
||||
}) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block layout_wvm_content %}
|
||||
{% block admin_content %}<!-- block personcontent empty -->
|
||||
<h1>{{ 'Events configuration' |trans }}</h1>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
23
Resources/views/Admin/menu.html.twig
Normal file
23
Resources/views/Admin/menu.html.twig
Normal file
@@ -0,0 +1,23 @@
|
||||
{#
|
||||
* 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 %}
|
||||
{{ 'Events configuration menu'|trans }}
|
||||
{% endblock %}
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>EventType edit</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'EventType edit'|trans }}</h1>
|
||||
|
||||
{{ form(edit_form) }}
|
||||
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>EventType list</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'EventType list'|trans }}</h1>
|
||||
|
||||
<table class="records_list">
|
||||
<thead>
|
||||
@@ -40,4 +41,4 @@
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>EventType creation</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'EventType creation'|trans }}</h1>
|
||||
|
||||
{{ form(form) }}
|
||||
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>EventType</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'EventType'|trans }}</h1>
|
||||
|
||||
<table class="record_properties">
|
||||
<tbody>
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>Role edit</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'Role edit'|trans }}</h1>
|
||||
|
||||
{{ form(edit_form) }}
|
||||
|
||||
|
@@ -1,13 +1,15 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>Role list</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'Role list'|trans }}</h1>
|
||||
|
||||
<table class="records_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Type</th>
|
||||
<th>Active</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
@@ -17,6 +19,7 @@
|
||||
<tr>
|
||||
<td><a href="{{ path('chill_event_admin_role_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
|
||||
<td>{{ entity.name|localize_translatable_string }}</td>
|
||||
<td>{{ entity.type.name|localize_translatable_string }}</td>
|
||||
<td>{{ entity.active }}</td>
|
||||
<td>
|
||||
<ul>
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>Role creation</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'Role creation'|trans }}</h1>
|
||||
|
||||
{{ form(form) }}
|
||||
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>Role</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'Role'|trans }}</h1>
|
||||
|
||||
<table class="record_properties">
|
||||
<tbody>
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>Status edit</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'Status edit'|trans }}</h1>
|
||||
|
||||
{{ form(edit_form) }}
|
||||
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>Status list</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'Status list'|trans }}</h1>
|
||||
|
||||
<table class="records_list">
|
||||
<thead>
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>Status creation</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'Status creation'|trans }}</h1>
|
||||
|
||||
{{ form(form) }}
|
||||
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillEventBundle:Admin:layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
<h1>Status</h1>
|
||||
{% block admin_content -%}
|
||||
|
||||
<h1>{{ 'Status'|trans }}</h1>
|
||||
|
||||
<table class="record_properties">
|
||||
<tbody>
|
||||
|
Reference in New Issue
Block a user