{% extends bambu_run_base_template %} {% load static %} {% block content %}

{% if form.instance.pk %}Edit{% else %}Add{% endif %} Filament Spool

{% csrf_token %}
Identification
{{ form.tray_uuid }} Auto-filled from MQTT tray_uuid
{{ form.tag_uid }} Auto-filled from MQTT RFID
{{ form.tag_id }} User-defined barcode/label
{{ form.created_by }} How this filament was added

Specifications
{{ form.type }}
{{ form.sub_type }}
{{ form.brand }}
{{ form.color }}
{{ form.color_hex }}
{{ form.color_hex_text }} e.g. #0A2CA5
{{ form.diameter }}
{{ form.initial_weight_grams }}

Current Status
{{ form.remaining_percent }}
{{ form.remaining_weight_grams }} Auto-calculated
{{ form.is_loaded_in_ams }}
{{ form.current_tray_id }}

Purchase Info (Optional)
{{ form.purchase_date }}
{{ form.purchase_price }}
{{ form.supplier }}
{{ form.notes }}
{% if form.errors %}
Please correct the following errors: {{ form.errors }}
{% endif %}
Cancel
{% if form.instance.pk and not is_basic_user %} {% endif %}
{% if form.instance.pk %} {% endif %} {% endblock %} {% block extra_js %} {% endblock %}