{% if spools|length == 0 or not spools %} {% else %}
{% for spool in spools %} {% if action_fill %}{% endif %} {% if action_assign %}{% endif %}
#{{spool.id}} - {{ spool.filament.vendor.name }} - {{ spool.filament.material }}
{{ spool.filament.name }}
{% if action_fill %} Fill {% endif %} {% if action_assign %} {% if spool.extra.get("tag") or spool.extra.get("tag") == "\"\"" %} Reassign {% else %} Assign {% endif %} {% endif %} {% if action_fill or action_assign %}
{% endif %} {% endfor %}
{% endif %}