- [% department_html %]
- [%- IF selectdepartment %]
- <tr>
- <th align="right" nowrap>[% 'Department' | $T8 %]</th>
- <td colspan=3><select name=department>[% selectdepartment %]</select>
- <input type=hidden name=selectdepartment value="[% selectdepartment | html %]">
- </td>
- </tr>
- [%- END %]
+ [% IF ALL_DEPARTMENTS %]
+ <tr>
+ <th align="right" nowrap>[% 'Department' | $T8 %]</th>
+ <td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td>
+ </tr>
+ [% END %]