futtern/templates/food_vendor/show.html.twig

38 lines
954 B
Twig
Raw Permalink Normal View History

2024-06-10 18:22:44 +00:00
{% extends 'base.html.twig' %}
{% block title %}FoodVendor{% endblock %}
{% block body %}
<h1>FoodVendor</h1>
<table class="table">
<tbody>
<tr>
<th>Name</th>
<td>{{ food_vendor.name }}</td>
</tr>
2024-08-16 19:52:53 +00:00
<tr>
<th>Menu</th>
<td><a href="{{ food_vendor.menuLink }}" target="_blank">{{ food_vendor.menuLink }}</a></td>
</tr>
2024-06-10 18:22:44 +00:00
</tbody>
</table>
<section>
<h2>known menuitems</h2>
2024-07-29 11:04:57 +00:00
<ul>
{% for item in food_vendor.menuItems %}
<li>
<a href="{{ path('app_menu_item_show', {'id': item.id}) }}">{{ item.name }}</a>
</li>
{% endfor %}
</ul>
</section>
2024-06-10 18:22:44 +00:00
<a href="{{ path('app_food_vendor_index') }}">back to list</a>
<a href="{{ path('app_food_vendor_edit', {'id': food_vendor.id}) }}">edit</a>
{% endblock %}