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 <input id="branch_[% branch.value %]" type="checkbox" name="branch" value="[% branch.value %]"[% IF branch.selected || (selectall == 1) %] checked="checked" [% END %]/>
13 <label for="branch_[% branch.value %]">[% branch.branchname %]</label>
15 [% IF loop.count() % 4 == 0 && !loop.last() %]
17 <div class="branchgridrow">