Lines 613-626
Link Here
|
613 |
[% SWITCH action %] |
613 |
[% SWITCH action %] |
614 |
[% CASE 'select' %] |
614 |
[% CASE 'select' %] |
615 |
let patron_str = JSON.stringify(row); |
615 |
let patron_str = JSON.stringify(row); |
616 |
action_node += '<a href="#" class="btn btn-default btn-xs select_user" data-borrowernumber="' + patron_id + '">Select</a>'; |
616 |
action_node += '<a href="#" class="btn btn-default btn-xs select_user" data-borrowernumber="' + patron_id + '">' + _("Select") + '</a>'; |
617 |
let input_node = $('<input type="hidden" id="borrower_data' + patron_id + '" name="borrower_data'+ patron_id + '"/>'); |
617 |
let input_node = $('<input type="hidden" id="borrower_data' + patron_id + '" name="borrower_data'+ patron_id + '"/>'); |
618 |
$(input_node).val(patron_str); |
618 |
$(input_node).val(patron_str); |
619 |
action_node += $(input_node).prop('outerHTML'); |
619 |
action_node += $(input_node).prop('outerHTML'); |
620 |
[% CASE 'add' %] |
620 |
[% CASE 'add' %] |
621 |
action_node += '<a href="#" class="btn btn-default btn-xs add_user" data-borrowernumber="' + patron_id + '" data-firstname="' + encodeURIComponent(row.firstname) + '" data-surname="' + encodeURIComponent(row.surname) + '">Add</a><input type="hidden" id="borrower_data' + patron_id + '" name="borrower_data'+ patron_id + '" />'; |
621 |
action_node += '<a href="#" class="btn btn-default btn-xs add_user" data-borrowernumber="' + patron_id + '" data-firstname="' + encodeURIComponent(row.firstname) + '" data-surname="' + encodeURIComponent(row.surname) + '">' + _("Add") + '</a><input type="hidden" id="borrower_data' + patron_id + '" name="borrower_data'+ patron_id + '" />'; |
622 |
[% CASE 'edit' %] |
622 |
[% CASE 'edit' %] |
623 |
action_node += '<a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=' + patron_id + '" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>'; |
623 |
action_node += '<a href="/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=' + patron_id + '" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> ' + _("Edit") + '</a>'; |
624 |
[% CASE 'checkout' %] |
624 |
[% CASE 'checkout' %] |
625 |
[% IF CAN_user_circulate_circulate_remaining_permissions %] |
625 |
[% IF CAN_user_circulate_circulate_remaining_permissions %] |
626 |
action_node += '<a class="btn btn-default btn-xs" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=' + patron_id + '"><i class="fa fa-barcode"></i> ' + _("Check out") + '</a>'; |
626 |
action_node += '<a class="btn btn-default btn-xs" href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=' + patron_id + '"><i class="fa fa-barcode"></i> ' + _("Check out") + '</a>'; |
627 |
- |
|
|