23 lines
2.5 KiB
HTML
23 lines
2.5 KiB
HTML
{% extends "base.html" %}{% block title %}Sammelbestellung · Fil-A-Management{% endblock %}{% block content %}
|
||
<div class="page-heading"><div><p class="eyebrow">GEMEINSAM MEHR MÖGLICH MACHEN</p><h1>Die nächste Sammelbestellung</h1><p class="muted">Eure Wünsche an einem Ort. Jede Rolle zählt.</p></div><a class="button" href="{% url 'order_add' %}">+ Bestellwunsch hinzufügen</a></div>
|
||
<div class="stats">
|
||
<section class="stat">
|
||
<span>Rollen insgesamt</span><strong>{{ total }}</strong><small>für eure nächste Bestellung</small>
|
||
</section>
|
||
<section class="stat">
|
||
<span>Verschiedene Varianten</span><strong>{{ groups|length }}</strong><small>Spule und Refill getrennt</small>
|
||
</section>
|
||
<section class="stat privacy">
|
||
<span>Gemeinsame Liste</span><strong>Für alle.</strong><small>Du verwaltest nur deine Wünsche.</small>
|
||
</section>
|
||
</div>
|
||
<div class="notice">Dies ist eure Planungsliste – es wird keine Bestellung bei Bambu Lab ausgelöst.</div>
|
||
<section class="panel">
|
||
<div class="panel-heading">
|
||
<h2>Eure Bestellübersicht</h2>
|
||
<span class="badge">Nächste Sammelbestellung</span>
|
||
</div>
|
||
{% if groups %}<div class="table-wrap"><table><thead><tr><th>Gesamt</th><th>Filamentvariante</th><th>Spulenausführung</th><th>Aufteilung nach Personen</th></tr></thead><tbody>
|
||
{% for group in groups %}<tr><td class="quantity">{{ group.total }}</td><td><strong>{{ group.variant.color }}</strong><small>{{ group.variant.manufacturer }} · {{ group.variant.product_type.name }}{% if group.variant.manufacturer_color_code %} · {{ group.variant.manufacturer_color_code }}{% endif %}</small></td><td><span class="badge">{{ group.variant.get_spool_type_display }}</span>{% if not group.variant.is_active %}<small class="warning">Deaktiviert · bestehender Wunsch</small>{% endif %}</td><td>{% for entry in group.entries %}<div class="person">{{ entry.owner.username }}: <strong>{{ entry.quantity }}</strong>{% if entry.owner_id == user.pk %}<span class="actions"> · <a href="{% url 'order_edit' entry.pk %}">Ändern</a> · <a class="danger-link" href="{% url 'order_delete' entry.pk %}">Entfernen</a></span>{% endif %}</div>{% endfor %}</td></tr>{% endfor %}
|
||
</tbody></table></div>{% else %}<div class="empty"><span class="empty-icon" aria-hidden="true">↗</span><h3>Was fehlt für dein nächstes Projekt?</h3><p>Füge deinen ersten Wunsch hinzu. Die anderen sehen ihn und können sich anschließen.</p><a class="button" href="{% url 'order_add' %}">Bestellwunsch auswählen</a></div>{% endif %}</section>{% endblock %}
|