1
Fork 0
mirror of https://github.com/Quackster/Havana.git synced 2025-07-03 05:07:46 +00:00
Havana/tools/www-tpl/default-en/housekeeping/infobus_polls.tpl
2022-09-04 10:33:18 +10:00

61 lines
No EOL
2.6 KiB
Smarty

{% include "housekeeping/base/header.tpl" %}
<body>
{% set infobusPollsActive = " active " %}
{% include "housekeeping/base/navigation.tpl" %}
<h1 class="mt-4">Infobus Polls</h1>
{% include "housekeeping/base/alert.tpl" %}
<p>This lists all infobus polls that have been created and used.</p>
<p><a href="/{{ site.housekeepingPath }}/infobus_polls/create" class="btn btn-danger">New Poll</a></p>
<p>
<a href="/{{ site.housekeepingPath }}/infobus_polls/door_status?status=1" class="btn btn-info">Open Infobus Doors</a>
</p>
<p>
<a href="/{{ site.housekeepingPath }}/infobus_polls/door_status?status=0" class="btn btn-info">Close Infobus Doors</a>
</p>
<p>
<a href="/{{ site.housekeepingPath }}/infobus_polls/close_event" class="btn btn-warning">End Event</a>
</p>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>Question</th>
<th>Created By</th>
<th>Created At</th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
{% for infobusPoll in infobusPolls %}
<tr>
<td><a href="{{ site.sitePath }}/{{ site.housekeepingPath }}/infobus_polls/view_results?id={{ infobusPoll.id }}" class="btn btn-success">View Results</a></td>
<td>{{ infobusPoll.getPollData().getQuestion() }}</td>
<td>{{ infobusPoll.getCreator() }}</td>
<td>{{ infobusPoll.getCreatedAtFormatted() }}</td>
<td>
<a href="{{ site.sitePath }}/{{ site.housekeepingPath }}/infobus_polls/edit?id={{ infobusPoll.id }}" class="btn btn-primary">Edit</a>
<a href="{{ site.sitePath }}/{{ site.housekeepingPath }}/infobus_polls/delete?id={{ infobusPoll.id }}" class="btn btn-danger">Delete</a>
<a href="{{ site.sitePath }}/{{ site.housekeepingPath }}/infobus_polls/clear_results?id={{ infobusPoll.id }}" class="btn btn-warning">Clear Results</a>
</td>
<td>
<a href="{{ site.sitePath }}/{{ site.housekeepingPath }}/infobus_polls/send_poll?id={{ infobusPoll.id }}" class="btn btn-info">Send Poll</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
<script src="https://blackrockdigital.github.io/startbootstrap-simple-sidebar/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script>
$("#menu-toggle").click(function(e) {
e.preventDefault();
$("#wrapper").toggleClass("toggled");
});
</script>
</body>
</html>