1 [%# First check to see if we have anything selected, otherwise we select all %]
3 [% FOREACH branch IN branches;
8 <div class="branchselector">
9 <div class="branchgridrow">
10 [% FOREACH branch IN branches %]
11 <div class="branchgriditem">
12 [% IF branch.selected || (selectall == 1) %]
13 <input id="branch_[% branch.value %]" type="checkbox" name="branch" value="[% branch.value %]" checked="checked" />
15 <input id="branch_[% branch.value %]" type="checkbox" name="branch" value="[% branch.value %]" />
18 <label for="branch_[% branch.value %]">[% branch.branchname %]</label>
20 [% IF loop.count() % 4 == 0 && !loop.last() %]
22 <div class="branchgridrow">