|
@@ -1,44 +0,0 @@
|
|
|
-{% extends "layout/backend.j2" %}
|
|
|
-{% block content %}
|
|
|
-<h1>Votes</h1>
|
|
|
-<div class="row">
|
|
|
- <div class="col-sm">
|
|
|
- <div class="card">
|
|
|
- <div class="card-header">
|
|
|
- Votes
|
|
|
- <div class="float-right">
|
|
|
- <a href="{{ url_for('vote.create') }}" class="btn btn-secondary btn-sm">Create</a>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="card-body table-responsive">
|
|
|
- <table class="table table-striped table-sm">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th></th>
|
|
|
- <th>Name</th>
|
|
|
- <th>Start</th>
|
|
|
- <th>End</th>
|
|
|
- <th>Priority</th>
|
|
|
- <th>Author</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- {% for ballot in ballots %}
|
|
|
- <tr>
|
|
|
- <td>
|
|
|
- <a href="{{ url_for('vote.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.priority.name }}</td>
|
|
|
- <td>{{ ballot.user.name }}</td>
|
|
|
- </tr>
|
|
|
- {%- endfor -%}
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-{% endblock %}
|