{% extends "themis/base.html" %}

{% block title %}Delete {{ model.name }}{% endblock %}

{% block content %}
<div class="max-w-lg mx-auto mt-8">
    <div class="card bg-base-200 shadow">
        <div class="card-body">
            <h2 class="card-title text-error">Delete LLM Model</h2>
            <p>Are you sure you want to delete <strong class="font-mono">{{ model.name }}</strong> from <strong>{{ model.api.name }}</strong>?</p>
            <p class="text-sm text-base-content/70">Usage records referencing this model will be preserved.</p>
            <div class="card-actions justify-end mt-4">
                <a href="{% url 'llm_manager:model_detail' model.pk %}" class="btn btn-ghost">Cancel</a>
                <form method="post">
                    {% csrf_token %}
                    <button type="submit" class="btn btn-error">Delete</button>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}
