Files
cabinet/templates/category_page/index.html.twig
T
2026-05-28 12:09:28 +03:00

38 lines
1.1 KiB
Twig

{% extends 'admin_base.html.twig' %}
{% block title %}CategoryPage index{% endblock %}
{% block body %}
<h1>CategoryPage index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Active</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for category_page in category_pages %}
<tr>
<td>{{ category_page.id }}</td>
<td>{{ category_page.name }}</td>
<td>{{ category_page.active ? 'Yes' : 'No' }}</td>
<td>
<a href="{{ path('category_page_show', {'id': category_page.id}) }}">show</a>
<a href="{{ path('category_page_edit', {'id': category_page.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('category_page_new') }}">Create new</a>
{% endblock %}