Files

15 lines
1.2 KiB
HTML

<p>Aktueller Bestand: <strong data-consume-count>{{ item.quantity }}</strong>. Eine Rolle wird abgezogen.</p>
<form method="post" data-consume-form>
{% csrf_token %}
<input type="hidden" name="quantity" value="{{ item.quantity|default:'' }}">
<div class="discard-spool-option" data-discard-spool{% if item.spool_type != "spool" %} hidden{% endif %}>
<label class="sharing-option"><input type="checkbox" name="discard_spool" value="1"{% if item.spool_type != "spool" %} disabled{% endif %}> Leerrolle wegwerfen</label>
</div>
<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.reorder_variant %}disabled{% endif %}>Neue Spule in die Bestellung legen</button>
</div>
<p class="hint" data-inactive-note {% if not item or item.reorder_variant %}hidden{% endif %}>Für dieses Filament ist keine bestellbare Variante verfügbar.</p>
<p class="hint" data-reorder-note {% if not item.reorder_spool_note %}hidden{% endif %}>{{ item.reorder_spool_note }}</p>
</form>