relocate repo files so ND2 is the only code
This commit is contained in:
24
share/views/sidebar/device/netmap.tt
Normal file
24
share/views/sidebar/device/netmap.tt
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
<span class="nd_sidebar-title"><em>Neighbor Map Controls</em></span>
|
||||
<input name="q" value="[% params.q | html_entity %]" type="hidden"/>
|
||||
<div class="clearfix nd_netmap-sidebar">
|
||||
<ul class="muted nd_netmap-sidebar-help">
|
||||
<li>Click and drag to pan</li>
|
||||
<li>Scroll to zoom</li>
|
||||
<li>Hover shows neighbors</li>
|
||||
<li>Click to center device</li>
|
||||
</ul>
|
||||
|
||||
<em class="muted nd_sidebar-label">Draw to Depth:</em><br/>
|
||||
<input id="nd_port-query" placeholder="" type="number"
|
||||
name="depth" value="[% params.depth || 8 | html_entity %]" type="text"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Max Depth"/>
|
||||
|
||||
<em class="muted nd_sidebar-label">Filter by VLAN:</em><br/>
|
||||
<input id="nd_port-query" placeholder="" type="number"
|
||||
name="vlan" value="[% params.vlan | html_entity %]" type="text"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="VLAN"/>
|
||||
</div>
|
||||
<button id="[% tab.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-pencil icon-large pull-left nd_navbar-icon"></i> Redraw Map</button>
|
||||
|
||||
158
share/views/sidebar/device/ports.tt
Normal file
158
share/views/sidebar/device/ports.tt
Normal file
@@ -0,0 +1,158 @@
|
||||
|
||||
<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 class="nd_inputs-list unstyled">
|
||||
[% FOREACH item IN vars.port_columns %]
|
||||
[% NEXT IF item.name == 'c_admin' AND NOT user_has_role('port_control') %]
|
||||
<li>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" id="[% item.name | html_entity %]"
|
||||
name="[% item.name | html_entity %]"[% ' checked="checked"' IF params.${item.name} %] />
|
||||
[% IF item.name == 'c_admin' %]
|
||||
<span class="label label-info">[% item.label | html_entity %]</span>
|
||||
[% ELSE %]
|
||||
[% item.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" 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>
|
||||
[% FOREACH item IN vars.connected_properties %]
|
||||
<li>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" id="[% item.name | html_entity %]"
|
||||
name="[% item.name | html_entity %]"[% ' checked="checked"' IF params.${item.name} %] />
|
||||
[% item.label | html_entity %]
|
||||
</label>
|
||||
</li>
|
||||
[% END %]
|
||||
</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>
|
||||
|
||||
4
share/views/sidebar/report/generic_report.tt
Normal file
4
share/views/sidebar/report/generic_report.tt
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
[% FOREACH k IN report.rconfig.bind_params %]
|
||||
<input name="[% k %]" value="[% params.$k | html_entity %]" type="hidden"/>
|
||||
[% END %]
|
||||
60
share/views/sidebar/report/ipinventory.tt
Normal file
60
share/views/sidebar/report/ipinventory.tt
Normal file
@@ -0,0 +1,60 @@
|
||||
|
||||
<div class="clearfix">
|
||||
<input id="nd_ipinventory-subnet" class="nd_sidebar-topinput nd_colored-input"
|
||||
placeholder="CIDR Prefix/Subnet" required="required"
|
||||
name="subnet" value="[% params.subnet | html_entity %]" type="text" autocomplete="off"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Prefix/Subnet in CIDR Format"/>
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<legend class="nd_sidebar-legend">
|
||||
<label><em><strong>Date Range</strong></em></label>
|
||||
</legend>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="age_invert"
|
||||
name="age_invert"[% ' checked="checked"' IF params.age_invert %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="age_invert">
|
||||
<span class="nd_searchcheckbox uneditable-input">Not within...</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<input class="nd_side-input" id="daterange" required="required"
|
||||
type="text" name="daterange" value="[%
|
||||
(params.exists('daterange') ? params.daterange : to_daterange('30 days')) | html_entity %]"/>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend class="nd_sidebar-legend">
|
||||
<label><em><strong>Options</strong></em></label>
|
||||
</legend>
|
||||
<div class="clearfix">
|
||||
<ul class="unstyled">
|
||||
<li>
|
||||
<em class="muted">Oldest records limit:</em><br/>
|
||||
<select id="nd_mac-format" class="nd_side-select" name="limit">
|
||||
[% FOREACH size IN [ '32', '64', '128', '256', '512', '1024', '2048', '4096', '8192' ] %]
|
||||
<option[% ' selected="selected"' IF (params.limit == size OR (NOT params.limit AND size == 2048)) %]>
|
||||
[% size %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="clearfix input-prepend"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Applies to IPv4 Only">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="never"
|
||||
name="never"[% ' checked="checked"' IF params.never %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="never">
|
||||
<span class="nd_searchcheckbox uneditable-input">List IP's Never Seen</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<button id="[% report.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search IPs</button>
|
||||
|
||||
78
share/views/sidebar/report/moduleinventory.tt
Normal file
78
share/views/sidebar/report/moduleinventory.tt
Normal file
@@ -0,0 +1,78 @@
|
||||
|
||||
<p class="nd_sidebar-title"><em>Module Search</em></p>
|
||||
<div class="clearfix">
|
||||
<i id="device_clear_btn" data-btn-for="device"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input nd_colored-input" placeholder="Device"
|
||||
type="text" name="device" value="[% params.dns | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Device IP, DNS, Description, Name, Location, Serial, or Contact"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<i id="description_clear_btn" data-btn-for="description"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input nd_colored-input" placeholder="Module Description"
|
||||
type="text" name="description" value="[% params.description | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Module Description"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<i id="name_clear_btn" data-btn-for="name"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input nd_colored-input" placeholder="Module Name"
|
||||
type="text" name="name" value="[% params.name | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Module Name"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<i id="type_clear_btn" data-btn-for="type"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input nd_colored-input" placeholder="Module Type"
|
||||
type="text" name="type" value="[% params.type | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Module Type"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<i id="model_clear_btn" data-btn-for="model"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input nd_colored-input" placeholder="Module Model"
|
||||
type="text" name="model" value="[% params.model | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Module Model"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<i id="serial_clear_btn" data-btn-for="serial"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input nd_colored-input" placeholder="Module Serial"
|
||||
type="text" name="serial" value="[% params.serial | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Module Serial"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<select class="nd_side-select nd_colored-input" size="[% class_list.size > 5 ? 5 : class_list.size %]"
|
||||
multiple="on" name="class"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Module Class"/>
|
||||
[% FOREACH opt IN class_list %]
|
||||
<option[% ' selected="selected"' IF class_lkp.exists(opt) %]>[% opt | html_entity %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
<fieldset>
|
||||
<legend class="nd_sidebar-legend">
|
||||
<label><em><strong>Options</strong></em></label>
|
||||
</legend>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="fruonly"
|
||||
name="fruonly"[% ' checked="checked"' IF params.fruonly %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="fruonly">
|
||||
<span class="nd_searchcheckbox uneditable-input">FRU Only</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="matchall"
|
||||
name="matchall"[% ' checked="checked"' IF params.matchall %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="matchall">
|
||||
<span class="nd_searchcheckbox uneditable-input">Match All Options</span>
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
<button id="[% tab.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search Modules</button>
|
||||
19
share/views/sidebar/report/netbios.tt
Normal file
19
share/views/sidebar/report/netbios.tt
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
<p class="nd_sidebar-title"><em>NetBIOS Domain</em></p>
|
||||
<div class="clearfix">
|
||||
<select class="nd_side-select nd_colored-input" size="[% domain_list.size > 8 ? 8 : domain_list.size %]"
|
||||
multiple="on" name="domain"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Domain"/>
|
||||
[% FOREACH opt IN domain_list %]
|
||||
[% UNLESS opt == '' %]
|
||||
<option[% ' selected="selected"' IF domain_lkp.exists(opt) %]>[% opt | html_entity %]</option>
|
||||
[% ELSE %]
|
||||
<option value="blank"[% ' selected="selected"' IF domain_lkp.exists('blank') %]>[% '(Blank Domain)' | html_entity %]</option>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button id="[% report.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search NetBIOS</button>
|
||||
|
||||
52
share/views/sidebar/report/nodesdiscovered.tt
Normal file
52
share/views/sidebar/report/nodesdiscovered.tt
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
<p class="nd_sidebar-title"><em>Node Search Options</em></p>
|
||||
<input name="q" value="[% params.q | html_entity %]" type="hidden"/>
|
||||
<div class="clearfix">
|
||||
<input class="nd_side-input" placeholder="Remote ID (host name)"
|
||||
type="text" name="remote_id" value="[% params.name | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Remote ID"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<input class="nd_side-input" placeholder="Remote Type (platform)"
|
||||
type="text" name="remote_type" value="[% params.name | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Remote Type"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<select class="nd_side-select nd_colored-input" size="[% type_list.size > 8 ? 8 : type_list.size %]"
|
||||
multiple="on" name="remote_type"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Remote Type"/>
|
||||
[% FOREACH opt IN type_list %]
|
||||
<option[% ' selected="selected"' IF type_lkp.exists(opt) %]>[% opt | html_entity %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="phones"
|
||||
name="phones"[% ' checked="checked"' IF params.phones %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="phones">
|
||||
<span class="nd_searchcheckbox uneditable-input"><i class="icon-li icon-phone"></i> IP Phones</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="aps"
|
||||
name="aps"[% ' checked="checked"' IF params.aps %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="aps">
|
||||
<span class="nd_searchcheckbox uneditable-input"><i class="icon-li icon-signal"></i>  Wireless APs</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix"><p></p></div>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="matchall"
|
||||
name="matchall"[% ' checked="checked"' IF params.matchall %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="matchall">
|
||||
<span class="nd_searchcheckbox uneditable-input">Match All Options</span>
|
||||
</label>
|
||||
</div>
|
||||
<button id="[% tab.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search Nodes</button>
|
||||
40
share/views/sidebar/report/nodevendor.tt
Normal file
40
share/views/sidebar/report/nodevendor.tt
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
<p class="nd_sidebar-title"><em>Node Vendor Search</em></p>
|
||||
<fieldset>
|
||||
<legend class="nd_sidebar-legend">
|
||||
<label><em><strong>Vendor</strong></em></label>
|
||||
</legend>
|
||||
<div class="clearfix">
|
||||
<select class="nd_side-select nd_colored-input" size="[% vendor_list.size > 8 ? 8 : vendor_list.size %]"
|
||||
multiple="on" name="vendor"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Vendor"/>
|
||||
[% FOREACH opt IN vendor_list %]
|
||||
[% UNLESS opt == '' %]
|
||||
<option[% ' selected="selected"' IF vendor_lkp.exists(opt) %]>[% opt | html_entity %]</option>
|
||||
[% ELSE %]
|
||||
<option value="blank"[% ' selected="selected"' IF vendor_lkp.exists('blank') %]>[% '(Unknown Vendor)' | html_entity %]</option>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend class="nd_sidebar-legend">
|
||||
<label><em><strong>Options</strong></em></label>
|
||||
</legend>
|
||||
<div class="clearfix input-prepend"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Include Archived Data">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="archived"
|
||||
name="archived"[% ' checked="checked"' IF params.archived %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="archived">
|
||||
<span class="nd_searchcheckbox uneditable-input">Archived Data</span>
|
||||
</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<button id="[% report.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search Vendors</button>
|
||||
|
||||
5
share/views/sidebar/report/portlog.tt
Normal file
5
share/views/sidebar/report/portlog.tt
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
<input name="q" value="[% params.q | html_entity %]" type="hidden"/>
|
||||
<input name="f" value="[% params.f | html_entity %]" type="hidden"/>
|
||||
<script type="text/javascript">has_sidebar["portlog"] = 0;</script>
|
||||
10
share/views/sidebar/report/portmultinodes.tt
Normal file
10
share/views/sidebar/report/portmultinodes.tt
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
<div class="clearfix nd_netmap-sidebar">
|
||||
<em class="muted nd_sidebar-label">Filter by VLAN:</em><br/>
|
||||
<input id="nd_port-query" placeholder="" type="number"
|
||||
name="vlan" value="[% params.vlan | html_entity %]" type="text"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="VLAN"/>
|
||||
</div>
|
||||
<button id="[% tab.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search Ports</button>
|
||||
|
||||
15
share/views/sidebar/report/portssid.tt
Normal file
15
share/views/sidebar/report/portssid.tt
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
<p class="nd_sidebar-title"><em>Details by SSID</em></p>
|
||||
<div class="clearfix">
|
||||
<select class="nd_side-select nd_colored-input" size="[% ssid_list.size > 8 ? 8 : ssid_list.size %]"
|
||||
multiple="on" name="ssid"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="SSID"/>
|
||||
[% FOREACH opt IN ssid_list %]
|
||||
<option[% ' selected="selected"' IF ssid_lkp.exists(opt) %]>[% opt | html_entity %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<button id="[% report.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search SSID</button>
|
||||
|
||||
32
share/views/sidebar/report/subnets.tt
Normal file
32
share/views/sidebar/report/subnets.tt
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
<div class="clearfix">
|
||||
<input id="nd_ipinventory-subnet" class="nd_sidebar-topinput nd_colored-input"
|
||||
placeholder="CIDR Prefix/Subnet" required="required"
|
||||
name="subnet" value="[% params.subnet | html_entity %]" type="text" autocomplete="off"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Prefix/Subnet in CIDR Format"/>
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<legend class="nd_sidebar-legend">
|
||||
<label><em><strong>Date Range</strong></em></label>
|
||||
</legend>
|
||||
<!--
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="age_invert"
|
||||
name="age_invert"[% ' checked="checked"' IF params.age_invert %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="age_invert">
|
||||
<span class="nd_searchcheckbox uneditable-input">Not within...</span>
|
||||
</label>
|
||||
</div>
|
||||
-->
|
||||
<div class="clearfix">
|
||||
<input class="nd_side-input" id="daterange" required="required"
|
||||
type="text" name="daterange" value="[%
|
||||
(params.exists('daterange') ? params.daterange : to_daterange('30 days')) | html_entity %]"/>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<button id="[% report.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search Subnets</button>
|
||||
99
share/views/sidebar/search/device.tt
Normal file
99
share/views/sidebar/search/device.tt
Normal file
@@ -0,0 +1,99 @@
|
||||
|
||||
<p class="nd_sidebar-title"><em>Device Search Options</em></p>
|
||||
<input name="q" value="[% params.q | html_entity %]" type="hidden"/>
|
||||
<div class="clearfix">
|
||||
<i data-btn-for="dns" class="nd_field-copy-icon icon-copy icon-large"></i>
|
||||
<i id="dns_clear_btn" data-btn-for="dns"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input" placeholder="DNS"
|
||||
type="text" name="dns" value="[% params.dns | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="DNS"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<i data-btn-for="ip" class="nd_field-copy-icon icon-copy icon-large"></i>
|
||||
<i id="ip_clear_btn" data-btn-for="ip"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input" placeholder="IP Address"
|
||||
type="text" name="ip" value="[% params.ip | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="IP Address"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<i data-btn-for="name" class="nd_field-copy-icon icon-copy icon-large"></i>
|
||||
<i id="name_clear_btn" data-btn-for="name"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input" placeholder="System Name"
|
||||
type="text" name="name" value="[% params.name | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="System Name"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<i data-btn-for="location" class="nd_field-copy-icon icon-copy icon-large"></i>
|
||||
<i id="location_clear_btn" data-btn-for="location"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input" placeholder="Location"
|
||||
type="text" name="location" value="[% params.location | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Location"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<i data-btn-for="description" class="nd_field-copy-icon icon-copy icon-large"></i>
|
||||
<i id="description_clear_btn" data-btn-for="description"
|
||||
class="nd_field-clear-icon icon-trash icon-large"></i>
|
||||
<input class="nd_side-input" placeholder="Description"
|
||||
type="text" name="description" value="[% params.description | html_entity %]"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Description"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<select class="nd_side-select" size="[% model_list.size > 5 ? 5 : model_list.size %]"
|
||||
multiple="on" name="model"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Model"/>
|
||||
[% FOREACH opt IN model_list %]
|
||||
<option[% ' selected="selected"' IF model_lkp.exists(opt) %]>[% opt | html_entity %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<select class="nd_side-select" size="[% os_list.size > 5 ? 5 : os_list.size %]"
|
||||
multiple="on" name="os"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Operating System"/>
|
||||
[% FOREACH opt IN os_list %]
|
||||
<option[% ' selected="selected"' IF os_lkp.exists(opt) %]>[% opt | html_entity %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<select class="nd_side-select" size="[% os_ver_list.size > 5 ? 5 : os_ver_list.size %]"
|
||||
multiple="on" name="os_ver"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="OS Release"/>
|
||||
[% FOREACH opt IN os_ver_list %]
|
||||
<option[% ' selected="selected"' IF os_ver_lkp.exists(opt) %]>[% opt | html_entity %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<select class="nd_side-select" size="[% vendor_list.size > 5 ? 5 : vendor_list.size %]"
|
||||
multiple="on" name="vendor"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Vendor"/>
|
||||
[% FOREACH opt IN vendor_list %]
|
||||
<option[% ' selected="selected"' IF vendor_lkp.exists(opt) %]>[% opt | html_entity %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<select class="nd_side-select" size="3"
|
||||
multiple="on" name="layers"
|
||||
rel="tooltip" data-placement="left" data-offset="5" data-title="Layer"/>
|
||||
[% FOREACH opt IN [ 1 .. 7 ] %]
|
||||
<option[% ' selected="selected"' IF layers_lkp.exists(opt) %]>[% opt | html_entity %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="matchall"
|
||||
name="matchall"[% ' checked="checked"' IF params.matchall %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="matchall">
|
||||
<span class="nd_searchcheckbox uneditable-input">Match All Options</span>
|
||||
</label>
|
||||
</div>
|
||||
<button id="[% tab.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search Devices</button>
|
||||
74
share/views/sidebar/search/node.tt
Normal file
74
share/views/sidebar/search/node.tt
Normal file
@@ -0,0 +1,74 @@
|
||||
|
||||
<p class="nd_sidebar-title"><em>Node Search Options</em></p>
|
||||
<input name="q" value="[% params.q | html_entity %]" type="hidden"/>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="stamps"
|
||||
name="stamps"[% ' checked="checked"' IF params.stamps %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="stamps">
|
||||
<span class="nd_searchcheckbox uneditable-input">Time Stamps</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="deviceports"
|
||||
name="deviceports"[% ' checked="checked"' IF params.deviceports %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="deviceports">
|
||||
<span class="nd_searchcheckbox uneditable-input">Device Ports</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="show_vendor"
|
||||
name="show_vendor"[% ' checked="checked"' IF params.show_vendor %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="show_vendor">
|
||||
<span class="nd_searchcheckbox uneditable-input">Vendor</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="archived"
|
||||
name="archived"[% ' checked="checked"' IF params.archived %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="archived">
|
||||
<span class="nd_searchcheckbox uneditable-input">
|
||||
Archived Data <i class="icon-book text-warning"></i></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on nd_sidebar-legend">
|
||||
<input type="checkbox" id="node_partial"
|
||||
name="partial"[% ' checked="checked"' IF params.partial %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="node_partial">
|
||||
<span class="nd_searchcheckbox uneditable-input">Partial Match</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<em class="muted">Date Range:</em><br/>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="age_invert"
|
||||
name="age_invert"[% ' checked="checked"' IF params.age_invert %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="age_invert">
|
||||
<span class="nd_searchcheckbox uneditable-input">Not within...</span>
|
||||
</label>
|
||||
</div>
|
||||
<input class="nd_side-input" id="daterange"
|
||||
type="text" name="daterange" value="[% params.daterange | html_entity %]"/>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
<em class="muted">MAC address format:</em><br/>
|
||||
<select id="nd_node-mac-format" name="mac_format">
|
||||
[% FOREACH format IN [ 'IEEE', 'Cisco', 'Microsoft', 'Sun' ] %]
|
||||
<option[% ' selected="selected"' IF params.mac_format == format %]>[% format %]</option>
|
||||
[% END %]
|
||||
</select>
|
||||
</div>
|
||||
<button id="[% tab.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search Nodes</button>
|
||||
|
||||
14
share/views/sidebar/search/port.tt
Normal file
14
share/views/sidebar/search/port.tt
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
<p class="nd_sidebar-title"><em>Port Search Options</em></p>
|
||||
<input name="q" value="[% params.q | html_entity %]" type="hidden"/>
|
||||
<div class="clearfix input-prepend">
|
||||
<label class="add-on">
|
||||
<input type="checkbox" id="port_partial"
|
||||
name="partial"[% ' checked="checked"' IF params.partial %]/>
|
||||
</label>
|
||||
<label class="nd_checkboxlabel" for="port_partial">
|
||||
<span class="nd_searchcheckbox uneditable-input">Partial Match</span>
|
||||
</label>
|
||||
</div>
|
||||
<button id="[% tab.tag %]_submit" type="submit" class="btn btn-info">
|
||||
<i class="icon-search icon-large pull-left nd_navbar-icon"></i> Search Ports</button>
|
||||
Reference in New Issue
Block a user