margin-left: 10px;
}
-.paginate_enabled_previous { background: url('../images/back_enabled.png') no-repeat top left; }
-.paginate_enabled_previous:hover { background: url('../images/back_enabled_hover.png') no-repeat top left; }
-.paginate_disabled_previous { background: url('../images/back_disabled.png') no-repeat top left; }
+.paginate_enabled_previous { background: url('../../img/datatables-images/back_enabled.png') no-repeat top left; }
+.paginate_enabled_previous:hover { background: url('../../img/datatables-images/back_enabled_hover.png') no-repeat top left; }
+.paginate_disabled_previous { background: url('../../img/datatables-images/back_disabled.png') no-repeat top left; }
-.paginate_enabled_next { background: url('../images/forward_enabled.png') no-repeat top right; }
-.paginate_enabled_next:hover { background: url('../images/forward_enabled_hover.png') no-repeat top right; }
-.paginate_disabled_next { background: url('../images/forward_disabled.png') no-repeat top right; }
+.paginate_enabled_next { background: url('../../img/datatables-images/forward_enabled.png') no-repeat top right; }
+.paginate_enabled_next:hover { background: url('../../img/datatables-images/forward_enabled_hover.png') no-repeat top right; }
+.paginate_disabled_next { background: url('../../img/datatables-images/forward_disabled.png') no-repeat top right; }
/* Full number pagination */
.paging_full_numbers {
/*
* Sorting
*/
-.sorting { background: url('../images/sort_both.png') no-repeat center right; }
-.sorting_asc { background: url('../images/sort_asc.png') no-repeat center right; }
-.sorting_desc { background: url('../images/sort_desc.png') no-repeat center right; }
+.sorting { background: url('../../img/datatables-images/sort_both.png') no-repeat center right; }
+.sorting_asc { background: url('../../img/datatables-images/sort_asc.png') no-repeat center right; }
+.sorting_desc { background: url('../../img/datatables-images/sort_desc.png') no-repeat center right; }
-.sorting_asc_disabled { background: url('../images/sort_asc_disabled.png') no-repeat center right; }
-.sorting_desc_disabled { background: url('../images/sort_desc_disabled.png') no-repeat center right; }
+.sorting_asc_disabled { background: url('../../img/datatables-images/sort_asc_disabled.png') no-repeat center right; }
+.sorting_desc_disabled { background: url('../../img/datatables-images/sort_desc_disabled.png') no-repeat center right; }
table.dataTable thead th:active,
table.dataTable thead td:active {
<link rel="stylesheet" href="{{ STATIC_URL }}css/responsive-tables.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/table_sort.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/jquery.tablesorter.pager.css">
+ <link rel="stylesheet" href="{{ STATIC_URL }}css/datatables-css/jquery.dataTables.css"> <!-- dataTables -->
{% endblock %}
{% block pagescripts %}
<script src="{{ STATIC_URL }}js/jquery.tablesorter.widgets.min.js"></script>
<script src="{{ STATIC_URL }}js/jquery.tablesorter.pager.min.js"></script>
<script src="{{ STATIC_URL }}js/bootstrap-modal.js" ></script>
-<script src="{{ STATIC_URL }}js/sort-tables.js"></script>
+<!-- <script src="{{ STATIC_URL }}js/sort-tables.js"></script> -->
+<script src="{{ STATIC_URL }}js/jquery.dataTables.js"></script>
+<script>
+console.log('IT WORKS@@@!!');
+$(document).ready(function() {
+ $('#course_list').dataTable();
+} );
+</script>
{% endblock %}
{% block lightboxen %}
</div> <!-- #page_header -->
<div class="row">
<div class="ten columns offset-by-one">
- <!-- Pagination controlls -->
- <div id="pager" class="pager">
- <form>
- <img src="{{ STATIC_URL }}img/tablesorterpager/first.png" class="first"/>
- <img src="{{ STATIC_URL }}img/tablesorterpager/prev.png" class="prev"/>
- <span class="pagedisplay"></span> <!-- this can be any element, including an input -->
- <img src="{{ STATIC_URL }}img/tablesorterpager/next.png" class="next"/>
- <img src="{{ STATIC_URL }}img/tablesorterpager/last.png" class="last"/>
- <select class="pagesize">
- <option selected="selected" value="10">10</option>
- <option value="20">20</option>
- <option value="30">30</option>
- <option value="40">40</option>
- </select>
- </form>
- </div>
<!-- Main course table -->
<table id="course_list" class="tablesorter responsive">
<thead>