add menuitem aliases
All checks were successful
/ ls (pull_request) Successful in 2m42s
/ ls (release) Successful in 50s
/ ls (push) Successful in 2m27s

This commit is contained in:
lubiana 2025-01-25 02:14:39 +01:00
parent 70b39515ec
commit 9781bd561f
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
13 changed files with 713 additions and 212 deletions

View file

@ -24,6 +24,9 @@
{% for item in food_vendor.menuItems %}
<li>
<a href="{{ path('app_menu_item_show', {'id': item.id}) }}">{{ item.name }}</a>
{% if(item.aliasOf) %}
(alias of: {{ item.aliasOf.name }})
{% endif %}
</li>
{% endfor %}
</ul>

View file

@ -15,6 +15,12 @@
<th>Name</th>
<td>{{ menu_item.name }}</td>
</tr>
{% if(menu_item.aliasOf) %}
<tr>
<th>Alias of</th>
<td>{{ menu_item.aliasOf.name }}</td>
</tr>
{% endif %}
</tbody>
</table>