saufen/templates/index.html.twig
lubiana 476f91f7cf
All checks were successful
/ ls (pull_request) Successful in 1m26s
/ ls (release) Successful in 51s
/ ls (push) Successful in 1m23s
emojis
2025-06-16 20:20:22 +02:00

89 lines
4.6 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}🍻🍺🥃🍷🍸🍹🥂🍾💃🕺🎉🎊✨ INVENTORY OVERVIEW!!! 🎈🎁🎀🎂🍰🧁🍭🍬🍫🍩🍪🎪🎨🎭🎪🎯🎲🎰🎊🎉{% endblock %}
{% block body %}
<div class="container">
<h1>
DRINK INVENTORY
<span class="emoji-normal">💦</span>
<span class="emoji-enhanced">💦🍑🍆</span>
<span class="emoji-bonkers">💦🍑🍆👅💋😈🏳️‍🌈✨🥵😳🤤😍🥴💕💗💘💝💞💟💌💏💑</span>
</h1>
{% if lowStock != [] %}
<div class="card">
<div class="card-header bg-danger">
<h5 class="card-title">🚨🔥💀⚠️🆘🚨 LOW STOCK ALERT!!! 🚨🔥💀⚠️🆘🚨</h5>
</div>
<div class="card-body">
<ul>
{% for drinkType in lowStock %}
<li>🍻 {{ drinkType.name }} ({{ drinkType.currentStock }} / {{ drinkType.wantedStock }}) 🍻</li>
{% endfor %}
</ul>
{% if orders == [] %}
<a href="{{ path('app_drink_type_bulk_edit_wanted_stock', {'from_order': 'true'}) }}" class="btn btn-primary">🛒🛍️💳💰✨ CREATE NEW ORDER!!! 🎉🎊🎈🎁🎀🎂🍰🧁🍭🍬🍫🍩🍪</a>
{% else %}
<p>🔥💯 There are already orders planned: 🎯🎪🎨🎭</p>
<ul>
{% for order in orders %}
<li>
<a href="{{ path("app_order_show", {'id': order.id}) }}">
🛒 {{ order.id }} - {{ order.status.value }} 🛒
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endif %}
<div class="card mt-3">
<div class="card-header">
<h5 class="card-title">🍻🍺🥃🍷🍸🍹🥂🍾 DRINK INVENTORY OVERVIEW!!! 🎉🎊✨💃🕺🎈🎁🎀🎂🍰🧁🍭🍬🍫🍩🍪</h5>
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>
DRINK NAME
<span class="emoji-normal">🍑</span>
<span class="emoji-enhanced">🍑🍆💋</span>
<span class="emoji-bonkers">🍑🍆💋👅😈🏳️‍🌈✨🥵😳🤤😍🥴💕💗💘💝💞💟💌💏💑</span>
</th>
<th>📝✨ DESCRIPTION!!! 💖💕</th>
<th>📊💯 CURRENT STOCK!!! 🔥📈</th>
<th>🎯💰 WANTED STOCK!!! ⭐✨</th>
<th>🎮🎪 ACTIONS!!! 🚀💫</th>
</tr>
</thead>
<tbody>
{% for drinkType in drinkTypes %}
<tr>
<td>
<a href="{{ path('app_drink_type_show', {'id': drinkType.id}) }}">🍻 {{ drinkType.name }} 🍻</a>
</td>
<td>✨ {{ drinkType.description }} ✨</td>
<td>📊 {{ drinkType.currentStock }} 📊</td>
<td>🎯 {{ drinkType.wantedStock }} 🎯</td>
<td>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="mt-3">
<a href="{{ path('app_drink_type_index') }}" class="btn btn-primary">
VIEW ALL DRINKS
<span class="emoji-normal">🍆</span>
<span class="emoji-enhanced">🍆💦🍑</span>
<span class="emoji-bonkers">🍆💦🍑👅💋😈🏳️‍🌈✨🥵😳🤤😍🥴💕💗💘💝💞💟💌💏💑</span>
</a>
<a href="{{ path('app_drink_type_bulk_edit_stock') }}" class="btn btn-secondary">📊🔥 MASS UPDATE CURRENT STOCK!!! 💯⚡🚀💫⭐✨</a>
<a href="{{ path('app_drink_type_bulk_edit_wanted_stock') }}" class="btn btn-secondary">🎯💰 MASS UPDATE WANTED STOCK!!! 🛒🛍️💳🎪🎨🎭</a>
</div>
</div>
</div>
</div>
{% endblock %}