Code Review
/
laas.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Lab as a Service 2.0
[laas.git]
/
src
/
templates
/
resource
/
hosts.html
1
{% extends "dashboard/table.html" %}
2
{% load staticfiles %}
3
4
{% block table %}
5
<thead>
6
<tr>
7
<th>Name</th>
8
<th>Profile</th>
9
<th>Booked</th>
10
<th>Working</th>
11
</tr>
12
</thead>
13
<tbody>
14
{% for host in hosts %}
15
<tr>
16
<td>
17
{{ host.name }}
18
</td>
19
<td>
20
{{ host.profile }}
21
</td>
22
<td>
23
{{ host.booked }}
24
</td>
25
<td>
26
{{ host.working }}
27
</td>
28
</tr>
29
{% endfor %}
30
</tbody>
31
{% endblock table %}
32
33
{% block tablejs %}
34
<script type="text/javascript">
35
$(document).ready(function () {
36
$('#table').DataTable({
37
scrollX: true,
38
columnDefs: [
39
{type: 'status', targets: 6}
40
],
41
"order": [[6, "asc"]]
42
});
43
});
44
</script>
45
{% endblock tablejs %}