testitest

This commit is contained in:
lubiana 2025-06-08 21:22:26 +02:00
parent 43ca79f650
commit 66c4c1fe4f
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
30 changed files with 4443 additions and 184 deletions

View file

@ -5,6 +5,35 @@
{% block body %}
<div class="container">
<h1>Drink Inventory</h1>
{% if low is not same as([]) %}
<div class="card">
<div class="card-header">
<h5 class="card-title">Low Stock Alert</h5>
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>Drink Name</th>
<th>Current Stock</th>
<th>Desired Stock</th>
<th>Status</th>
</tr>
</thead>
<tbody>
{% for lowStock in low %}
<tr>
<td>{{ lowStock.record.drinkType.name }}</td>
<td>{{ lowStock.record.quantity }}</td>
<td>{{ lowStock.record.drinkType.desiredStock }}</td>
<td>{{ lowStock.stock.value|capitalize }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
<div class="card">
<div class="card-header">
<h5 class="card-title">Drink Inventory Overview</h5>
@ -17,7 +46,7 @@
<th>Current Stock</th>
<th>Desired Stock</th>
<th>Status</th>
<th>Description</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
@ -35,7 +64,6 @@
<td>{{ drinkStock.record.quantity }}</td>
<td>{{ drinkStock.record.drinkType.desiredStock }}</td>
<td>{{ drinkStock.stock.value|capitalize }}</td>
<td>{{ drinkStock.record.drinkType.description }}</td>
</tr>
{% endfor %}
</tbody>