1 [% BLOCK options_for_libraries %]
2 [% FOREACH l IN libraries %]
4 <option value="[% prefix | html %][% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
6 <option value="[% prefix | html %][% l.branchcode | html %]">[% l.branchname | html %]</option>
11 [% BLOCK options_for_desks %]
12 <option id="nodesk" value="">---</option>
13 [% FOREACH d IN desks %]
14 [% IF d.branchcode == branch %]
15 [% IF selected == d.desk_id %]
16 <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" selected="selected">[% d.desk_name | html %]</option>
18 <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" >[% d.desk_name | html %]</option>
21 <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" disabled hidden>[% d.desk_name | html %]</option>
26 [% BLOCK options_for_registers %]
27 <!-- <option hidden disabled selected value> -- select an option -- </option> -->
28 <option id="noregister" value="">-- None --</option>
29 [% FOREACH r IN registers %]
30 [% IF r.branch == branch %]
32 <option class="[% r.branch | html %] [% IF r.branch_default %]default[% END %]" value="[% r.id | html %]" selected="selected">[% r.name | html %]</option>
34 <option class="[% r.branch | html %] [% IF r.branch_default %]default[% END %]" value="[% r.id | html %]">[% r.name | html %]</option>
37 <option class="[% r.branch | html %] [% IF r.branch_default %]default[% END %]" value="[% r.id | html %]" disabled hidden>[% r.name | html %]</option>
42 [% BLOCK options_for_authorised_value_categories %]
43 [% FOREACH avc IN authorised_value_categories %]
45 <option value="[% avc.category | html %]" selected="selected">[% avc.category | html %]</option>
47 <option value="[% avc.category | html %]">[% avc.category | html %]</option>
52 [% BLOCK options_for_item_types %]
53 [% FOREACH itemtype IN itemtypes %]
54 [% IF itemtype.itemtype == selected_itemtype %]
55 <option value="[% itemtype.itemtype | html %]" selected="selected">
57 <option value="[% itemtype.itemtype | html %]">
59 [% itemtype.translated_description | html %]