35 lines
1.8 KiB
HTML
35 lines
1.8 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">
|
||
{% with catalog=entry.catalog_details %}
|
||
<p><strong>{{ entry.quantity }} × {{ catalog.manufacturer }} · {{ catalog.product }} · {{ catalog.color }} · {{ catalog.spool }}</strong></p>
|
||
{% if catalog.article_number %}<p>Artikelnr. {{ catalog.article_number }}</p>{% endif %}
|
||
{% endwith %}
|
||
{% 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 %}
|