bootystrappy

This commit is contained in:
lubiana 2025-04-27 11:34:24 +02:00
parent 96b246462a
commit 321173dfe6
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
23 changed files with 9410 additions and 1027 deletions

View file

@ -3,30 +3,32 @@
{% block title %}New OrderItem{% endblock %}
{% block body %}
<h1>Create new OrderItem</h1>
<h1 class="mb-4">Create new OrderItem</h1>
{{ include('order_item/_form.html.twig') }}
<hr />
<hr class="my-4" />
{% if food_order.foodVendor.menuLink != '' %}
<a href="{{ food_order.foodVendor.menuLink }}" target="_blank">
External link to Menu
<a href="{{ food_order.foodVendor.menuLink }}" class="btn btn-info mb-3" target="_blank">
<i class="bi bi-link-45deg"></i> External link to Menu
</a>
{% endif %}
<div>
<b>click a button to select a given menuitem</b>
<div class="mb-3">
<b>Click a button to select a given menu item:</b>
</div>
<div>
<div class="mb-4">
{% for menuItem in menuItems %}
<a href="#" data-menu-item>{{ menuItem.name }}</a>
<a href="#" class="btn btn-outline-secondary me-2 mb-2" data-menu-item>{{ menuItem.name }}</a>
{% endfor %}
</div>
<hr />
<hr class="my-4" />
<a class="button" href="{{ path('app_food_order_show', { 'id': food_order.id}) }}">back to list</a>
<a class="btn btn-secondary" href="{{ path('app_food_order_show', { 'id': food_order.id}) }}">
<i class="bi bi-arrow-left"></i> Back to list
</a>
<script>
document.querySelectorAll('[data-menu-item]').forEach(function(element) {