add nick
[laas.git] / src / templates / base / resource / hosts.html
1 {% extends "dashboard/table.html" %}
2 {% load staticfiles %}
3
4 {% block table %}
5     <thead>
6     <tr>
7         <th>Name</th>
8         <th>Profile</th>
9         <th>Booked</th>
10         <th>Working</th>
11     </tr>
12     </thead>
13     <tbody>
14     {% for host in hosts %}
15         <tr>
16             <td>
17                 {{ host.name }}
18             </td>
19             <td>
20                 <a href="profiles/{{ host.profile.id }}">{{ host.profile }}</a>
21             </td>
22             <td>
23                 {{ host.booked|yesno:"Yes,No" }}
24             </td>
25             <td>
26                 {{ host.working|yesno:"Yes,No" }}
27             </td>
28         </tr>
29     {% endfor %}
30     </tbody>
31 {% endblock table %}
32
33 {% block tablejs %}
34     <script type="text/javascript">
35         $(document).ready(function () {
36             $('#table').DataTable({
37         scrollX: true,
38                 "order": [[0, "asc"]]
39             });
40         });
41     </script>
42 {% endblock tablejs %}