View | Details | Raw Unified | Return to bug 26779
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc (-9 / +1 lines)
Lines 11-25 Link Here
11
[% BLOCK options_for_desks %]
11
[% BLOCK options_for_desks %]
12
    <option id="nodesk" value="">---</option>
12
    <option id="nodesk" value="">---</option>
13
    [% FOREACH d IN desks %]
13
    [% FOREACH d IN desks %]
14
        [% IF d.branchcode == branch %]
14
      <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" disabled >[% d.desk_name | html %]</option> 
15
          [% IF selected == d.desk_id %]
16
            <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" selected="selected">[% d.desk_name | html %]</option>
17
          [% ELSE %]
18
            <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" >[% d.desk_name | html %]</option>
19
          [% END %]
20
        [% ELSE %]
21
            <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" disabled hidden>[% d.desk_name | html %]</option>
22
        [% END%]
23
    [% END %]
15
    [% END %]
24
[% END %]
16
[% END %]
25
17
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt (-5 / +1 lines)
Lines 88-97 Link Here
88
        <p>
88
        <p>
89
            <label for="desk">Desk:</label>
89
            <label for="desk">Desk:</label>
90
            <select name="desk_id" id="desk_id" class="input" tabindex="3">
90
            <select name="desk_id" id="desk_id" class="input" tabindex="3">
91
                <option id="nodesk" value="">---</option>
91
             [% PROCESS options_for_desks desks => Desks.all(), selected => desk_id  %]
92
                    [% FOREACH d IN Desks.all %]
93
                    <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" disabled >[% d.desk_name | html %]</option>
94
                    [% END %]
95
            </select>
92
            </select>
96
        </p>
93
        </p>
97
    [% END %]
94
    [% END %]
98
- 

Return to bug 26779