aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/resource/hosts.html
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2020-01-30 13:33:35 -0500
committerParker Berberian <pberberian@iol.unh.edu>2020-01-30 16:12:18 -0500
commit078273eb7db5a481a4131d44a943f3c9e34b6b88 (patch)
tree9e6e569e18712d77b8a65c6ebf4dda50ade1b55a /src/templates/resource/hosts.html
parent899e1a4baa95d0bc6f0eef34de66f0e257174878 (diff)
Adds Template Overrides
Changes the structure of the template directories to allow a new project to define their own set of override templates that inherit from a common base. I have slightly modified landing.html here as an example. In comming changes we will try to move all the "laas" specific content into the laas directory Change-Id: I46151be182de901f870debb247b305ea34ae77ba Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
Diffstat (limited to 'src/templates/resource/hosts.html')
-rw-r--r--src/templates/resource/hosts.html42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/templates/resource/hosts.html b/src/templates/resource/hosts.html
deleted file mode 100644
index 9fc50ce..0000000
--- a/src/templates/resource/hosts.html
+++ /dev/null
@@ -1,42 +0,0 @@
-{% 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 %}