blob: 4a53b4594e004e4f0003db20c4f302bd21d3234a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{% extends "dashboard/table.html" %}
{% load staticfiles %}
{% block table %}
<thead>
<tr>
<th>Name</th>
<th>Profile</th>
<th>Booked</th>
<th>Working</th>
</tr>
</thead>
<tbody>
{% for host in hosts %}
<tr>
<td>
{{ host.name }}
</td>
<td>
{{ host.profile }}
</td>
<td>
{{ host.booked }}
</td>
<td>
{{ host.working }}
</td>
</tr>
{% endfor %}
</tbody>
{% endblock table %}
{% block tablejs %}
<script type="text/javascript">
$(document).ready(function () {
$('#table').DataTable({
scrollX: true,
columnDefs: [
{type: 'status', targets: 6}
],
"order": [[6, "asc"]]
});
});
</script>
{% endblock tablejs %}
|