[%# To select all include with selectall = 1 %]

Select all | Clear all

[% FOREACH branch IN branches %]
[% IF branch.selected || (selectall == 1) %] [% ELSE %] [% END %]
[% IF loop.count() % 4 == 0 && !loop.last() %]
[% END %] [% END %]