{% extends "base.html" %} {% load static %} {% block title %}Delete {{ object.name }} - {{ block.super }}{% endblock %} {% block content %}

Delete External System

Confirm System Deletion
System Details
Name: {{ object.name }}
Type: {{ object.get_system_type_display }}
Vendor: {{ object.vendor|default:"Not specified" }}
Status: {% if object.is_active %}Active{% else %}Inactive{% endif %}
Created: {{ object.created_at|date:"M d, Y" }}
Connection Details
{% if object.base_url %} {% endif %} {% if object.host %} {% endif %} {% if object.database_name %} {% endif %}
Base URL: {{ object.base_url|truncatechars:40 }}
Host: {{ object.host }}{% if object.port %}:{{ object.port }}{% endif %}
Auth Type: {{ object.get_authentication_type_display }}
Database: {{ object.database_name }}
Deletion Impact Assessment

{{ related_endpoints_count }}

Endpoints {% if related_endpoints_count > 0 %}
Will be deleted
{% endif %}

{{ related_mappings_count }}

Data Mappings {% if related_mappings_count > 0 %}
Will be deleted
{% endif %}

{{ related_executions_count }}

Executions {% if related_executions_count > 0 %}
History preserved
{% endif %}

{{ related_logs_count }}

Log Entries {% if related_logs_count > 0 %}
History preserved
{% endif %}
{% if related_endpoints_count > 0 or related_mappings_count > 0 %} {% endif %} {% if object.is_active %} {% endif %}
{% if related_endpoints_count > 0 %}
Related Endpoints ({{ related_endpoints_count }})
{% for endpoint in related_endpoints|slice:":6" %}
{{ endpoint.name }}
{{ endpoint.get_method_display }} {{ endpoint.endpoint_path|truncatechars:30 }}
{% endfor %}
{% if related_endpoints_count > 6 %}
... and {{ related_endpoints_count|add:"-6" }} more endpoint{{ related_endpoints_count|add:"-6"|pluralize }}
{% endif %}
{% endif %}
Confirmation Requirements
{% if object.is_active %}
{% endif %}
This helps prevent accidental deletions
{% csrf_token %}
Cancel {% if object.is_active %} Deactivate Instead {% endif %}
{% endblock %}