NexusDashboard/app/templates/character/index.html.j2

53 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2022-01-16 18:22:00 +00:00
{% extends 'base.html.j2' %}
{% block title %}
2022-02-20 04:36:33 +00:00
Character Management
2022-01-16 18:22:00 +00:00
{% endblock title %}
{% block content_before %}
2022-02-20 04:36:33 +00:00
Character Management
2022-01-16 18:22:00 +00:00
{% endblock content_before %}
{% block content %}
{% if message %}
<div class="row">
<div class="col text-center">
<h3>{{ message }}</h3>
</div>
</div>
<br/>
{% endif %}
<table class="table table-dark table-striped table-bordered table-hover" id="characters_table">
2022-01-16 18:22:00 +00:00
<thead>
<tr>
<th>Actions</th>
<th>Account</th>
<th>Name</th>
<th>Pending Name</th>
<th>Needs Rename</th>
<th>Last Login</th>
<th>Permission Map</th>
</tr>
</thead>
<tbody></tbody>
</table>
{% endblock %}
{% block js %}
{{ super () }}
<script>
$(document).ready(function(){
let characters_table = $('#characters_table').DataTable({
"processing": true,
"serverSide": true,
"ajax": "{{ url_for('characters.get', status='all') }}",
"columnDefs": [
{ "searchable": false, "targets": [0,5] },
{ "orderable": false, "targets": [0] }
]
});
});
</script>
{% endblock %}