23 lines
2.5 KiB
HTML
23 lines
2.5 KiB
HTML
{% extends "base.html" %}{% block title %}Mein Bestand · Fil-A-Management{% endblock %}
|
|
{% block content %}<div class="page-heading"><div><p class="eyebrow">DEINE WERKSTATT</p><h1>Mein Filamentbestand</h1><p class="muted">Alles, was für dein nächstes Projekt bereitliegt. Nur für dich sichtbar.</p></div><a class="button" href="{% url 'inventory_add' %}">+ Filament hinzufügen</a></div>
|
|
<div class="stats">
|
|
<section class="stat">
|
|
<span>Rollen im Bestand</span><strong>{{ total }}</strong><small>dein persönlicher Vorrat</small>
|
|
</section>
|
|
<section class="stat">
|
|
<span>Filamentvarianten</span><strong>{{ items|length }}</strong><small>Farben und Ausführungen</small>
|
|
</section>
|
|
<section class="stat privacy">
|
|
<span>Privater Bereich</span><strong>Nur du.</strong><small>Dein Bestand wird nicht geteilt.</small>
|
|
</section>
|
|
</div>
|
|
<section class="panel">
|
|
<div class="panel-heading">
|
|
<h2>Dein Vorrat</h2>
|
|
<span class="badge">{{ items|length }} Position{{ items|length|pluralize:"en" }}</span>
|
|
</div>
|
|
{% if items %}<div class="table-wrap"><table><thead><tr><th>Stück</th><th>Hersteller</th><th>Produktart</th><th>Farbe</th><th>Spulenausführung</th><th><span class="sr-only">Aktionen</span></th></tr></thead><tbody>
|
|
{% for item in items %}<tr><td class="quantity">{{ item.quantity }}</td><td>{{ item.variant.manufacturer }}</td><td>{{ item.variant.product_type.name }}</td><td><strong>{{ item.variant.color }}</strong>{% if item.variant.manufacturer_color_code %}<small>{{ item.variant.manufacturer_color_code }}</small>{% endif %}</td><td><span class="badge">{{ item.variant.get_spool_type_display }}</span>{% if not item.variant.is_active %}<small class="warning">Deaktiviert</small>{% endif %}</td><td class="actions"><a href="/bestand/{{ item.pk }}/bearbeiten/">Ändern</a><a class="danger-link" href="/bestand/{{ item.pk }}/loeschen/">Entfernen</a></td></tr>{% endfor %}
|
|
</tbody></table></div>{% else %}<div class="empty"><span class="empty-icon" aria-hidden="true">◉</span><h3>Platz für dein erstes Filament</h3><p>Wähle eine Variante aus dem gemeinsamen Katalog und lege deinen Vorrat an.</p><a class="button" href="{% url 'inventory_add' %}">Filament auswählen</a></div>{% endif %}</section>
|
|
<p class="hint">Gut zu wissen: Fügst du dieselbe Variante erneut hinzu, zählen wir die Stückzahl automatisch hoch.</p>{% endblock %}
|