{% extends "base.html" %} {% block title %}{{ "Edit" if editing else "Add" }} Resource - Supavision{% endblock %} {% block content %} {% if error %}
Error: {{ error }}
{% endif %} {% if not editing and not selected_type %} {# ══════════════════════════════════════════════════════════════ TYPE SELECTOR ══════════════════════════════════════════════════════════════ #}
{% for slug, t in resource_types.items() %} {{ t.label }} {{ t.description }} {% endfor %}

After adding a resource, Supavision runs an initial discovery to map services and create a health baseline.

Cancel
{% elif not editing %} {# ══════════════════════════════════════════════════════════════ WIZARD: Multi-step flow with HTMX content swaps ══════════════════════════════════════════════════════════════ #}
{% for step_label, step_suffix in wizard_flow %} {% if not loop.first %} {% endif %} {{ step_label }} {% endfor %}
{% include "_wizard_resource_info.html" %}
{% else %} {# ══════════════════════════════════════════════════════════════ EDIT MODE (existing resource — simple form) ══════════════════════════════════════════════════════════════ #} {% set rtype = resource_types.get(resource.resource_type, {}) %}
{% if rtype.get('connection') == 'ssh' %}
{% endif %}
{% endif %} {% endblock %}