mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 00:53:48 +00:00
clean code of usnused methods
This commit is contained in:
@@ -8,19 +8,6 @@ customfield_section:
|
||||
label: "Custom fields configuration"
|
||||
icons: ['asterisk']
|
||||
|
||||
customfield:
|
||||
path: /{_locale}/admin/customfield/list
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:index" }
|
||||
options:
|
||||
menus:
|
||||
admin_custom_fields:
|
||||
order: 1000
|
||||
label: "CustomFields List"
|
||||
|
||||
customfield_show:
|
||||
path: /{_locale}/admin/customfield/{id}/show
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:show" }
|
||||
|
||||
customfield_new:
|
||||
path: /{_locale}/admin/customfield/new
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:new" }
|
||||
@@ -38,8 +25,3 @@ customfield_update:
|
||||
path: /{_locale}/admin/customfield/{id}/update
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:update" }
|
||||
requirements: { _method: post|put }
|
||||
|
||||
customfield_delete:
|
||||
path: /{_locale}/admin/customfield/{id}/delete
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:delete" }
|
||||
requirements: { _method: post|delete }
|
||||
|
@@ -1,66 +0,0 @@
|
||||
{#
|
||||
* 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 "ChillCustomFieldsBundle::Admin/layout.html.twig" %}
|
||||
|
||||
{% block admin_content %}
|
||||
<h1>CustomField list</h1>
|
||||
|
||||
<table class="records_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Label</th>
|
||||
<th>Type</th>
|
||||
<th>Active</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for entity in entities %}
|
||||
<tr>
|
||||
<td><a href="{{ path('customfield_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
|
||||
<td>{{ entity.name(app.request.locale) }}</td>
|
||||
<td>{{ entity.type }}</td>
|
||||
<td>{{ entity.active }}</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="{{ path('customfield_show', { 'id': entity.id }) }}">show</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ path('customfield_edit', { 'id': entity.id }) }}">edit</a>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
{{ form_start(form) }}
|
||||
|
||||
{{ form_row(form) }}
|
||||
<button type="submit">
|
||||
Create a new entry
|
||||
</button>
|
||||
|
||||
{{ form_end(form) }}
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user