mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
add sorting to tasks table
This commit is contained in:
parent
5e59705251
commit
77b65de09b
@ -43,7 +43,7 @@
|
|||||||
<div><button onclick="location.href=`/panel/add_schedule?id={{ data['server_stats']['server_id']['server_id'] }}`" class="btn btn-info">Create New Schedule <i class="fas fa-pencil-alt"></i></button></div>
|
<div><button onclick="location.href=`/panel/add_schedule?id={{ data['server_stats']['server_id']['server_id'] }}`" class="btn btn-info">Create New Schedule <i class="fas fa-pencil-alt"></i></button></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="table table-hover d-none d-lg-block responsive-table" width="100%" style="table-layout:fixed;">
|
<table class="table table-hover d-none d-lg-block responsive-table" id="schedule_table" width="100%" style="table-layout:fixed;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="rounded">
|
<tr class="rounded">
|
||||||
<th style="width: 25%; min-width: 50px;">Action</th>
|
<th style="width: 25%; min-width: 50px;">Action</th>
|
||||||
@ -205,6 +205,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
/* Hide scrollbar for Chrome, Safari and Opera */
|
/* Hide scrollbar for Chrome, Safari and Opera */
|
||||||
td::-webkit-scrollbar {
|
td::-webkit-scrollbar {
|
||||||
display: none;
|
display: none;
|
||||||
@ -222,6 +223,14 @@ td {
|
|||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
<script>
|
<script>
|
||||||
|
$( document ).ready(function() {
|
||||||
|
console.log('ready for JS!')
|
||||||
|
$('#schedule_table').DataTable({
|
||||||
|
'order': [4, 'desc']
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
});
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('[data-toggle="popover"]').popover();
|
$('[data-toggle="popover"]').popover();
|
||||||
if($(window).width() < 1000){
|
if($(window).width() < 1000){
|
||||||
|
Loading…
Reference in New Issue
Block a user