Code Review
/
pharos-tools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Merge "Add API tests"
[pharos-tools.git]
/
dashboard
/
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
"order": [[0, "asc"]]
39
});
40
});
41
</script>
42
{% endblock tablejs %}