|
Lines 2-7
Link Here
|
| 2 |
[% USE raw %] |
2 |
[% USE raw %] |
| 3 |
[% USE Asset %] |
3 |
[% USE Asset %] |
| 4 |
[% PROCESS 'i18n.inc' %] |
4 |
[% PROCESS 'i18n.inc' %] |
|
|
5 |
[% PROCESS 'patron-search.inc' %] |
| 5 |
[% BLOCK csv_export %] |
6 |
[% BLOCK csv_export %] |
| 6 |
<div class="btn-group"> |
7 |
<div class="btn-group"> |
| 7 |
<a id="exportbutton" class="btn btn-default" href="[% script_name | url %]?op=export&basketno=[% basketno | uri %]&booksellerid=[% booksellerid | uri %]"><i class="fa fa-download"></i> Export as CSV</a> |
8 |
<a id="exportbutton" class="btn btn-default" href="[% script_name | url %]?op=export&basketno=[% basketno | uri %]&booksellerid=[% booksellerid | uri %]"><i class="fa fa-download"></i> Export as CSV</a> |
|
Lines 337-343
Link Here
|
| 337 |
</li> |
338 |
</li> |
| 338 |
[% END %] |
339 |
[% END %] |
| 339 |
<li> |
340 |
<li> |
| 340 |
<a href="#" id="add_user"><i class="fa fa-plus"></i> Add user</a> |
341 |
<a href="#patron_search_modal" id="add_user" class="btn btn-default" data-toggle="modal"><i class="fa fa-plus"></i> Add user</a> |
| 341 |
</li> |
342 |
</li> |
| 342 |
<li id="add_user_submit" style="display:none;"> |
343 |
<li id="add_user_submit" style="display:none;"> |
| 343 |
<button type="submit" class="btn btn-default btn-xs">Save changes</button> |
344 |
<button type="submit" class="btn btn-default btn-xs">Save changes</button> |
|
Lines 1023-1033
Link Here
|
| 1023 |
del_user( $(this).data("borrowernumber") ); |
1024 |
del_user( $(this).data("borrowernumber") ); |
| 1024 |
}); |
1025 |
}); |
| 1025 |
|
1026 |
|
| 1026 |
$("#add_user").on("click",function(e){ |
|
|
| 1027 |
e.preventDefault(); |
| 1028 |
UserSearchPopup(); |
| 1029 |
}); |
| 1030 |
|
| 1031 |
$(".transfer_order").on("click",function(e){ |
1027 |
$(".transfer_order").on("click",function(e){ |
| 1032 |
e.preventDefault(); |
1028 |
e.preventDefault(); |
| 1033 |
transfer_order_popup( $(this).data("ordernumber")); |
1029 |
transfer_order_popup( $(this).data("ordernumber")); |
|
Lines 1185-1198
Link Here
|
| 1185 |
}); |
1181 |
}); |
| 1186 |
}); |
1182 |
}); |
| 1187 |
|
1183 |
|
| 1188 |
function UserSearchPopup(f) { |
|
|
| 1189 |
window.open( |
| 1190 |
"/cgi-bin/koha/members/search.pl?columns=cardnumber,name,category,branch,action&selection_type=add&filter=baskets_managers", |
| 1191 |
'UserSearchPopup', |
| 1192 |
'width=1024, height=768, scrollbars=yes, toolbar=no,' |
| 1193 |
); |
| 1194 |
} |
| 1195 |
|
| 1196 |
function add_user(borrowernumber, borrowername) { |
1184 |
function add_user(borrowernumber, borrowername) { |
| 1197 |
var ids = $("#users_ids").val(); |
1185 |
var ids = $("#users_ids").val(); |
| 1198 |
if(ids.length > 0) { |
1186 |
if(ids.length > 0) { |
|
Lines 1221-1226
Link Here
|
| 1221 |
$("#add_user_submit").show(); |
1209 |
$("#add_user_submit").show(); |
| 1222 |
} |
1210 |
} |
| 1223 |
</script> |
1211 |
</script> |
|
|
1212 |
|
| 1213 |
[% INCLUDE 'select2.inc' %] |
| 1214 |
[% SET columns = ['cardnumber','name','category','branch','action'] %] |
| 1215 |
[% PROCESS patron_search_modal columns => columns, modal_title => t("Add user") %] |
| 1216 |
[% PROCESS patron_search_js columns => columns, filter => 'baskets_managers', actions => ["add"], preview_on_name_click => 1 %] |
| 1224 |
[% END %] |
1217 |
[% END %] |
| 1225 |
|
1218 |
|
| 1226 |
[% INCLUDE 'intranet-bottom.inc' %] |
1219 |
[% INCLUDE 'intranet-bottom.inc' %] |
| 1227 |
- |
|
|