{% extends 'base.html' %}

{% block title %}Delete Tenant Project{% endblock %}

{% block content_title %}Delete Tenant Project{% endblock %}
{% block content_description %}Are you sure you want to delete this tenant project?{% endblock %}

{% block content %}
<div class="container">
    <div class="alert alert-warning">
        <p><strong>Warning:</strong> You are about to delete the following tenant project:</p>
        <ul>
            <li><strong>Name:</strong> {{ tenant_project.name }}</li>
            <li><strong>API Key:</strong> {{ tenant_project.visual_api_key }}</li>
            <li><strong>Responsible:</strong> {{ tenant_project.responsible_email or 'Not specified' }}</li>
        </ul>
        <p>This action cannot be undone.</p>
    </div>

    <form method="POST">
        {{ form.csrf_token if form }}
        <div class="form-group mt-3">
            <a href="{{ url_for('user_bp.tenant_projects') }}" class="btn btn-secondary">Cancel</a>
            <button type="submit" class="btn btn-danger">Confirm Delete</button>
        </div>
    </form>
</div>
{% endblock %}