Koha/koha-tmpl/intranet-tmpl/prog/en/includes/branch-selector.inc
Kyle M Hall ec52df6025 Bug 13040 [QA Followup] - Fix koha-qa.pl issues
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-01-26 16:22:12 -03:00

26 lines
940 B
HTML

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