diff options
Diffstat (limited to 'template/en/default/request/queue.html.tmpl')
-rw-r--r-- | template/en/default/request/queue.html.tmpl | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl index 9ba8cbc45..261db0438 100644 --- a/template/en/default/request/queue.html.tmpl +++ b/template/en/default/request/queue.html.tmpl @@ -81,12 +81,28 @@ to some group are shown by default. </td> <th>Product:</th> <td> - [% INCLUDE "global/product-select.html.tmpl" - id => "product" - name => "product" - add => "Any" - onchange => "selectProduct(this, this.form.component, null, null, 'Any');" - %] + <select name="product" onchange="selectProduct(this, this.form.component, null, null, 'Any');"> + <option value="">Any</option> + [% IF Param('useclassification') %] + [% FOREACH c = user.get_selectable_classifications %] + <optgroup label="[% c.name FILTER html %]"> + [% FOREACH p = user.get_selectable_products(c.id) %] + <option value="[% p.name FILTER html %]" + [% " selected" IF cgi.param('product') == p.name %]> + [% p.name FILTER html %] + </option> + [% END %] + </optgroup> + [% END %] + [% ELSE %] + [% FOREACH p = user.get_selectable_products %] + <option value="[% p.name FILTER html %]" + [% " selected" IF cgi.param('product') == p.name %]> + [% p.name FILTER html %] + </option> + [% END %] + [% END %] + </select> </td> <th>Flag:</th> <td> |