{% extends "base.html" %}
{% block title %}Consommables imprimantes — GMAO{% endblock %}
{% block content %}<div class="container-fluid"><h1 class="h4 mb-3">Consommables partagés</h1><div class="table-responsive table-responsive-stack"><table class="table table-striped"><thead><tr><th>Référence</th><th>Type</th><th>Stock</th><th>Seuil</th><th>Cible</th><th>À commander</th></tr></thead><tbody>{% for item in consumables %}<tr><td data-label="Référence"><a href="{{ url_for('c4.consumable_detail', consumable_id=item.id) }}">{{ item.name }}</a><small class="d-block text-muted">{{ item.reference or '' }}</small></td><td data-label="Type">{{ item.consumable_type }}</td><td data-label="Stock">{{ item.quantity }}</td><td data-label="Seuil">{{ item.min_quantity }}</td><td data-label="Cible">{{ item.target_quantity if item.target_quantity is not none else '—' }}</td><td data-label="À commander">{{ item.quantity_to_order }}</td></tr>{% else %}<tr><td colspan="6">Aucun consommable.</td></tr>{% endfor %}</tbody></table></div></div>{% endblock %}
