relocate repo files so ND2 is the only code
This commit is contained in:
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