get ready

This commit is contained in:
lubiana 2025-06-11 20:28:45 +02:00
parent ca9819a436
commit 6b0a478ca5
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
16 changed files with 395 additions and 124 deletions

View file

@ -0,0 +1,49 @@
{% extends 'base.html.twig' %}
{% block title %}Bulk Edit Drink Type Wanted Stock{% endblock %}
{% block body %}
<div class="container mt-4">
<h1>Bulk Edit Drink Type Wanted Stock</h1>
{% for message in app.flashes('success') %}
<div class="alert alert-success alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
</div>
{% endfor %}
{{ form_start(form) }}
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Drink Type</th>
<th>Wanted Stock</th>
</tr>
</thead>
<tbody>
{% for drinkTypeForm in form.drinkTypes %}
<tr>
<td>
{{ form_widget(drinkTypeForm.id) }}
{{ form_widget(drinkTypeForm.name) }}
</td>
<td>
{{ form_widget(drinkTypeForm.wantedStock) }}
{{ form_errors(drinkTypeForm.wantedStock) }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="mt-3">
{{ form_widget(form.save) }}
</div>
{{ form_end(form) }}
</div>
{% endblock %}