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

3 lines
1.6 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 %}Filamentkatalog · Fil-A-Management{% endblock %}{% block content %}<div class="page-heading"><div><p class="eyebrow">EINE AUSWAHL FÜR EUCH ALLE</p><h1>Der Filamentkatalog</h1><p class="muted">Eure aktiven Varianten. Vom Admin gepflegt, für alle verfügbar.</p></div>{% if user.is_superuser %}<a class="button secondary" href="/admin/filament/variant/">Katalog verwalten</a>{% endif %}</div>
<section class="panel"><div class="panel-heading"><h2>Verfügbare Filamente</h2><span class="badge">{{ variants|length }} Varianten</span></div>{% if variants %}<div class="table-wrap"><table><thead><tr><th>Hersteller</th><th>Produktart</th><th>Farbe</th><th>Spulenausführung</th><th>Nettogewicht</th><th>Durchmesser</th></tr></thead><tbody>{% for variant in variants %}<tr><td>{{ variant.manufacturer }}</td><td>{{ variant.product_type.name }}</td><td><strong>{{ variant.color_label }}</strong>{% if variant.manufacturer_color_code %}<small>{{ variant.manufacturer_color_code }}</small>{% endif %}</td><td><span class="badge">{{ variant.get_spool_type_display }}</span></td><td>{% if variant.net_weight_g %}{{ variant.net_weight_g }} g{% else %}–{% endif %}</td><td>{% if variant.diameter_mm %}{{ variant.diameter_mm }} mm{% else %}–{% endif %}</td></tr>{% endfor %}</tbody></table></div>{% else %}<div class="empty"><h3>Der Katalog ist noch leer</h3><p>Dein Admin kann Filamentvarianten anlegen oder den Beispielkatalog laden.</p></div>{% endif %}</section><p class="hint">Vorhandene Bestands- und Bestellpositionen bleiben auch dann erhalten, wenn eine Variante deaktiviert wird.</p>{% endblock %}