blob: 5c70ffc33ccba35b2394eabca29a610d1d67950f (
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
43
44
45
46
|
#extends cobbler.webui.master
#block body
## ==== BEGIN PAGE NAVIGATION ====
#set global what="system"
#include "/usr/share/cobbler/webui_templates/paginate.tmpl"
## ==== END PAGE NAVIGATION ====
<table class="sortable">
<thead>
<caption>Cobbler Systems</caption>
<tr>
<th class="text">Name</th>
<th class="text">Profile</th>
## FIXME: how to handle for multiple interface listing? <th class="text">MAC</th>
## <th class="text">IP</th>
## <th class="text">Hostname</th>
</tr>
</thead>
<tbody>
#set $evenodd = 1
#for $system in $systems
#if $evenodd % 2 == 0
#set $tr_class = "roweven"
#else
#set $tr_class = "rowodd"
#end if
#set $evenodd += 1
<tr class="$tr_class">
<td>
<a href="$base_url?mode=system_edit&name=${system.name}">${system.name}</a>
</td>
<td>
<a href="$base_url?mode=profile_edit&name=${system.profile}">${system.profile}</a>
</td>
## <td> ${system.mac_address} </td>
## <td> ${system.ip_address} </td>
## <td> ${system.hostname} </td>
</tr>
#end for
</tbody>
</table>
#end block body
|