|
@@ -0,0 +1,57 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <title> Votes - Democratic Assembly</title>
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
+ <script src="/static/js/main.js"></script>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+ <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
|
|
+ <a class="navbar-brand" href="/"><img src="/static/uploads/logo.png" style="height: 27px"></a>
|
|
|
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
+ <span class="navbar-toggler-icon"></span>
|
|
|
+ </button>
|
|
|
+ <div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
|
+ {% block nav %}{% endblock %}
|
|
|
+ </div>
|
|
|
+ </nav>
|
|
|
+ <div class="container mt-3">
|
|
|
+ {% with messages = get_flashed_messages(with_categories=true) %}
|
|
|
+ {% if messages %}
|
|
|
+ {% for category, message in messages %}
|
|
|
+ <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
|
|
|
+ {{ message }}
|
|
|
+ <button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
+ <span aria-hidden="true">×</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ {% endfor %}
|
|
|
+ {% endif %}
|
|
|
+ {% endwith %}
|
|
|
+ <h1>Votes</h1>
|
|
|
+ <table class="table table-striped table-sm">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th></th>
|
|
|
+ <th>Naam</th>
|
|
|
+ <th>Start</th>
|
|
|
+ <th>Eindigt</th>
|
|
|
+ <th>Aangemaakt door</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ {% for ballot in ballots %}
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <a href="{{ url_for('vote.public_view', ballot_id=ballot.id) }}"><button class="btn btn-secondary btn-sm">View</button></a>
|
|
|
+ </td>
|
|
|
+ <td>{{ ballot.name }}</td>
|
|
|
+ <td>{{ ballot.start_at }}</td>
|
|
|
+ <td>{{ ballot.end_at }}</td>
|
|
|
+ <td>{{ ballot.user.name }}</td>
|
|
|
+ </tr>
|
|
|
+ {%- endfor -%}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+</body>
|