Revert "Bug 36132: Allow to delete multiple patron lists on any page"
This reverts commit e1031b88f0.
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
8ff9e665e4
commit
52dccfe27b
|
|
@ -1,8 +1,13 @@
|
|||
[% USE raw %]
|
||||
[% USE Asset %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Patron lists › Tools › Koha</title>
|
||||
<title>[% FILTER collapse %]
|
||||
[% t("Patron lists") | html %] ›
|
||||
[% t("Tools") | html %] ›
|
||||
[% t("Koha") | html %]
|
||||
[% END %]</title>
|
||||
[% INCLUDE 'doc-head-close.inc' %]
|
||||
[% INCLUDE 'greybox.inc' %]
|
||||
</head>
|
||||
|
|
@ -27,6 +32,7 @@
|
|||
<div class="row">
|
||||
<div class="col-sm-10 col-sm-push-2">
|
||||
<main>
|
||||
[% INCLUDE 'messages.inc' %]
|
||||
|
||||
<div id="toolbar" class="btn-toolbar">
|
||||
<div class="btn-group">
|
||||
|
|
@ -34,7 +40,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<h1>Your patron lists </h1>
|
||||
<h1>Patron lists</h1>
|
||||
|
||||
[% IF ( lists ) %]
|
||||
|
||||
|
|
@ -77,8 +83,8 @@
|
|||
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="listactions[% l.patron_list_id | html %]">
|
||||
<li><a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% l.patron_list_id | uri %]"><i class="fa fa-user"></i> Add patrons</a></li>
|
||||
[% UNLESS shared_by_other %]
|
||||
<li><a href="/cgi-bin/koha/patron_lists/add-modify.pl?patron_list_id=[% l.patron_list_id | uri %]"><i class="fa fa-pencil"></i> Edit list</a></li>
|
||||
<li><a class="delete_patron" href="/cgi-bin/koha/patron_lists/delete.pl?patron_list_id=[% l.patron_list_id | html %]" data-list-name="[% l.name | html %]"><i class="fa fa-trash"></i> Delete list</a></li>
|
||||
<li><a href="/cgi-bin/koha/patron_lists/add-modify.pl?patron_list_id=[% l.patron_list_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit list</a></li>
|
||||
<li><a class="delete_patron" href="/cgi-bin/koha/patron_lists/delete.pl?patron_list_id=[% l.patron_list_id | html %]" data-list-name="[% l.name | html %]"><i class="fa fa-trash-can"></i> Delete list</a></li>
|
||||
[% END %]
|
||||
[% IF ( l.patron_list_patrons_rs.count ) %]
|
||||
<li class="divider"></li>
|
||||
|
|
@ -88,14 +94,14 @@
|
|||
[% IF CAN_user_tools_edit_patrons %]
|
||||
<li>
|
||||
<a href="/cgi-bin/koha/tools/modborrowers.pl?patron_list_id=[% l.patron_list_id | uri %]&op=show">
|
||||
<i class="fa fa-pencil"></i> Batch edit patrons
|
||||
<i class="fa-solid fa-pencil" aria-hidden="true"></i> Batch edit patrons
|
||||
</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF CAN_user_tools_delete_anonymize_patrons %]
|
||||
<li>
|
||||
<a href="/cgi-bin/koha/tools/cleanborrowers.pl?step=2&patron_list_id=[% l.patron_list_id | uri %]&checkbox=borrower">
|
||||
<i class="fa fa-trash"></i> Batch delete patrons
|
||||
<i class="fa fa-trash-can"></i> Batch delete patrons
|
||||
</a>
|
||||
</li>
|
||||
[% END %]
|
||||
|
|
@ -141,8 +147,8 @@
|
|||
[% MACRO jsinclude BLOCK %]
|
||||
[% Asset.js("js/tools-menu.js") | $raw %]
|
||||
[% INCLUDE 'datatables.inc' %]
|
||||
<script>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
var patronExportModal = $("#patronExportModal");
|
||||
var patronExportModalBody = $("#patronExportModal .modal-body");
|
||||
|
|
@ -151,10 +157,10 @@
|
|||
|
||||
$('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, {
|
||||
"autoWidth": false,
|
||||
"aoColumnDefs": [
|
||||
{"bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ]}
|
||||
"columnDefs": [
|
||||
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] }
|
||||
],
|
||||
"sPaginationType": "full"
|
||||
"pagingType": "full"
|
||||
} ));
|
||||
$(".delete_patron").on("click", function(){
|
||||
$(".dropdown").removeClass("open");
|
||||
|
|
@ -171,18 +177,18 @@
|
|||
}
|
||||
});
|
||||
|
||||
$(document).on("click", ".select_patron", function() {
|
||||
if($(this).is(':checked')){
|
||||
$("#delete_selected_lists").attr("class","btn btn-default btn-sm");
|
||||
selectedPatronLists.push($(this).data("patron-list-id"));
|
||||
}
|
||||
else {
|
||||
selectedPatronLists = selectedPatronLists.filter(item => item !== $(this).data("patron-list-id"));
|
||||
if(selectedPatronLists.length === 0){
|
||||
$("#delete_selected_lists").attr("class","btn btn-default btn-sm disabled");
|
||||
$(".select_patron").on("click", function() {
|
||||
if($(this).is(':checked')){
|
||||
$("#delete_selected_lists").attr("class","btn btn-default btn-sm");
|
||||
selectedPatronLists.push($(this).data("patron-list-id"));
|
||||
}
|
||||
}
|
||||
});
|
||||
else {
|
||||
selectedPatronLists = selectedPatronLists.filter(item => item !== $(this).data("patron-list-id"));
|
||||
if(selectedPatronLists.length === 0){
|
||||
$("#delete_selected_lists").attr("class","btn btn-default btn-sm disabled");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$(".print_cards").on("click", function(e){
|
||||
e.preventDefault();
|
||||
|
|
|
|||
Loading…
Reference in New Issue