<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Event Feedbacks</title>
    <link rel="stylesheet" href="/static/style.css">
    <link rel="icon" href="/static/logo.png" type="image/png">
    <style>
        body {
            background-image: url('/static/background.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            height: 100vh;
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }
        .content {
            background: rgba(255, 255, 255, 0.8);
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            width: 80%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            text-align: center;
        }
        .feedback-entry {
            background: rgba(255, 255, 255, 0.6);
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 10px;
            text-align: left;
        }
        .feedback-entry h3 {
            margin-top: 0;
        }
        .feedback-entry p {
            margin: 5px 0;
        }
        .content form button {
            background-color: #007BFF;
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            border-radius: 4px;
            margin-top: 20px;
        }
        .content form button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    {% include "top_bar.html" %}
    <div class="content">
        <h2>Event Feedbacks</h2>
        {% for feedback in feedbacks %}
        <div class="feedback-entry">
            <h3>{{ feedback.event_name }}</h3>
            <p><strong>Verlauf des Events:</strong> {{ feedback.event_progress }}</p>
            <p><strong>Ende des Events:</strong> {{ feedback.event_end }}</p>
            <p><strong>Feedback der Community:</strong> {{ feedback.community_feedback }}</p>
            <p><strong>Verbesserungsvorschläge:</strong> {{ feedback.improvement_suggestions }}</p>
            <p><strong>Abgegeben von:</strong> {{ feedback.username }} am {{ feedback.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}</p>
        </div>
        {% endfor %}
        <form action="{{ url_for('dashboard') }}" method="get">
            <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
            <button type="submit">Zurück</button>
        </form>
    </div>
</body>
</html>
