Device operating system added to inventory links and search sidebar

This commit is contained in:
Oliver Gorwits
2015-02-22 09:32:24 +00:00
parent 84d89fd311
commit 31b024eef3
6 changed files with 31 additions and 4 deletions

View File

@@ -49,7 +49,13 @@
[% FOREACH release IN releases.all %]
[% NEXT UNLESS (release.os OR release.os_ver) %]
<tr>
<th>[% release.os || 'unknown' | html_entity %]</th>
<th>
[% IF release.os %]
<a class="nd_linkcell"
href="[% search_device %]&q=[% release.os | uri %]&os=[% release.os | uri %]">
[% release.os | html_entity %]</a>
[% ELSE %]unknown[% END %]
</th>
<th>
[% IF release.os_ver %]
<a class="nd_linkcell"

View File

@@ -50,6 +50,15 @@
[% 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"