Auto-Refresh entry table in guest view

This commit is contained in:
Phillip Kühne 2019-08-22 16:19:18 +02:00
parent b4ba000779
commit 8f10f9b500
2 changed files with 8 additions and 4 deletions

View File

@ -96,6 +96,7 @@
integrity="sha256-4F7e4JsAJyLUdpP7Q8Sah866jCOhv72zU5E8lIRER4w=" crossorigin="anonymous"> integrity="sha256-4F7e4JsAJyLUdpP7Q8Sah866jCOhv72zU5E8lIRER4w=" crossorigin="anonymous">
</script> </script>
<script src="https://unpkg.com/bootstrap-table@1.15.3/dist/bootstrap-table.min.js"></script> <script src="https://unpkg.com/bootstrap-table@1.15.3/dist/bootstrap-table.min.js"></script>
<script src="https://unpkg.com/bootstrap-table@1.15.3/dist/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js"></script>
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script> <script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
{% block extrajs %}{% endblock %} {% block extrajs %}{% endblock %}
<script> <script>

View File

@ -8,12 +8,15 @@
data-toggle="table" data-toggle="table"
data-url="/api/queue" data-url="/api/queue"
data-pagination="true" data-pagination="true"
data-classes="table"> data-classes="table"
data-show-refresh="false"
data-auto-refresh="true"
data-auto-refresh-interval="10">
<thead> <thead>
<tr> <tr>
<th scope="col" data-field="Name">Name</th> <th data-field="Name">Name</th>
<th scope="col" data-field="Title">Song</th> <th data-field="Title">Song</th>
<th scope="col" data-field="Artist">Künstler</th> <th data-field="Artist">Künstler</th>
</tr> </tr>
</thead> </thead>
</table> </table>