futtern/templates/menu_item/index.html.twig
2025-06-18 20:12:17 +02:00

35 lines
1.1 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}MenuItem index{% endblock %}
{% block body %}
<h1 class="mb-4">MenuItem index</h1>
<table class="table table-striped table-hover">
<thead class="table-light">
<tr>
<th>Id</th>
<th>Name</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for menu_item in menu_items %}
<tr>
<td>{{ menu_item.id }}</td>
<td>{{ menu_item.name }}</td>
<td>
<a class="btn btn-sm btn-outline-info me-1" href="{{ path('app_menu_item_show', {'id': menu_item.id}) }}">show</a>
<a class="btn btn-sm btn-outline-primary" href="{{ path('app_menu_item_edit', {'id': menu_item.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="3" class="text-center text-muted">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a class="btn btn-primary" href="{{ path('app_menu_item_new') }}">Create new</a>
{% endblock %}