implement first device tab - details

This commit is contained in:
Oliver Gorwits
2012-01-09 00:51:45 +00:00
parent a400312e6b
commit 4e94c248e3
15 changed files with 273 additions and 6 deletions

View File

@@ -0,0 +1,22 @@
<table class="bordered-table condensed-table zebra-striped">
<thead>
<tr>
<th>Description</th>
<th>Port</th>
<th>Name</th>
<th>Vlan</th>
</tr>
</thead>
</tbody>
[% WHILE (row = results.next) %]
<tr>
<td>[% row.name %]</td>
<td><a href="/device?ip=[% row.ip %]&port=[% row.port %]">[% row.ip %] [ [% row.port %] ]</a>
[% ' (' _ row.device.dns.remove(settings.domain_suffix) _ ')' IF row.device.dns %]
</td>
<td>[% row.descr %]</td>
<td>[% row.vlan %]</td>
</tr>
[% END %]
</tbody>
</table>