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

{% block content %}
<div class="max-w-lg mx-auto mt-10">
    <div class="bg-white shadow-md rounded-lg overflow-hidden">
        <div class="px-4 py-5 sm:p-6">
            <h2 class="text-lg leading-6 font-medium text-gray-900">
                {% trans "Confirm Deletion" %}
            </h2>
            <div class="mt-2 max-w-xl text-sm text-gray-500">
                <p>{% trans "Are you sure you want to delete this link?" %}</p>
            </div>
            <div class="mt-5 bg-gray-50 p-4 rounded-md">
                <h3 class="text-sm font-medium text-gray-900">{% trans "Link Details" %}:</h3>
                <ul class="mt-2 list-disc list-inside text-sm text-gray-600">
                    <li>{% trans "Alias" %}: {{ object.alias }}</li>
                    <li>{% trans "Original URL" %}: {{ object.original_url }}</li>
                    <li>{% trans "Click Count" %}: {{ object.click_count }}</li>
                </ul>
            </div>
            <div class="mt-5">
                <form method="post">
                    {% csrf_token %}
                    <div class="flex justify-end space-x-3">
                        <a href="{% url 'link_list' %}" class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-gray-700 bg-gray-200 hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500">
                            {% trans "Cancel" %}
                        </a>
                        <button type="submit" class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500">
                            {% trans "Delete" %}
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}
