Files

47 lines
2.6 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends "base.html" %}
{% block title %}{{ status.label }} · Fil-A-Management{% endblock %}
{% block content %}
<div class="page-heading">
<h1>{% if status == "handed_over" %}Sammelübergabe bestätigen{% else %}Bestellstatus ändern{% endif %}</h1>
</div>
<section class="panel form-panel">
<p>{% if owner %}<strong>{{ owner.username }}</strong> · {% endif %}{{ status.label }} · {{ total }} Rolle{{ total|pluralize:"n" }} zur Auswahl</p>
{% if status == "handed_over" %}<p>Die ausgewählten Rollen werden {% if owner %}in den Bestand von {{ owner.username }}{% else %}in die jeweiligen Bestände{% endif %} eingebucht.</p>{% endif %}
<form method="post">
{% csrf_token %}
<input type="hidden" name="status" value="{{ status }}">
<input type="hidden" name="snapshot" value="{{ snapshot }}">
<input type="hidden" name="confirmation" value="{{ confirmation }}">
<fieldset class="order-selection">
<legend>Positionen auswählen</legend>
{% for entry in entries %}
{% with catalog=entry.catalog_details %}
<div class="order-selection-item">
<label><input name="entry_ids" type="checkbox" value="{{ entry.pk }}" checked>
<span>{% if not owner %}<strong>{{ entry.owner.username }}</strong> · {% endif %}{{ entry.quantity }} × {{ catalog.manufacturer }} · {{ catalog.product }} · {{ catalog.color }}
{% if status == "ordered" %}
· Gewünscht: {{ entry.requested_spool_label }}
{% else %}
· {{ catalog.spool }}{% if catalog.article_number %} · {{ catalog.article_number }}{% endif %}
{% endif %}
{% if entry.ordered_at %}<small>Bestellt am {{ entry.ordered_at|date:"d.m.Y, H:i" }} Uhr</small>{% endif %}
</span>
</label>
{% if status == "ordered" %}
{% if entry.default_order_variant.spool_type != entry.requested_spool_type %}
<small>Verfügbare Alternative: {{ entry.default_order_variant.get_spool_type_display }}</small>
{% endif %}
{% include "filament/order_spool_choice.html" with entry=entry bulk=True only %}
{% endif %}
</div>
{% endwith %}
{% endfor %}
</fieldset>
<div class="form-actions">
<button class="button" type="submit">{% if status == "handed_over" %}Übergabe bestätigen und einbuchen{% else %}Status bestätigen{% endif %}</button>
<a class="button secondary" href="{{ back_url }}">Abbrechen</a>
</div>
</form>
</section>
{% endblock %}