summaryrefslogtreecommitdiffstats
path: root/dashboard/src/templates/resource/hosts.html
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/src/templates/resource/hosts.html')
-rw-r--r--dashboard/src/templates/resource/hosts.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/dashboard/src/templates/resource/hosts.html b/dashboard/src/templates/resource/hosts.html
new file mode 100644
index 0000000..69b7231
--- /dev/null
+++ b/dashboard/src/templates/resource/hosts.html
@@ -0,0 +1,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 %}