194 lines
11 KiB
Plaintext
194 lines
11 KiB
Plaintext
|
|
<input name="q" value="[% params.q | html_entity %]" type="hidden"/>
|
|
<input id="nd_ports-form-prefer-field" name="prefer" value="[% params.prefer | html_entity %]" type="hidden"/>
|
|
<div class="clearfix">
|
|
<i class="nd_field-clear-icon icon-trash icon-large"
|
|
rel="tooltip" data-placement="bottom" data-offset="3" data-title="Show all Ports"
|
|
id="f_clear_btn" data-btn-for="port"></i>
|
|
<input id="nd_port-query" placeholder="Port, Name or VLAN"
|
|
name="f" value="[% params.f | html_entity %]" type="text"
|
|
rel="tooltip" data-placement="left" data-offset="5" data-title="Filter by Port, Name or VLAN"/>
|
|
<div class="clearfix input-prepend nd_port-partial">
|
|
<label class="add-on nd_port-partial-label">
|
|
<input type="checkbox" id="partial"
|
|
name="partial"[% ' checked="checked"' IF params.partial %]/>
|
|
</label>
|
|
<label class="nd_checkboxlabel" for="partial">
|
|
<span class="nd_port-partial-checkbox uneditable-input">Partial Match</span>
|
|
</label>
|
|
<label class="add-on nd_port-invert-label">
|
|
<input type="checkbox" id="invert"
|
|
name="invert"[% ' checked="checked"' IF params.invert %]/>
|
|
</label>
|
|
<label class="nd_checkboxlabel" for="invert">
|
|
<span class="nd_port-invert-checkbox uneditable-input">Not</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix">
|
|
<span data-toggle="collapse" data-target="#nd_legend">
|
|
<label class="nd_collapser">Legend
|
|
<i class="nd_arrow-up-down-right icon-chevron-up icon-large"></i>
|
|
</label></span>
|
|
<div id="nd_legend" class="collapse">
|
|
<ul class="icons-ul"><!-- nd_inputs-list unstyled"> -->
|
|
<li><i class="icon-li icon-angle-up text-success"></i> Link Up</li>
|
|
<li><i class="icon-li icon-arrow-down text-error"></i> Link Down</li>
|
|
<li><i class="icon-li icon-arrow-down text-success"></i> Port Free</li>
|
|
<li><i class="icon-li icon-remove"></i> Admin Disabled</li>
|
|
<li><i class="icon-li icon-fullscreen text-info"></i> Blocking</li>
|
|
<li><i class="icon-li icon-link text-warning"></i> Manual Topology</li>
|
|
<li><i class="icon-li icon-link"></i> Neighbor Device</li>
|
|
<li><i class="icon-li icon-unlink text-error"></i> Neighbor Inacessible</li>
|
|
<li><i class="icon-li icon-phone"></i> IP Phone</li>
|
|
<li><i class="icon-li icon-signal"></i> Wireless Client</li>
|
|
<li><i class="icon-li icon-book"></i> Archived Data</li>
|
|
<li><i class="icon-li icon-group"></i> Link Aggregate</li>
|
|
[% IF user_has_role('port_control') %]
|
|
<li><i class="icon-li icon-refresh icon-spin"></i> Click "Update View"</li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix">
|
|
<span data-toggle="collapse" data-target="#nd_columns">
|
|
<label class="nd_collapser">Display Columns
|
|
<i class="nd_arrow-up-down-right icon-chevron-down icon-large"></i>
|
|
</label></span>
|
|
<div id="nd_columns" class="collapse in">
|
|
<ul id="nd_column-controls" class="nd_inputs-list unstyled">
|
|
[% FOREACH entry IN settings.table_display.$section.${tab.tag}.columns %]
|
|
[% NEXT IF entry.keys.first == 'c_admin' AND NOT user_has_role('port_control') %]
|
|
<li>
|
|
<label class="checkbox">
|
|
<!-- FIXME look at param not default -->
|
|
<input type="checkbox" class="nd_dynamic-dp"
|
|
[% ' checked="checked"' IF entry.item(entry.keys.first).default %]
|
|
id="[% entry.keys.first | html_entity %]" name="[% entry.keys.first | html_entity %]" />
|
|
[% IF entry.item(entry.keys.first).highlight %]
|
|
<span class="label label-info">[% entry.item(entry.keys.first).label | html_entity %]</span>
|
|
[% ELSE %]
|
|
[% entry.item(entry.keys.first).label | html_entity %]
|
|
[% END %]
|
|
</label>
|
|
</li>
|
|
[% END %]
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix">
|
|
<span data-toggle="collapse" data-target="#nd_portprops">
|
|
<label class="nd_collapser">Port Properties
|
|
<i class="nd_arrow-up-down-right icon-chevron-up icon-large"></i>
|
|
</label></span>
|
|
<div id="nd_portprops" class="collapse">
|
|
<ul class="nd_inputs-list unstyled">
|
|
<li>
|
|
<em class="muted">Mark as Free if Down for:</em><br/>
|
|
<select id="nd_days-select" name="age_num">
|
|
[% FOREACH count IN [1..32] %]
|
|
<option[% ' selected="selected"' IF params.age_num == count %]>[% count %]</option>
|
|
[% END %]
|
|
</select>
|
|
<select id="nd_age-select" name="age_unit">
|
|
[% FOREACH unit IN [ 'days', 'weeks', 'months', 'years' ] %]
|
|
<option[% ' selected="selected"' IF params.age_unit == unit %]>[% unit %]</option>
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<em class="muted">Show Ports with Status:</em><br/>
|
|
<div class="clearfix">
|
|
<select id="nd_port-state-select" size="4" multiple="on" name="port_state"/>
|
|
<option selected="selected" value="up">Link Up</option>
|
|
<option selected="selected" value="free">Port Free</option>
|
|
<option selected="selected" value="down">Link Down</option>
|
|
<option selected="selected" value="shut">Admin Disabled</option>
|
|
</select>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<label class="checkbox">
|
|
<input type="checkbox" class="nd_dynamic-dp" id="neigh_id"
|
|
name="neigh_id"[% ' checked="checked"' IF params.neigh_id %] />
|
|
Connected Device ID
|
|
</label>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix">
|
|
<span data-toggle="collapse" data-target="#nd_nodeprops">
|
|
<label class="nd_collapser">Node Properties
|
|
<i class="nd_arrow-up-down-right icon-chevron-up icon-large"></i>
|
|
</label></span>
|
|
<div id="nd_nodeprops" class="collapse">
|
|
<ul class="nd_inputs-list unstyled">
|
|
<li>
|
|
<em class="muted">MAC address format:</em><br/>
|
|
<select id="nd_mac-format" name="mac_format">
|
|
[% FOREACH format IN [ 'IEEE', 'Cisco', 'Microsoft', 'Sun' ] %]
|
|
<option[% ' selected="selected"' IF params.mac_format == format %]>[% format %]</option>
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<label class="checkbox">
|
|
<input type="checkbox" class="nd_dynamic-dp" id="n_age"
|
|
name="n_age"[% ' checked="checked"' IF settings.table_display.$section.${tab.tag}.content.n_age %] />
|
|
Age Stamp
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<label class="checkbox">
|
|
<input type="checkbox" class="nd_dynamic-dp" id="n_ip"
|
|
name="n_ip"[% ' checked="checked"' IF settings.table_display.$section.${tab.tag}.content.n_ip %] />
|
|
IP Address
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<label class="checkbox">
|
|
<input type="checkbox" class="nd_dynamic-dp" id="n_netbios"
|
|
name="n_netbios"[% ' checked="checked"' IF settings.table_display.$section.${tab.tag}.content.n_netbios %] />
|
|
NetBIOS
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<label class="checkbox">
|
|
<input type="checkbox" class="nd_dynamic-dp" id="n_ssid"
|
|
name="n_ssid"[% ' checked="checked"' IF settings.table_display.$section.${tab.tag}.content.n_ssid %] />
|
|
SSID
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<label class="checkbox">
|
|
<input type="checkbox" class="nd_dynamic-dp" id="n_vendor"
|
|
name="n_vendor"[% ' checked="checked"' IF settings.table_display.$section.${tab.tag}.content.n_vendor %] />
|
|
Vendor
|
|
</label>
|
|
</li>
|
|
<li>
|
|
<label class="checkbox">
|
|
<input type="checkbox" class="nd_dynamic-dp" id="n_archived"
|
|
name="n_archived"[% ' checked="checked"' IF settings.table_display.$section.${tab.tag}.content.n_archived %] />
|
|
Archived Data
|
|
</label>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="btn-group">
|
|
<button id="[% tab.tag %]_submit" type="submit" class="btn btn-info nd_sidebar-btn-drop">
|
|
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Update View</button>
|
|
<button class="btn btn-info dropdown-toggle nd_sidebar-btn-drop-drop" data-toggle="dropdown">
|
|
<span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a class="nd_device-port-submit-prefer" href="" data-prefer="">Default Search</a></li>
|
|
<li><a class="nd_device-port-submit-prefer" href="" data-prefer="port">Filter by Port</a></li>
|
|
<li><a class="nd_device-port-submit-prefer" href="" data-prefer="name">Filter by Name</a></li>
|
|
<li><a class="nd_device-port-submit-prefer" href="" data-prefer="vlan">Filter by VLAN</a></li>
|
|
</ul>
|
|
</div>
|
|
|