Bug 24201: (QA follow-up) Re-indent helpers
[koha-equinox.git] / koha-tmpl / intranet-tmpl / prog / en / includes / html_helpers.inc
1 [% BLOCK options_for_libraries %]
2     [% FOREACH l IN libraries %]
3         [% IF l.selected %]
4             <option value="[% prefix | html %][% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
5         [% ELSE %]
6             <option value="[% prefix | html %][% l.branchcode | html %]">[% l.branchname | html %]</option>
7         [% END%]
8     [% END %]
9 [% END %]
10
11 [% BLOCK options_for_desks %]
12     <option id="nodesk" value="">---</option>
13     [% FOREACH d IN desks %]
14         [% IF d.branchcode == branch %]
15             <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" >[% d.desk_name | html %]</option>
16         [% ELSE %]
17             <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" disabled hidden>[% d.desk_name | html %]</option>
18         [% END%]
19     [% END %]
20 [% END %]
21
22 [% BLOCK options_for_authorised_value_categories %]
23     [% FOREACH avc IN authorised_value_categories %]
24         [% IF avc.selected %]
25             <option value="[% avc.category | html %]" selected="selected">[% avc.category | html %]</option>
26         [% ELSE %]
27             <option value="[% avc.category | html %]">[% avc.category | html %]</option>
28         [% END %]
29     [% END %]
30 [% END %]
31
32 [% BLOCK options_for_item_types %]
33     [% FOREACH itemtype IN itemtypes %]
34         [% IF itemtype.itemtype == selected_itemtype %]
35             <option value="[% itemtype.itemtype | html %]" selected="selected">
36         [% ELSE %]
37             <option value="[% itemtype.itemtype | html %]">
38         [% END %]
39             [% itemtype.translated_description | html %]
40         </option>
41     [% END %]
42 [% END %]