{% extends 'base.html' %}
{% block title %}Delete Status{% endblock %}
{% block content %}
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card border-0 shadow-sm border-top border-4 border-danger">
                <div class="card-body p-5 text-center">
                    <div class="display-4 text-danger mb-4">
                        <i class="bi bi-exclamation-circle"></i>
                    </div>
                    <h2 class="h4 mb-3">Delete Status: {{ status.name }}?</h2>
                    <p class="text-muted mb-4">Deleting this status will cause all associated jobs to be reassigned to the <strong>Starting Status</strong>. This action is permanent.</p>
                    <form method="post">
                        {% csrf_token %}
                        <div class="d-grid gap-2">
                            <button type="submit" class="btn btn-danger py-2">Confirm Delete & Reassign</button>
                            <a href="{% url 'settings' %}" class="btn btn-outline-secondary py-2">Keep Status</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
