Files
Fil-A-Management/templates/filament/consume_options.html
T

13 lines
1.0 KiB
HTML

<p>Aktueller Bestand: <strong data-consume-count>{{ item.quantity }}</strong>. Eine Rolle wird abgezogen.</p>
<p data-return-spool-note{% if not item.bambu_spool %} hidden{% endif %}>Eine Bambu-Lab-Leerrolle wird zurückgebucht.</p>
<form method="post" data-consume-form>
{% csrf_token %}
<input type="hidden" name="quantity" value="{{ item.quantity|default:'' }}">
<div class="consume-options">
<button class="button secondary" type="submit" name="action" value="consume" autofocus>Keine neue Bestellung</button>
<button class="button" type="submit" name="action" value="reorder" {% if item and not item.variant.is_active %}disabled{% endif %}>Neue Spule in die Bestellung legen</button>
</div>
<p class="hint" data-inactive-note {% if not item or item.variant.is_active %}hidden{% endif %}>Diese Variante ist deaktiviert und kann aktuell nicht bestellt werden.</p>
<p class="hint" data-reorder-note {% if not item.reorder_spool_note %}hidden{% endif %}>{{ item.reorder_spool_note }}</p>
</form>