33 lines
1.7 KiB
HTML
33 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
||
{% block title %}{% if undo %}Übergabe rückgängig machen{% else %}Übergabe bestätigen{% endif %} · Fil-A-Management{% endblock %}
|
||
{% block content %}
|
||
<div class="page-heading">
|
||
<h1>{% if undo %}Übergabe rückgängig machen{% else %}Übergabe bestätigen{% endif %}</h1>
|
||
</div>
|
||
<section class="panel form-panel">
|
||
<p><strong>{{ entry.quantity }} × {{ entry.variant }}</strong>{% if not undo %} offen{% endif %}</p>
|
||
{% if entry.variant.manufacturer_color_code %}<p>Artikelnr. {{ entry.variant.manufacturer_color_code }}</p>{% endif %}
|
||
{% if undo %}
|
||
<p>Die Menge wird vom Bestand von <strong>{{ entry.owner.username }}</strong> abgezogen und kommt zurück in die Sammelbestellung.</p>
|
||
{% else %}
|
||
<p>Die ausgewählte Menge wird dem Bestand von <strong>{{ entry.owner.username }}</strong> gutgeschrieben. Der Rest bleibt in der Sammelbestellung.</p>
|
||
{% endif %}
|
||
<form method="post">
|
||
{% csrf_token %}
|
||
{{ form.non_field_errors }}
|
||
{% for field in form %}
|
||
{% if field.name != "handover_quantity" %}{{ field.as_hidden }}{{ field.errors }}{% endif %}
|
||
{% endfor %}
|
||
{% if form.handover_quantity %}
|
||
<div class="field handover-quantity">
|
||
{{ form.handover_quantity.label_tag }}{{ form.handover_quantity }}{{ form.handover_quantity.errors }}
|
||
</div>
|
||
{% endif %}
|
||
<div class="form-actions">
|
||
<button class="button" type="submit">{% if undo %}Rückbuchung bestätigen{% else %}Übergabe bestätigen und einbuchen{% endif %}</button>
|
||
<a class="button secondary" href="{% if undo %}{% url 'order_history' %}{% else %}{% url 'orders' %}{% endif %}">Abbrechen</a>
|
||
</div>
|
||
</form>
|
||
</section>
|
||
{% endblock %}
|