aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/resource/hosts.html
blob: 4bf64e03d3d0bbb045ade8967008b9979ce02de0 (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
{% 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,
                "order": [[0, "asc"]]
            });
        });
    </script>
{% endblock tablejs %}