diff options
Diffstat (limited to 'template/en/default/request/queue.html.tmpl')
-rw-r--r-- | template/en/default/request/queue.html.tmpl | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl index a6edcd8a3..73bbd8195 100644 --- a/template/en/default/request/queue.html.tmpl +++ b/template/en/default/request/queue.html.tmpl @@ -30,9 +30,9 @@ var first_load = 1; // is this the first time we load the page? var last_sel = []; // caches last selection var cpts = new Array(); - [% FOREACH p = products %] - cpts['[% p FILTER js %]'] = [ - [%- FOREACH item = components_by_product.$p %]'[% item FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%] ]; + [% FOREACH prod = products %] + cpts['[% prod.name FILTER js %]'] = [ + [%- FOREACH comp = prod.components %]'[% comp.name FILTER js %]'[% ", " UNLESS loop.last %] [%- END -%] ]; [% END %] [% END %] @@ -58,9 +58,10 @@ <td> <select name="product" onchange="selectProduct(this.form, 'product', 'component', 'Any');"> <option value="">Any</option> - [% FOREACH item = products %] - <option value="[% item FILTER html %]" - [% "selected" IF cgi.param('product') == item %]>[% item FILTER html %]</option> + [% FOREACH prod = products %] + <option value="[% prod.name FILTER html %]" + [% "selected" IF cgi.param('product') == prod.name %]> + [% prod.name FILTER html %]</option> [% END %] </select> </td> @@ -92,9 +93,11 @@ <td> <select name="component"> <option value="">Any</option> - [% FOREACH item = components %] - <option value="[% item FILTER html %]" [% "selected" IF cgi.param('component') == item %]> - [% item FILTER html %]</option> + [% FOREACH prod = products %] + [% FOREACH comp = prod.components %] + <option value="[% comp.name FILTER html %]" [% "selected" IF cgi.param('component') == comp.name %]> + [% comp.name FILTER html %]</option> + [% END %] [% END %] </select> </td> |