mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
* reset admin vertical menu custom styles * disable icons in admin vertical menu * fix main content positioning in admin section * fix table appearance in admin crud template * new scope/center form: move submit button in record_action sticky area * edit scope/center form: move submit button in record_action sticky area * improve homogeneity in admin index pages: centers/scopes/users/jobs * remove centered div old tags
51 lines
1.7 KiB
Twig
51 lines
1.7 KiB
Twig
{% extends '@ChillMain/CRUD/Admin/index.html.twig' %}
|
|
|
|
{% block title %}{{ 'Center list'|trans }}{% endblock %}
|
|
|
|
{% block admin_content -%}
|
|
{% embed '@ChillMain/CRUD/_index.html.twig' %}
|
|
|
|
{% block index_header %}
|
|
<h1>{{ 'Center list'|trans }}</h1>
|
|
{% endblock %}
|
|
|
|
{% block filter_order %}{% endblock %}
|
|
|
|
{% block table_entities_thead_tr %}
|
|
<th>id</th>
|
|
<th>{{ 'Name'|trans }}</th>
|
|
<th>{{ 'Actions'|trans }}</th>
|
|
{% endblock %}
|
|
|
|
{% block table_entities_tbody %}
|
|
{% for entity in entities %}
|
|
<tr>
|
|
<td>{{ entity.id }}</td>
|
|
<td>{{ entity.name }}</td>
|
|
<td>
|
|
<ul class="record_actions">
|
|
<li>
|
|
<a href="{{ path('admin_center_edit', { 'id': entity.id }) }}" class="btn btn-edit">{{ 'edit'|trans }}</a>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
|
|
{% block pagination %}{% endblock %}
|
|
|
|
{% block list_actions %}
|
|
<ul class="record_actions sticky-form-buttons">
|
|
<li class='cancel'>
|
|
<a href="{{ path('chill_main_admin_central') }}" class="btn btn-cancel">{{'Back to the admin'|trans}}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ path('admin_center_new') }}" class="btn btn-create">{{ 'Create a new center'|trans }}</a>
|
|
</li>
|
|
</ul>
|
|
{% endblock list_actions %}
|
|
|
|
{% endembed %}
|
|
{% endblock %}
|