|
Lines 27-38
Link Here
|
| 27 |
[% FOREACH r IN registers %] |
27 |
[% FOREACH r IN registers %] |
| 28 |
[% IF r.branch == Branches.GetLoggedInBranchcode %] |
28 |
[% IF r.branch == Branches.GetLoggedInBranchcode %] |
| 29 |
[% IF r.selected %] |
29 |
[% IF r.selected %] |
| 30 |
<option class="[%- r.branch | html -%][%- IF r.branch_default -%]default[%- END -%]" value="[% r.id | html %]" selected="selected">[% r.name | html %]</option> |
30 |
<option class="[%- r.branch | html -%][%- IF r.branch_default -%] default[%- END -%]" value="[% r.id | html %]" selected="selected">[% r.name | html %]</option> |
| 31 |
[% ELSE %] |
31 |
[% ELSE %] |
| 32 |
<option class="[%- r.branch | html -%][%- IF r.branch_default -%]default[%- END -%]" value="[% r.id | html %]">[% r.name | html %]</option> |
32 |
<option class="[%- r.branch | html -%][%- IF r.branch_default -%] default[%- END -%]" value="[% r.id | html %]">[% r.name | html %]</option> |
| 33 |
[% END %] |
33 |
[% END %] |
| 34 |
[% ELSE %] |
34 |
[% ELSE %] |
| 35 |
<option class="[%- r.branch | html -%][%- IF r.branch_default -%]default[%- END -%]" value="[% r.id | html %]" disabled="disabled" style="display: none">[% r.name | html %]</option> |
35 |
<option class="[%- r.branch | html -%][%- IF r.branch_default -%] default[%- END -%]" value="[% r.id | html %]" disabled="disabled" style="display: none">[% r.name | html %]</option> |
| 36 |
[% END %] |
36 |
[% END %] |
| 37 |
[% END %] |
37 |
[% END %] |
| 38 |
[% END %] |
38 |
[% END %] |
| 39 |
- |
|
|