{% extends 'base.html' %} {% block title %}Matières{% endblock %} {% block content %}
{% for t in types %} {% endfor %}
{% if materials %} {% for m in materials %} {% set stock_pct = [[(m.stock_g / 1000 * 100)|round(0)|int, 0]|max, 100]|min %} {% endfor %}
Nom Type Couleur Prix/kg Stock Commandes Utilisé total
{{ m.name }}{% if m.brand %} / {{ m.brand }}{% endif %} {{ m.type }} {% if m.color %} {{ m.color }} {% else %}—{% endif %} {{ m.price_per_kg }} € {% if m.stock_g <= 0 %} Rupture {% elif m.stock_g <= m.low_stock_threshold_g %}
{{ m.stock_g|round(0)|int }} g
{% else %} {{ m.stock_g|round(0)|int }} g {% endif %}
{{ m.job_count }} {{ m.total_used_g }} g
{% else %}

Aucune matière enregistrée.

Ajouter votre premier filament
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}