Owen Leonard
06b9194cdd
This patch adds "select all" and "select none" links to the display of libraries in the export bibliographic records form. Also modified: call number range and accession date fields have been grouped in their own fieldsets in the hopes that this is more readable. Page title and breadcrumbs have been corrected to read "Export data" instead of "MARC export," matching menu items. To test, apply the patch and go to Tools -> Export data. - Test the select all/select none links and confirm that they work as expected. - Confirm that the structural changes to the form look okay. Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Post sign-off revision: Use the standard "Clear all" instead of "Select none." Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
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">
|
|
<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>
|
|
<div class="branchgridrow">
|
|
[% FOREACH branch IN branches %]
|
|
<div class="branchgriditem">
|
|
[% IF branch.selected || (selectall == 1) %]
|
|
<input id="branch_[% branch.value %]" class="branch_select" type="checkbox" name="branch" value="[% branch.value %]" checked="checked" />
|
|
[% ELSE %]
|
|
<input id="branch_[% branch.value %]" class="branch_select" 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>
|