aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/resource/hosts.html
blob: 69b723137bb972b6a45bbb48cff97c6dfed24cf1 (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>
                <a href="profiles/{{ host.profile.id }}">{{ host.profile }}</a>
            </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 %}