{% extends "base.html" %}

{% block title %}Fehler{% endblock %}

{% block content %}
<div class="container">
    <div class="row justify-content-center mt-5">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header bg-danger text-white">
                    <h4 class="mb-0">
                        <i class="bi bi-exclamation-triangle-fill"></i> 
                        {{ error_message|default('Ein Fehler ist aufgetreten') }}
                    </h4>
                </div>
                <div class="card-body">
                    {% if details %}
                    <div class="alert alert-danger">
                        <h6>Details:</h6>
                        <pre class="mb-0">{{ details }}</pre>
                    </div>
                    {% endif %}
                    
                    <div class="mt-3">
                        <a href="{{ url_for('admin.dashboard') }}" class="btn btn-primary">
                            <i class="bi bi-house"></i> Zurück zum Dashboard
                        </a>
                        <button onclick="window.history.back();" class="btn btn-secondary">
                            <i class="bi bi-arrow-left"></i> Zurück
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}