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

64 lines
2.8 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>
</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 · {{ bambu_total }} Bambu Lab</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>
</tr>
</thead>
<tbody>
<tr>
<td>Bambu Lab</td>
<td>–</td>
<td>–</td>
<td><span class="badge">Frei</span></td>
<td class="quantity">{{ quantity }}</td>
</tr>
{% 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 }}</strong>
</div></td>
<td><span class="badge">In Benutzung</span></td>
<td class="quantity">{{ item.quantity }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<details class="spool-stock-editor"{% if form.errors %} open{% endif %}>
<summary>Freie Bambu-Lab-Spulen bearbeiten</summary>
<form method="post" class="empty-spool-form">
{% csrf_token %}{{ form.non_field_errors }}{{ form.expected_quantity }}{{ form.expected_quantity.errors }}
<div class="field">
{{ form.quantity.label_tag }}{{ form.quantity }}{{ form.quantity.errors }}
</div>
<button class="button" type="submit">Bestand speichern</button>
</form>
</details>
</section>
<p class="hint">Bambu-Lab-Spulen werden beim Verbrauch automatisch frei und können zum Aufziehen verwendet werden.</p>
{% endblock %}