1 [%# To select all include with selectall = 1 %]
2 <div class="branchselector">
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>
4 <div class="branchgridrow">
5 [% FOREACH branch IN branches %]
6 <div class="branchgriditem">
7 [% IF branch.selected || (selectall == 1) %]
8 <input id="branch_[% branch.branchcode | html %]" class="branch_select" type="checkbox" name="branch" value="[% branch.branchcode | html %]" checked="checked" />
10 <input id="branch_[% branch.branchcode | html %]" class="branch_select" type="checkbox" name="branch" value="[% branch.branchcode | html %]" />
13 <label for="branch_[% branch.branchcode | html %]">[% branch.branchname | html %]</label>
15 [% IF loop.count() % 4 == 0 && !loop.last() %]
17 <div class="branchgridrow">