Files
netdisco/share/views/sidebar/report/nodesdiscovered.tt
nick n cd2a4b9362 html template fixups (#576)
* none is not a valid value for min-width, so set it to zero

* these 2 "checked" if statements need a space in front of them,
else they will attach to the previous element

id="nd_showspeed"checked="checked"

* multiple tag has no options according to
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select

also, don't close select before we've gotten to the option tags

* multiple tag has no options according to
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select

also, don't close select before we've gotten to the option tags

* just to be sure put a space in front of these optional tags as well,

* $a is technically allowed but is considered not best practice
2019-05-12 08:32:42 +01:00

53 lines
2.8 KiB
Plaintext

<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 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>&nbsp; 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>&nbsp 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>