{% extends 'base.html' %}
{% load static i18n %}

{% block title %}{% trans "Delete Notification" %} - ATS{% endblock %}

{% block content %}
<div class="container-fluid py-4">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-body text-center p-5">
                    <div class="mb-4">
                        <i class="fas fa-exclamation-triangle fa-3x text-warning"></i>
                    </div>

                    <h4 class="mb-3">{{ title }}</h4>
                    <p class="text-muted mb-4">{{ message }}</p>

                    <div class="alert alert-light mb-4">
                        <h6 class="alert-heading">{% trans "Notification Preview" %}</h6>
                        <p class="mb-2"><strong>{% trans "Message:" %}</strong> {{ notification.message|truncatewords:20 }}</p>
                        <p class="mb-0">
                            <strong>{% trans "Created:" %}</strong> {{ notification.created_at|date:"Y-m-d H:i" }}
                        </p>
                    </div>

                    <form method="post" class="d-inline">
                        {% csrf_token %}
                        <button type="submit" class="btn btn-danger">
                            <i class="fas fa-trash me-1"></i> {% trans "Yes, Delete" %}
                        </button>
                        <a href="{{ cancel_url }}" class="btn btn-outline-secondary">
                            <i class="fas fa-times me-1"></i> {% trans "Cancel" %}
                        </a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
