Lines 6-12
Link Here
|
6 |
[% INCLUDE 'datatables.inc' %] |
6 |
[% INCLUDE 'datatables.inc' %] |
7 |
<script type="text/javascript"> |
7 |
<script type="text/javascript"> |
8 |
//<![CDATA[ |
8 |
//<![CDATA[ |
9 |
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this patron from the card batch?"); |
|
|
10 |
function DeleteConfirm() { |
9 |
function DeleteConfirm() { |
11 |
var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id %]"); |
10 |
var msg = _("Are you sure you want to delete batch %s?").format("[% batch_id %]"); |
12 |
var answer = confirm(msg); |
11 |
var answer = confirm(msg); |
Lines 52-58
Link Here
|
52 |
if (bor_nums.value == '') { |
51 |
if (bor_nums.value == '') { |
53 |
window.open("/cgi-bin/koha/patroncards/add_user_search.pl", |
52 |
window.open("/cgi-bin/koha/patroncards/add_user_search.pl", |
54 |
'PatronPopup', |
53 |
'PatronPopup', |
55 |
'width=740,height=450,location=yes,toolbar=no,' |
54 |
'width=840,height=500,location=yes,toolbar=no,' |
56 |
+ 'scrollbars=yes,resize=yes'); |
55 |
+ 'scrollbars=yes,resize=yes'); |
57 |
} |
56 |
} |
58 |
else { |
57 |
else { |
Lines 148-153
Link Here
|
148 |
Xport('batch'); |
147 |
Xport('batch'); |
149 |
return false; |
148 |
return false; |
150 |
}); |
149 |
}); |
|
|
150 |
$(".delete").on("click", function(){ |
151 |
return confirmDelete( _("Are you sure you want to delete this patron from the card batch?") ); |
152 |
}); |
153 |
$(".export").on("click", function(e){ |
154 |
e.preventDefault(); |
155 |
var label_id = $(this).data("label-id"); |
156 |
var batch_id = $(this).data("batch-id"); |
157 |
GB_showCenter( _("Export single card"),'/cgi-bin/koha/patroncards/print.pl?batch_id='+batch_id+'&label_id='+label_id, 400, 800); |
158 |
}); |
151 |
}); |
159 |
}); |
152 |
//]]> |
160 |
//]]> |
153 |
</script> |
161 |
</script> |
Lines 201-212
Link Here
|
201 |
</div> |
209 |
</div> |
202 |
</form> |
210 |
</form> |
203 |
<div id="batch-manage" class="action"> |
211 |
<div id="batch-manage" class="action"> |
204 |
<a class="btn btn-small" id="additems" href="#"><icon class="fa fa-plus"></icon> Add patron(s)</a>[% IF ( table_loop ) %] |
212 |
<a class="btn btn-small" id="additems" href="#"><i class="fa fa-plus"></i> Add patron(s)</a>[% IF ( table_loop ) %] |
205 |
<a class="btn btn-small" id="removeitems" href="#"><icon class="fa fa-trash"></icon> Remove selected patrons</a> |
213 |
<a class="btn btn-small" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected patrons</a> |
206 |
<a class="btn btn-small" id="deletebatch" href="#"><icon class="fa fa-minus-square"></icon> Delete batch</a> |
214 |
<a class="btn btn-small" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a> |
207 |
<a class="btn btn-small" id="deduplicate" href="#"><icon class="fa fa-minus"></icon> Remove duplicates</a> |
215 |
<a class="btn btn-small" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a> |
208 |
<a class="btn btn-small" id="exportitems" href="#"><icon class="fa fa-share-square-o"></icon> Export selected card(s)</a> |
216 |
<a class="btn btn-small" id="exportitems" href="#"><i class="fa fa-share-square-o"></i> Export selected card(s)</a> |
209 |
<a class="btn btn-small" id="exportbatch" href="#"><icon class="fa fa-share-square-o"></icon> Export card batch</a>[% END %] |
217 |
<a class="btn btn-small" id="exportbatch" href="#"><i class="fa fa-share-square-o"></i> Export card batch</a>[% END %] |
210 |
</div> |
218 |
</div> |
211 |
[% IF ( table_loop ) %] |
219 |
[% IF ( table_loop ) %] |
212 |
<form name="items" class="checkboxed"> |
220 |
<form name="items" class="checkboxed"> |
Lines 238-245
Link Here
|
238 |
[% FOREACH text_field IN table_loo.text_fields %] |
246 |
[% FOREACH text_field IN table_loo.text_fields %] |
239 |
[% IF ( text_field.select_field ) %] |
247 |
[% IF ( text_field.select_field ) %] |
240 |
<td> |
248 |
<td> |
241 |
<a class="btn btn-mini" onclick="return confirm(MSG_CONFIRM_DELETE);" href="/cgi-bin/koha/patroncards/edit-batch.pl?op=remove&batch_id=[% batch_id %]&label_id=[% text_field.field_value %]"><icon class="fa fa-trash"></icon> Delete</a> |
249 |
<a class="btn btn-mini delete" href="/cgi-bin/koha/patroncards/edit-batch.pl?op=remove&batch_id=[% batch_id %]&label_id=[% text_field.field_value %]"><i class="fa fa-trash"></i> Delete</a> |
242 |
<a class="btn btn-mini" href="#" onclick="GB_showCenter('Export single card','/cgi-bin/koha/patroncards/print.pl?batch_id=[% batch_id %]&label_id=[% text_field.field_value %]')"><icon class="fa fa-share-square-o"></icon> Export</a> |
250 |
<a class="btn btn-mini export" href="#" data-batch-id="[% batch_id %]" data-label-id="[% text_field.field_value %]"><i class="fa fa-share-square-o"></i> Export</a> |
243 |
</td> |
251 |
</td> |
244 |
<td><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td> |
252 |
<td><input type="checkbox" name="action" value="[% text_field.field_value %]" /></td> |
245 |
[% ELSE %] |
253 |
[% ELSE %] |