Files
Fil-A-Management/templates/filament/inventory.html
T

33 lines
2.7 KiB
HTML
Raw 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 %}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 title="Hersteller-Farbcode">Artikelnr.</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><div class="variant-preview">{% include "filament/variant_thumbnail.html" with variant=item.variant only %}<strong>{{ item.variant.color }}</strong></div></td>
<td class="article-number">{{ item.variant.manufacturer_color_code|default:"–" }}</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 %}