|
Lines 1-13
Link Here
|
| 1 |
[% USE raw %] |
1 |
[% USE raw %] |
| 2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
| 3 |
[% PROCESS 'i18n.inc' %] |
|
|
| 4 |
[% SET footerjs = 1 %] |
3 |
[% SET footerjs = 1 %] |
| 5 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
| 6 |
<title>[% FILTER collapse %] |
5 |
<title>Patron lists › Tools › Koha</title> |
| 7 |
[% t("Patron lists") | html %] › |
|
|
| 8 |
[% t("Tools") | html %] › |
| 9 |
[% t("Koha") | html %] |
| 10 |
[% END %]</title> |
| 11 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
| 12 |
[% INCLUDE 'greybox.inc' %] |
7 |
[% INCLUDE 'greybox.inc' %] |
| 13 |
</head> |
8 |
</head> |
|
Lines 32-38
Link Here
|
| 32 |
<div class="row"> |
27 |
<div class="row"> |
| 33 |
<div class="col-sm-10 col-sm-push-2"> |
28 |
<div class="col-sm-10 col-sm-push-2"> |
| 34 |
<main> |
29 |
<main> |
| 35 |
[% INCLUDE 'messages.inc' %] |
|
|
| 36 |
|
30 |
|
| 37 |
<div id="toolbar" class="btn-toolbar"> |
31 |
<div id="toolbar" class="btn-toolbar"> |
| 38 |
<div class="btn-group"> |
32 |
<div class="btn-group"> |
|
Lines 40-46
Link Here
|
| 40 |
</div> |
34 |
</div> |
| 41 |
</div> |
35 |
</div> |
| 42 |
|
36 |
|
| 43 |
<h1>Patron lists</h1> |
37 |
<h1>Your patron lists </h1> |
| 44 |
|
38 |
|
| 45 |
[% IF ( lists ) %] |
39 |
[% IF ( lists ) %] |
| 46 |
|
40 |
|
|
Lines 83-90
Link Here
|
| 83 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="listactions[% l.patron_list_id | html %]"> |
77 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="listactions[% l.patron_list_id | html %]"> |
| 84 |
<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> |
78 |
<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> |
| 85 |
[% UNLESS shared_by_other %] |
79 |
[% UNLESS shared_by_other %] |
| 86 |
<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> |
80 |
<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> |
| 87 |
<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> |
81 |
<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> |
| 88 |
[% END %] |
82 |
[% END %] |
| 89 |
[% IF ( l.patron_list_patrons_rs.count ) %] |
83 |
[% IF ( l.patron_list_patrons_rs.count ) %] |
| 90 |
<li class="divider"></li> |
84 |
<li class="divider"></li> |
|
Lines 94-107
Link Here
|
| 94 |
[% IF CAN_user_tools_edit_patrons %] |
88 |
[% IF CAN_user_tools_edit_patrons %] |
| 95 |
<li> |
89 |
<li> |
| 96 |
<a href="/cgi-bin/koha/tools/modborrowers.pl?patron_list_id=[% l.patron_list_id | uri %]&op=show"> |
90 |
<a href="/cgi-bin/koha/tools/modborrowers.pl?patron_list_id=[% l.patron_list_id | uri %]&op=show"> |
| 97 |
<i class="fa-solid fa-pencil" aria-hidden="true"></i> Batch edit patrons |
91 |
<i class="fa fa-pencil"></i> Batch edit patrons |
| 98 |
</a> |
92 |
</a> |
| 99 |
</li> |
93 |
</li> |
| 100 |
[% END %] |
94 |
[% END %] |
| 101 |
[% IF CAN_user_tools_delete_anonymize_patrons %] |
95 |
[% IF CAN_user_tools_delete_anonymize_patrons %] |
| 102 |
<li> |
96 |
<li> |
| 103 |
<a href="/cgi-bin/koha/tools/cleanborrowers.pl?step=2&patron_list_id=[% l.patron_list_id | uri %]&checkbox=borrower"> |
97 |
<a href="/cgi-bin/koha/tools/cleanborrowers.pl?step=2&patron_list_id=[% l.patron_list_id | uri %]&checkbox=borrower"> |
| 104 |
<i class="fa fa-trash-can"></i> Batch delete patrons |
98 |
<i class="fa fa-trash"></i> Batch delete patrons |
| 105 |
</a> |
99 |
</a> |
| 106 |
</li> |
100 |
</li> |
| 107 |
[% END %] |
101 |
[% END %] |
|
Lines 147-154
Link Here
|
| 147 |
[% MACRO jsinclude BLOCK %] |
141 |
[% MACRO jsinclude BLOCK %] |
| 148 |
[% Asset.js("js/tools-menu.js") | $raw %] |
142 |
[% Asset.js("js/tools-menu.js") | $raw %] |
| 149 |
[% INCLUDE 'datatables.inc' %] |
143 |
[% INCLUDE 'datatables.inc' %] |
| 150 |
|
|
|
| 151 |
<script> |
144 |
<script> |
|
|
145 |
|
| 152 |
$(document).ready(function() { |
146 |
$(document).ready(function() { |
| 153 |
var patronExportModal = $("#patronExportModal"); |
147 |
var patronExportModal = $("#patronExportModal"); |
| 154 |
var patronExportModalBody = $("#patronExportModal .modal-body"); |
148 |
var patronExportModalBody = $("#patronExportModal .modal-body"); |
|
Lines 157-166
Link Here
|
| 157 |
|
151 |
|
| 158 |
$('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, { |
152 |
$('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, { |
| 159 |
"autoWidth": false, |
153 |
"autoWidth": false, |
| 160 |
"columnDefs": [ |
154 |
"aoColumnDefs": [ |
| 161 |
{ "orderable": false, "searchable": false, "targets": [ 'NoSort' ] } |
155 |
{"bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ]} |
| 162 |
], |
156 |
], |
| 163 |
"pagingType": "full" |
157 |
"sPaginationType": "full" |
| 164 |
} )); |
158 |
} )); |
| 165 |
$(".delete_patron").on("click", function(){ |
159 |
$(".delete_patron").on("click", function(){ |
| 166 |
$(".dropdown").removeClass("open"); |
160 |
$(".dropdown").removeClass("open"); |
|
Lines 177-194
Link Here
|
| 177 |
} |
171 |
} |
| 178 |
}); |
172 |
}); |
| 179 |
|
173 |
|
| 180 |
$(".select_patron").on("click", function() { |
174 |
$(document).on("click", ".select_patron", function() { |
| 181 |
if($(this).is(':checked')){ |
175 |
if($(this).is(':checked')){ |
| 182 |
$("#delete_selected_lists").attr("class","btn btn-default btn-sm"); |
176 |
$("#delete_selected_lists").attr("class","btn btn-default btn-sm"); |
| 183 |
selectedPatronLists.push($(this).data("patron-list-id")); |
177 |
selectedPatronLists.push($(this).data("patron-list-id")); |
| 184 |
} |
178 |
} |
| 185 |
else { |
179 |
else { |
| 186 |
selectedPatronLists = selectedPatronLists.filter(item => item !== $(this).data("patron-list-id")); |
180 |
selectedPatronLists = selectedPatronLists.filter(item => item !== $(this).data("patron-list-id")); |
| 187 |
if(selectedPatronLists.length === 0){ |
181 |
if(selectedPatronLists.length === 0){ |
| 188 |
$("#delete_selected_lists").attr("class","btn btn-default btn-sm disabled"); |
182 |
$("#delete_selected_lists").attr("class","btn btn-default btn-sm disabled"); |
| 189 |
} |
|
|
| 190 |
} |
183 |
} |
| 191 |
}); |
184 |
} |
|
|
185 |
}); |
| 192 |
|
186 |
|
| 193 |
$(".print_cards").on("click", function(e){ |
187 |
$(".print_cards").on("click", function(e){ |
| 194 |
e.preventDefault(); |
188 |
e.preventDefault(); |
| 195 |
- |
|
|