Files
netdisco/share/views/sidebar/report/netbios.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

20 lines
1021 B
Plaintext

<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 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>