reorder fields in snmpnode view

This commit is contained in:
Oliver Gorwits
2022-08-08 08:58:15 +01:00
parent b03bb2ac62
commit f3aade5b24
2 changed files with 23 additions and 23 deletions

View File

@@ -29,23 +29,23 @@
<td></td>
</tr>
<tr>
<th scope="row">Type</th>
<td></td>
</tr>
<tr>
<th scope="row">Unpacker</th>
<th scope="row">Status</th>
<td></td>
</tr>
<tr>
<th scope="row">Access</th>
<td></td>
</tr>
<tr>
<th scope="row">Type</th>
<td></td>
</tr>
<tr>
<th scope="row">Index</th>
<td></td>
</tr>
<tr>
<th scope="row">Status</th>
<th scope="row">Filter</th>
<td></td>
</tr>
<tr>

View File

@@ -13,26 +13,17 @@
<td>[% node.snmp_object.leaf | html_entity %]</td>
</tr>
<tr>
<th scope="row">Type</th>
<td>[% node.snmp_object.type | html_entity %]</td>
</tr>
<tr>
<th scope="row">Unpacker</th>
<td>
[% IF node.value %]
<select name="munger" id="munger">
[% UNLESS munge %]<option value="" selected disabled hidden>None applied</option>[% END %]
[% FOREACH m IN mungers %]
<option [% 'selected' IF m == munge %] value="[% m | uri %]">[% m | html_entity %]</option>
[% END %]
</select>
[% END %]
</td>
<th scope="row">Status</th>
<td>[% node.snmp_object.status | html_entity %]</td>
</tr>
<tr>
<th scope="row">Access</th>
<td>[% node.snmp_object.access | html_entity %]</td>
</tr>
<tr>
<th scope="row">Type</th>
<td>[% node.snmp_object.type | html_entity %]</td>
</tr>
<tr>
<th scope="row">Index</th>
<td>
@@ -46,8 +37,17 @@
</td>
</tr>
<tr>
<th scope="row">Status</th>
<td>[% node.snmp_object.status | html_entity %]</td>
<th scope="row">Filter</th>
<td>
[% IF node.value %]
<select name="munger" id="munger">
[% UNLESS munge %]<option value="" selected disabled hidden>None applied</option>[% END %]
[% FOREACH m IN mungers %]
<option [% 'selected' IF m == munge %] value="[% m | uri %]">[% m | html_entity %]</option>
[% END %]
</select>
[% END %]
</td>
</tr>
<tr>
<th scope="row">Enum Syntax</th>