Adding customFieldsGroup in admin menu + Using admin template

This commit is contained in:
Marc Ducobu 2014-11-21 17:43:06 +01:00
parent 1c45ce9ff4
commit c8cb5d3b10
6 changed files with 93 additions and 8 deletions

View File

@ -1,6 +1,11 @@
customfieldsgroup: customfieldsgroup:
path: /{_locale}/admin/customfieldsgroup/ path: /{_locale}/admin/customfieldsgroup/
defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:index" } defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:index" }
options:
menus:
admin:
order: 1010
label: "CustomFields Groups"
customfieldsgroup_show: customfieldsgroup_show:
path: /{_locale}/admin/customfieldsgroup/{id}/show path: /{_locale}/admin/customfieldsgroup/{id}/show

View File

@ -1,3 +1,19 @@
{#
* Copyright (C) 2014, 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/>.
#}
{% extends "ChillMainBundle::Admin/layout.html.twig" %} {% extends "ChillMainBundle::Admin/layout.html.twig" %}
{% block admin_content %} {% block admin_content %}

View File

@ -1,6 +1,22 @@
{% extends '::base.html.twig' %} {#
* Copyright (C) 2014, 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/>.
#}
{% extends "ChillMainBundle::Admin/layout.html.twig" %}
{% block body -%} {% block admin_content %}
<h1>CustomFieldsGroup edit</h1> <h1>CustomFieldsGroup edit</h1>
{{ form(edit_form) }} {{ form(edit_form) }}

View File

@ -1,6 +1,22 @@
{% extends '::base.html.twig' %} {#
* Copyright (C) 2014, 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/>.
#}
{% extends "ChillMainBundle::Admin/layout.html.twig" %}
{% block body -%} {% block admin_content %}
<h1>CustomFieldsGroup list</h1> <h1>CustomFieldsGroup list</h1>
<table class="records_list"> <table class="records_list">

View File

@ -1,6 +1,22 @@
{% extends '::base.html.twig' %} {#
* Copyright (C) 2014, 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/>.
#}
{% extends "ChillMainBundle::Admin/layout.html.twig" %}
{% block body -%} {% block admin_content %}
<h1>CustomFieldsGroup creation</h1> <h1>CustomFieldsGroup creation</h1>
{{ form(form) }} {{ form(form) }}

View File

@ -1,6 +1,22 @@
{% extends '::base.html.twig' %} {#
* Copyright (C) 2014, 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/>.
#}
{% extends "ChillMainBundle::Admin/layout.html.twig" %}
{% block body -%} {% block admin_content %}
<h1>CustomFieldsGroup</h1> <h1>CustomFieldsGroup</h1>
<table class="record_properties"> <table class="record_properties">