Lines 1-10
Link Here
|
1 |
[%# First check to see if we have anything selected, otherwise we select all %] |
1 |
[%# To select all include with selectall = 1 %] |
2 |
[% selectall = 1 %] |
|
|
3 |
[% FOREACH branch IN branches %] |
4 |
[% IF branch.selected %] |
5 |
[% selectall = 0 %] |
6 |
[% END %] |
7 |
[% END %] |
8 |
<div class="branchselector"> |
2 |
<div class="branchselector"> |
9 |
<p><a href="#" id="checkall"> <i class="fa fa-check"></i> Select all</a> | <a href="#" id="checknone"> <i class="fa fa-remove"></i> Clear all</a></p> |
3 |
<p><a href="#" id="checkall"> <i class="fa fa-check"></i> Select all</a> | <a href="#" id="checknone"> <i class="fa fa-remove"></i> Clear all</a></p> |
10 |
<div class="branchgridrow"> |
4 |
<div class="branchgridrow"> |
Lines 13-19
Link Here
|
13 |
[% IF branch.selected || (selectall == 1) %] |
7 |
[% IF branch.selected || (selectall == 1) %] |
14 |
<input id="branch_[% branch.branchcode | html %]" class="branch_select" type="checkbox" name="branch" value="[% branch.branchcode | html %]" checked="checked" /> |
8 |
<input id="branch_[% branch.branchcode | html %]" class="branch_select" type="checkbox" name="branch" value="[% branch.branchcode | html %]" checked="checked" /> |
15 |
[% ELSE %] |
9 |
[% ELSE %] |
16 |
<input id="branch_[% branch.branchcode | html %]" class="branch-select" type="checkbox" name="branch" value="[% branch.branchcode | html %]" /> |
10 |
<input id="branch_[% branch.branchcode | html %]" class="branch_select" type="checkbox" name="branch" value="[% branch.branchcode | html %]" /> |
17 |
[% END %] |
11 |
[% END %] |
18 |
|
12 |
|
19 |
<label for="branch_[% branch.branchcode | html %]">[% branch.branchname | html %]</label> |
13 |
<label for="branch_[% branch.branchcode | html %]">[% branch.branchname | html %]</label> |
20 |
- |
|
|