<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Home</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"/>
</head>
<body>
    {% include 'flash_template.html' %}
    <h1>Bericht autoqueue</h1>
    <p>Berichten in de wachtrij goedkeuren</p>
    <form method="POST">
        <button type="submit" name="stop" value="{{ bericht[0] }}" class="stopknop">Klik hier om te stoppen</button>
    </form>
    <table style="width:100%">
        <tr>
            <th>Bericht ID</th>
            <th>Naam</th>
            <th>Bericht inhoud</th>
            <th>Geplaatst in</th>
            <th>Ontvangen op</th>
            <th>Status bericht</th>
        </tr>
        <tr>
            <th>{{ bericht[0] }}</th>
            <th>{{ bericht[3] }}</th>
            <th>{{ bericht[1] }}</th>
            <th>{{ bericht[4] }}</th>
            <th>{{ bericht[2] }}</th>
            <th>{{ bericht[5] }}</th>
        </tr>
    </table>
    <form method="POST" action="/autoqueue/accept">
        <button type="submit" name="good" value="{{ bericht[0] }}" class="keurknoppen">Goedkeuren en publiceren</button>
    </form>
    <form method="POST" action="/autoqueue/reject">
        <button type="submit" name="bad" value="{{ bericht[0] }}" class="keurknoppen">Afkeuren</button>
    </form>
</body>
</html>