{% extends "base.html" %} {% load static %} {% block title %}Delete Template - Communications{% endblock %} {% block content %}

Delete Template

Confirm Template Deletion
Template to be deleted:
Template Name: {{ object.template_name }}
Category: {{ object.get_category_display }}
Message Type: {{ object.get_message_type_display }}
Status: {% if object.is_active %}Active{% else %}Inactive{% endif %}
Usage Count: {{ object.usage_count|default:0 }} times
Created: {{ object.created_at|date:"M d, Y" }}
Subject Template:
{{ object.subject_template }}
Body Preview:
{{ object.body_template|truncatewords:30|linebreaks }} {% if object.body_template|wordcount > 30 %} [Content truncated...] {% endif %}
Deletion Impact:
{{ messages_using_template|default:0 }}
Messages using template
{{ object.variables.count|default:0 }}
Template variables
{{ object.languages.count|default:1 }}
Language versions
All
Usage statistics
Consider these alternatives:
Deactivate Template
Recommended

Keep the template but mark it as inactive so it can't be used for new messages.

Archive Template
Alternative

Move the template to archived status for future reference.

Export Template
Backup

Download template data before deletion for your records.

Create Copy
Safe Option

Create a duplicate of this template before deletion.

{% if messages_using_template > 0 %}
{% endif %}
{% csrf_token %}
{% if messages_using_template > 0 %}
{% endif %}
Cancel Back to List
{% endblock %} {% block js %} {% endblock %}