Bug 16522: (follow-up) MARC display templates and get_marc_host fixes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / branch-selector.inc
1 [%# To select all include with selectall = 1 %]
2 <div class="branchselector">
3     <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>
4     <div class="branchgridrow">
5     [% FOREACH branch IN branches %]
6         <div class="branchgriditem">
7             [% IF branch.selected || (selectall == 1) %]
8                 <input id="branch_[% branch.branchcode | html %]" class="branch_select" type="checkbox" name="branch" value="[% branch.branchcode | html %]" checked="checked" />
9             [% ELSE %]
10                 <input id="branch_[% branch.branchcode | html %]" class="branch_select" type="checkbox" name="branch" value="[% branch.branchcode | html %]" />
11             [% END %]
12
13             <label for="branch_[% branch.branchcode | html %]">[% branch.branchname | html %]</label>
14         </div>
15         [% IF loop.count() % 4 == 0 && !loop.last() %]
16             </div>
17             <div class="branchgridrow">
18         [% END %]
19     [% END %]
20     </div>
21 </div>