Bug 16816: Do not copy parameters used when duplicating a report
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / branch-selector.inc
1 [%# First check to see if we have anything selected, otherwise we select all %]
2 [% selectall = 1 %]
3 [% FOREACH branch IN branches;
4     IF branch.selected;
5         selectall = 0;
6     END;
7 END %]
8 <div class="branchselector">
9     <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>
10     <div class="branchgridrow">
11     [% FOREACH branch IN branches %]
12         <div class="branchgriditem">
13             [% IF branch.selected || (selectall == 1) %]
14                 <input id="branch_[% branch.branchcode %]" class="branch_select" type="checkbox" name="branch" value="[% branch.branchcode %]" checked="checked" />
15             [% ELSE %]
16                 <input id="branch_[% branch.branchcode %]" class="branch-select" type="checkbox" name="branch" value="[% branch.branchcode %]" />
17             [% END %]
18
19             <label for="branch_[% branch.branchcode %]">[% branch.branchname %]</label>
20         </div>
21         [% IF loop.count() % 4 == 0 && !loop.last() %]
22             </div>
23             <div class="branchgridrow">
24         [% END %]
25     [% END %]
26     </div>
27 </div>