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

67 lines
3.0 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 %}Leerrollen · Fil-A-Management{% endblock %}
{% block content %}
<div class="page-heading">
<div><h1>Mein Bestand</h1></div>
<a class="button" href="{% url 'empty_spool_add' %}">+ Leerrolle hinzufügen</a>
</div>
{% include "filament/inventory_tabs.html" with active="spools" empty_count=quantity only %}
<section class="panel" aria-labelledby="spool-stock-title">
<div class="panel-heading stock-panel-heading">
<h2 id="spool-stock-title">Deine Spulen</h2>
<div class="spool-totals">
<span class="badge">{{ quantity }} frei</span>
<span class="badge">{{ in_use }} in Benutzung</span>
<span class="badge">{{ total }} gesamt</span>
</div>
</div>
<div class="table-wrap">
<table class="inventory-table">
<thead>
<tr>
<th scope="col">Spule</th>
<th scope="col">Filament</th>
<th scope="col">Farbe</th>
<th scope="col">Status</th>
<th scope="col">Stück</th>
<th scope="col"><span class="sr-only">Aktionen</span></th>
</tr>
</thead>
<tbody>
{% for spool in free %}
<tr class="spool-row--free">
<td>{{ spool.brand_name }}</td>
<td>–</td>
<td>–</td>
<td><span class="badge">Frei</span></td>
<td class="quantity">1</td>
<td>
<div class="actions">
<a href="{% url 'empty_spool_assign' spool.pk %}" aria-label="Leerrolle {{ spool.pk }} zuweisen">Zuweisen</a>
<a class="danger-link" href="{% url 'empty_spool_discard' spool.pk %}" aria-label="Leerrolle {{ spool.pk }} wegwerfen">Wegwerfen</a>
</div>
</td>
</tr>
{% endfor %}
{% for item in mounted %}
<tr class="spool-row--in-use">
<td>{% if item.bambu_spool %}Bambu Lab{% else %}Andere Spule{% endif %}</td>
<td>{{ item.variant.product_type }}</td>
<td><div class="variant-preview">
{% include "filament/variant_thumbnail.html" with variant=item.variant only %}
<strong>{{ item.variant.color_label }}</strong>
</div></td>
<td><span class="badge">In Benutzung</span></td>
<td class="quantity">{{ item.quantity }}</td>
<td></td>
</tr>
{% endfor %}
{% if not free and not mounted %}
<tr><td colspan="6">Du hast noch keine Spulen im Bestand.</td></tr>
{% endif %}
</tbody>
</table>
</div>
</section>
{% endblock %}