mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-25 06:57:19 +00:00
b2af6d967a
Add currency report make reports use json storage Make tables nicer
57 lines
1.3 KiB
Django/Jinja
57 lines
1.3 KiB
Django/Jinja
{% extends 'base.html.j2' %}
|
|
|
|
{% block title %}
|
|
Play Key Management
|
|
{% endblock title %}
|
|
|
|
{% block content_before %}
|
|
Play Key Management
|
|
{% endblock content_before %}
|
|
|
|
{% block content %}
|
|
{% if message %}
|
|
<div class="row">
|
|
<div class="col text-center">
|
|
<h3>{{ message }}</h3>
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
{% endif %}
|
|
<a role="button" class="btn btn-primary btn btn-block"
|
|
href='{{ url_for('play_keys.create') }}'>
|
|
Create one Play Key with one use
|
|
</a>
|
|
<a role="button" class="btn btn-primary btn btn-block"
|
|
href='{{ url_for('play_keys.bulk_create') }}'>
|
|
Bulk Create Play Keys
|
|
</a>
|
|
<hr class="bg-primary"/>
|
|
<table class="table table-dark table-striped table-bordered table-hover" id="play_key_table">
|
|
<thead>
|
|
<tr>
|
|
<th>Actions</th>
|
|
<th>Key</th>
|
|
<th>Uses Left</th>
|
|
<th>Times Used</th>
|
|
<th>Created</th>
|
|
<th>Active</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
{% endblock %}
|
|
|
|
|
|
{% block js %}
|
|
{{ super () }}
|
|
<script>
|
|
$(document).ready(function(){
|
|
let play_key_table = $('#play_key_table').DataTable({
|
|
"processing": true,
|
|
"serverSide": true,
|
|
"ajax": "{{ url_for('play_keys.get') }}",
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %}
|