futtern/templates/menu_item/show.html.twig

33 lines
840 B
Twig
Raw Normal View History

2024-07-29 13:04:57 +02:00
{% extends 'base.html.twig' %}
{% block title %}MenuItem{% endblock %}
{% block body %}
<h1>MenuItem</h1>
<table class="table">
<tbody>
<tr>
<th>Id</th>
<td>{{ menu_item.id }}</td>
</tr>
<tr>
<th>Name</th>
<td>{{ menu_item.name }}</td>
</tr>
2025-01-25 02:14:39 +01:00
{% if(menu_item.aliasOf) %}
<tr>
<th>Alias of</th>
<td>{{ menu_item.aliasOf.name }}</td>
</tr>
{% endif %}
2024-07-29 13:04:57 +02:00
</tbody>
</table>
<a href="{{ path('app_food_vendor_show', { 'id': menu_item.foodVendor.id}) }}">back to list</a>
<a href="{{ path('app_menu_item_edit', {'id': menu_item.id}) }}">edit</a>
{{ include('menu_item/_delete_form.html.twig') }}
{% endblock %}