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

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

{% csrf_token %}
{{ form.type }}
Base material: PLA, PETG, ABS, etc. {% if form.type.errors %}
{{ form.type.errors }}
{% endif %}
{{ form.sub_type }}
Optional: PLA Basic, PLA Matte, etc. {% if form.sub_type.errors %}
{{ form.sub_type.errors }}
{% endif %}
{{ form.brand }}
{% if form.brand.errors %}
{{ form.brand.errors }}
{% endif %}

Cancel
{% if form.errors %}
Please correct the following errors:
    {% for field, errors in form.errors.items %} {% for error in errors %}
  • {{ field }}: {{ error }}
  • {% endfor %} {% endfor %}
{% endif %}
{% endblock %} {% block extra_js %} {{ existing_types|json_script:"existing-types" }} {{ existing_sub_types|json_script:"existing-sub-types" }} {{ existing_brands|json_script:"existing-brands" }} {{ preset_types|json_script:"preset-types" }} {{ preset_sub_types|json_script:"preset-sub-types" }} {{ preset_brands|json_script:"preset-brands" }} {% endblock %}