better readable forms
All checks were successful
/ ls (pull_request) Successful in 1m38s
/ ls (push) Successful in 1m34s

This commit is contained in:
lubiana 2025-07-07 18:22:30 +02:00
parent 547b1842bf
commit 994d837de9
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
5 changed files with 29 additions and 9 deletions

View file

@ -20,16 +20,27 @@
<section class="mb-4">
<h2>known menuitems</h2>
<ul class="list-group list-group-flush">
<table class="table table-bordered w-auto">
<thead>
<tr>
<th>name</th>
<th>price</th>
</tr>
</thead>
<tbody>
{% for item in food_vendor.menuItems %}
<li class="list-group-item">
<tr class="menu-item">
<td>
<a href="{{ path('app_menu_item_show', {'id': item.id}) }}">{{ item.name }}</a>
{% if(item.aliasOf) %}
<span class="text-muted">(alias of: {{ item.aliasOf.name }})</span>
{% endif %}
</li>
</td>
<td>{{ (item.priceCents / 100)|format_currency('EUR') }}</td>
</tr>
{% endfor %}
</ul>
</tbody>
</table>
</section>
<div class="d-flex gap-2">