Lines 14-21
Link Here
|
14 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
14 |
<a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › |
15 |
<a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> › |
15 |
<a href="/cgi-bin/koha/patroncards/home.pl">Patron card creator</a> › |
16 |
<a href="/cgi-bin/koha/patroncards/manage.pl?card_element=batch">Batches</a> › |
16 |
<a href="/cgi-bin/koha/patroncards/manage.pl?card_element=batch">Batches</a> › |
17 |
[% IF batch_id %] |
17 |
[% IF description %] |
18 |
Edit ([% batch_id %]) |
18 |
Edit <a href="/cgi-bin/koha/patroncards/edit-batch.pl?op=edit&element_id=[% batch_id %]">[% description %]</a> |
|
|
19 |
[% ELSIF batch_id %] |
20 |
Edit <a href="/cgi-bin/koha/patroncards/edit-batch.pl?op=edit&element_id=[% batch_id %]">([% batch_id %])</a> |
19 |
[% ELSE %] |
21 |
[% ELSE %] |
20 |
New |
22 |
New |
21 |
[% END %] |
23 |
[% END %] |
Lines 47-54
Link Here
|
47 |
<input type="hidden" name="op" value="add" /> |
49 |
<input type="hidden" name="op" value="add" /> |
48 |
<input type="hidden" name="batch_id" value="[% batch_id %]" /> |
50 |
<input type="hidden" name="batch_id" value="[% batch_id %]" /> |
49 |
<label for="description">Batch description: </label> |
51 |
<label for="description">Batch description: </label> |
50 |
<input type="text" name="description" value="[% description %]"> |
52 |
<input type="text" name="description" value="[% description %]"> <span id="change-status"></span> |
51 |
<a href="#" id="savedesc" data-batch_id="[% batch_id %]" class="btn btn-default btn-xs">Save description</a> <span id="change-status"></span> |
|
|
52 |
</li><li> |
53 |
</li><li> |
53 |
<label for="bor_num_list">Add by borrowernumber(s): |
54 |
<label for="bor_num_list">Add by borrowernumber(s): |
54 |
<br /> <span class="hint">One borrowernumber per line.</span> |
55 |
<br /> <span class="hint">One borrowernumber per line.</span> |
Lines 60-65
Link Here
|
60 |
</form> |
61 |
</form> |
61 |
<div id="batch-manage" class="action"> |
62 |
<div id="batch-manage" class="action"> |
62 |
<a class="btn btn-default btn-sm" id="additems" href="#"><i class="fa fa-plus"></i> Add patron(s)</a>[% IF ( table_loop ) %] |
63 |
<a class="btn btn-default btn-sm" id="additems" href="#"><i class="fa fa-plus"></i> Add patron(s)</a>[% IF ( table_loop ) %] |
|
|
64 |
<a class="btn btn-default btn-sm" id="savedesc" href="#" data-batch_id="[% batch_id %]"><i class="fa fa-save"></i> Save description</a> |
63 |
<a class="btn btn-default btn-sm" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected patrons</a> |
65 |
<a class="btn btn-default btn-sm" id="removeitems" href="#"><i class="fa fa-trash"></i> Remove selected patrons</a> |
64 |
<a class="btn btn-default btn-sm" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a> |
66 |
<a class="btn btn-default btn-sm" id="deletebatch" href="#"><i class="fa fa-minus-square"></i> Delete batch</a> |
65 |
<a class="btn btn-default btn-sm" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a> |
67 |
<a class="btn btn-default btn-sm" id="deduplicate" href="#"><i class="fa fa-minus"></i> Remove duplicates</a> |
Lines 271-277
Link Here
|
271 |
GB_showCenter( _("Export single card"),'/cgi-bin/koha/patroncards/print.pl?batch_id='+batch_id+'&label_id='+label_id, 400, 800); |
273 |
GB_showCenter( _("Export single card"),'/cgi-bin/koha/patroncards/print.pl?batch_id='+batch_id+'&label_id='+label_id, 400, 800); |
272 |
}); |
274 |
}); |
273 |
$("#savedesc").click(function(event){ |
275 |
$("#savedesc").click(function(event){ |
274 |
var newdescription = $(this).siblings('input[name="description"]').val(); |
276 |
var newdescription = $('input[name="description"]').val(); |
275 |
var batch_id = $(this).data('batch_id'); |
277 |
var batch_id = $(this).data('batch_id'); |
276 |
var ajaxData = { |
278 |
var ajaxData = { |
277 |
'newdescription': newdescription, |
279 |
'newdescription': newdescription, |