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

28 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% block title %}Auf Leerrolle aufziehen · Fil-A-Management{% endblock %}
{% block content %}
<a class="back-link" href="{% url 'inventory' %}">← Zurück zum Bestand</a>
<div class="page-heading">
<div><h1>Auf Leerrolle aufziehen</h1><p class="muted">{{ item.stock_description }}</p></div>
</div>
<section class="panel form-panel">
<p>Die gewählte Leerrolle wird deinem Filament zugeordnet. Das Filament erscheint anschließend im Bestand <strong>Mit Spule</strong>.</p>
<p>Verfügbare Leerrollen <strong>{{ empty_count }}</strong></p>
<form method="post">
{% csrf_token %}{{ form.quantity }}{{ form.quantity.errors }}{{ form.non_field_errors }}
{% if empty_count %}
<div class="field">{{ form.spool.label_tag }}{{ form.spool }}{{ form.spool.errors }}</div>
{% endif %}
<div class="form-actions">
{% if empty_count %}
<button class="button" type="submit">Eine Rolle aufziehen</button>
{% else %}
{{ form.spool.errors }}
<a class="button" href="{% url 'empty_spool_add' %}">Leerrolle hinzufügen</a>
{% endif %}
<a class="button secondary" href="{% url 'inventory' %}">Abbrechen</a>
</div>
</form>
</section>
{% endblock %}