|
Lines 342-359
Link Here
|
| 342 |
<td> |
342 |
<td> |
| 343 |
<select name="itemtype" id="matrixitemtype" style="width:13em;"> |
343 |
<select name="itemtype" id="matrixitemtype" style="width:13em;"> |
| 344 |
<option value="*">All</option> |
344 |
<option value="*">All</option> |
| 345 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
345 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
| 346 |
[% NEXT IF itemtypeloo.parent_type %] |
346 |
[% NEXT IF itemtypeloo.parent_type %] |
| 347 |
<option value="[% itemtypeloo.itemtype | html %]">[% itemtypeloo.translated_description | html %]</option> |
347 |
[% SET children = itemtypeloo.children_with_localization %] |
| 348 |
[% SET children = itemtypeloo.children_with_localization %] |
348 |
[% IF children %] |
| 349 |
[% IF children %] |
349 |
<optgroup label="[% itemtypeloo.translated_description | html %]"> |
| 350 |
<optgroup> |
350 |
<option value="[% itemtypeloo.itemtype | html %]">[% itemtypeloo.translated_description | html %] (All)</option> |
| 351 |
[% FOREACH child IN children %] |
351 |
[% FOREACH child IN children %] |
| 352 |
<option value="[% child.itemtype | html %]">[% child.translated_description | html %]</option> |
352 |
<option value="[% child.itemtype | html %]">[% child.translated_description | html %]</option> |
|
|
353 |
[% END %] |
| 354 |
</optgroup> |
| 355 |
[% ELSE %] |
| 356 |
<option value="[% itemtypeloo.itemtype | html %]">[% itemtypeloo.translated_description | html %]</option> |
| 353 |
[% END %] |
357 |
[% END %] |
| 354 |
</optgroup> |
|
|
| 355 |
[% END %] |
358 |
[% END %] |
| 356 |
[% END %] |
|
|
| 357 |
</select> |
359 |
</select> |
| 358 |
</td> |
360 |
</td> |
| 359 |
<td class="actions"> |
361 |
<td class="actions"> |
| 360 |
- |
|
|