This commit is contained in:
lubiana 2025-06-18 20:12:17 +02:00
parent c99032044d
commit 5cb66c5012
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
34 changed files with 1236 additions and 132 deletions

View file

@ -1,4 +1,4 @@
{{ form_start(form) }}
{{ form_widget(form) }}
<button class="btn">{{ button_label|default('Save') }}</button>
{{ form_start(form, {'attr': {'class': 'mb-3'}}) }}
{{ form_widget(form, {'attr': {'class': 'form-control'}}) }}
<button class="btn btn-primary mt-2">{{ button_label|default('Save') }}</button>
{{ form_end(form) }}

View file

@ -3,9 +3,11 @@
{% block title %}Edit FoodVendor{% endblock %}
{% block body %}
<h1>Edit FoodVendor</h1>
<h1 class="mb-4">Edit FoodVendor</h1>
{{ include('food_vendor/_form.html.twig', {'button_label': 'Update'}) }}
<div class="mb-4">
{{ include('food_vendor/_form.html.twig', {'button_label': 'Update'}) }}
</div>
<a href="{{ path('app_food_vendor_index') }}">back to list</a>
<a class="btn btn-secondary" href="{{ path('app_food_vendor_index') }}">back to list</a>
{% endblock %}

View file

@ -3,10 +3,10 @@
{% block title %}FoodVendor index{% endblock %}
{% block body %}
<h1>FoodVendor index</h1>
<h1 class="mb-4">FoodVendor index</h1>
<table class="table">
<thead>
<table class="table table-striped table-hover">
<thead class="table-light">
<tr>
<th>Name</th>
<th>actions</th>
@ -17,17 +17,17 @@
<tr>
<td>{{ food_vendor.name }}</td>
<td>
<a href="{{ path('app_food_vendor_show', {'id': food_vendor.id}) }}">show</a>
<a href="{{ path('app_food_vendor_edit', {'id': food_vendor.id}) }}">edit</a>
<a class="btn btn-sm btn-outline-info me-1" href="{{ path('app_food_vendor_show', {'id': food_vendor.id}) }}">show</a>
<a class="btn btn-sm btn-outline-primary" href="{{ path('app_food_vendor_edit', {'id': food_vendor.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="3">no records found</td>
<td colspan="3" class="text-center text-muted">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_food_vendor_new') }}">Create new</a>
<a class="btn btn-primary" href="{{ path('app_food_vendor_new') }}">Create new</a>
{% endblock %}

View file

@ -3,9 +3,11 @@
{% block title %}New FoodVendor{% endblock %}
{% block body %}
<h1>Create new FoodVendor</h1>
<h1 class="mb-4">Create new FoodVendor</h1>
{{ include('food_vendor/_form.html.twig') }}
<div class="mb-4">
{{ include('food_vendor/_form.html.twig') }}
</div>
<a href="{{ path('app_food_vendor_index') }}">back to list</a>
<a class="btn btn-secondary" href="{{ path('app_food_vendor_index') }}">back to list</a>
{% endblock %}

View file

@ -3,9 +3,9 @@
{% block title %}FoodVendor{% endblock %}
{% block body %}
<h1>FoodVendor</h1>
<h1 class="mb-4">FoodVendor</h1>
<table class="table">
<table class="table table-bordered w-auto">
<tbody>
<tr>
<th>Name</th>
@ -18,23 +18,22 @@
</tbody>
</table>
<section>
<section class="mb-4">
<h2>known menuitems</h2>
<ul>
<ul class="list-group list-group-flush">
{% for item in food_vendor.menuItems %}
<li>
<li class="list-group-item">
<a href="{{ path('app_menu_item_show', {'id': item.id}) }}">{{ item.name }}</a>
{% if(item.aliasOf) %}
(alias of: {{ item.aliasOf.name }})
<span class="text-muted">(alias of: {{ item.aliasOf.name }})</span>
{% endif %}
</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>
<div class="d-flex gap-2">
<a class="btn btn-secondary" href="{{ path('app_food_vendor_index') }}">back to list</a>
<a class="btn btn-primary" href="{{ path('app_food_vendor_edit', {'id': food_vendor.id}) }}">edit</a>
</div>
{% endblock %}