futtern/templates/food_vendor/show.html.twig
lubiana 56206acd8a
All checks were successful
/ ls (pull_request) Successful in 38s
/ ls (push) Successful in 37s
/ ls (release) Successful in 25s
#37 add external link to foodvendor
2024-08-16 21:52:53 +02:00

37 lines
954 B
Twig

{% 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>
<tr>
<th>Menu</th>
<td><a href="{{ food_vendor.menuLink }}" target="_blank">{{ food_vendor.menuLink }}</a></td>
</tr>
</tbody>
</table>
<section>
<h2>known menuitems</h2>
<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>
<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 %}