aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/base/resource/hosts.html
blob: 9fc50ce43fec8c28ebe4bc05a70ce2636f555aa4 (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|yesno:"Yes,No" }}
            </td>
            <td>
                {{ host.working|yesno:"Yes,No" }}
            </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 %}