{% load i18n %} {% load render_table from django_tables2 %} {# NetBox Endpoint #}
{% trans "NetBox Endpoint" %} {% trans "Full list" %}
{% if netbox_endpoint_table.data %} {% render_table netbox_endpoint_table %} {% else %}
{% trans "No NetBox Endpoint configured." %} {% trans "Quick add" %}
{% endif %}
{# FastAPI Endpoint #}
{% trans "FastAPI Endpoint" %} {% trans "Full list" %}
{% if fastapi_endpoint_table.data %} {% render_table fastapi_endpoint_table %} {% else %}
{% trans "No FastAPI Endpoint configured." %} {% trans "Quick add" %}
{% endif %}
{# Proxmox Endpoints #}
{% trans "Proxmox Endpoints" %} {% trans "Full list" %}
{% if proxmox_endpoint_table.data %} {% render_table proxmox_endpoint_table %} {% else %}
{% trans "No Proxmox Endpoints configured." %} {% trans "Add endpoint" %}
{% endif %}
{# Companion Plugin Endpoints (PBS, PDM, Ceph, etc.) #} {% if companion_endpoint_groups %} {% for endpoint_group in companion_endpoint_groups %}
{{ endpoint_group.plugin_name }}
{{ endpoint_group.plugin_package }} {% if endpoint_group.plugin_version %} v{{ endpoint_group.plugin_version }} {% endif %}
{% if endpoint_group.endpoints.0.connection_status %} {% endif %} {% for field in endpoint_group.endpoints.0.fields %} {% endfor %} {% for ep in endpoint_group.endpoints %} {% if ep.connection_status %} {% endif %} {% for field in ep.fields %} {% endfor %} {% endfor %}
{{ endpoint_group.model_label }}{% trans "Connection Status" %}{{ field.label }}
{% if ep.connection_status %}
{% endif %} {% if ep.url %} {{ ep.name }} {% else %} {{ ep.name }} {% endif %}
Unknown {{ field.value }}
{% endfor %} {% endif %}