Line | |
---|
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
3 | |
---|
4 | {# Purpose: This template is meant to give the user an overview of a specific #} |
---|
5 | {# HardwareUnit. Help for modifications can be found on: #} |
---|
6 | {# http://www.djangobook.com/en/1.0/chapter04/ #} |
---|
7 | {# #} |
---|
8 | {# Date: 24 nov 2008 #} |
---|
9 | {# Author: Sil Westerveld #} |
---|
10 | {# Contact: sil.westerveld@sara.nl #} |
---|
11 | |
---|
12 | <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> |
---|
13 | |
---|
14 | <head> |
---|
15 | <title>Stored info of HardwareUnit {{machine.name}}</title> |
---|
16 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> |
---|
17 | <link href="/site_media/cmts.css" rel="stylesheet" type="text/css" /> |
---|
18 | </head> |
---|
19 | |
---|
20 | <body> |
---|
21 | <h1>HardwareUnit</h1> |
---|
22 | <p>Requested HardwareUnit {{ machine.id }} ({{ machine }}).</p> |
---|
23 | <table> |
---|
24 | <tr> |
---|
25 | <td>Cluster</td> |
---|
26 | <td>{{ machine.cluster }}</td> |
---|
27 | </tr> |
---|
28 | <tr> |
---|
29 | <td>Physical location</td> |
---|
30 | <td> |
---|
31 | Rack: {{ machine.rack }}<br /> |
---|
32 | Slot: {{ machine.first_slot }}<br /> |
---|
33 | </td> |
---|
34 | </tr> |
---|
35 | <tr> |
---|
36 | <td>Model</td> |
---|
37 | <td>{{ machine.model }} ({{ machine.model.vendor }})</td> |
---|
38 | </tr> |
---|
39 | <tr> |
---|
40 | <td>Role</td> |
---|
41 | <td>{{ machine.role }}</td> |
---|
42 | </tr> |
---|
43 | <tr> |
---|
44 | <td>Interfaces</td> |
---|
45 | <td> |
---|
46 | <ul> |
---|
47 | {% for interface in machine.interfaces.all %} |
---|
48 | <li> |
---|
49 | mac: {{ interface.mac }}<br /> |
---|
50 | network: {{ interface.network }}<br /> |
---|
51 | ip: {{ interface.ip }}<br /> |
---|
52 | name: {{ interface.name }}<br /> |
---|
53 | </li> |
---|
54 | {% endfor %} |
---|
55 | </ul> |
---|
56 | </td> |
---|
57 | </tr> |
---|
58 | <tr><td></td></tr> |
---|
59 | </table> |
---|
60 | </body> |
---|
Note: See
TracBrowser
for help on using the repository browser.