{# Inner status badge template - do not use directly, use status_badge.html instead #} {# This template expects: status, size_classes, icon_size, and optionally other params #} {# When manual_mode is true, use provided status_display and default classes #} {# Otherwise use get_status_config filter from park_tags #} {# Wrapper with optional HTMX refresh #} {% if badge_id %} {% endif %} {% if manual_mode %} {# Manual mode: use provided status_display and derive classes from status value #} {% with badge_label=status_display|default:status badge_classes=status_classes|default:'bg-gray-100 text-gray-800' show_icon=True %} {% if can_edit and scroll_target %} {% elif clickable %} {% if show_icon %} {% endif %} {{ badge_label }} {% else %} {% if show_icon %} {% endif %} {{ badge_label }} {% endif %} {% endwith %} {% else %} {# Auto mode: use get_status_config filter from park_tags #} {% with status_config=status|get_status_config %} {% if can_edit and scroll_target %} {% elif clickable %} {% if status_config.icon %} {% endif %} {{ status_config.label }} {% else %} {% if status_config.icon %} {% endif %} {{ status_config.label }} {% endif %} {% endwith %} {% endif %} {% if badge_id %} {% endif %}