Lines 7-12
Link Here
|
7 |
[% USE AuthorisedValues %] |
7 |
[% USE AuthorisedValues %] |
8 |
[% USE Branches %] |
8 |
[% USE Branches %] |
9 |
[% PROCESS 'i18n.inc' %] |
9 |
[% PROCESS 'i18n.inc' %] |
|
|
10 |
[% PROCESS 'patron-search.inc' %] |
10 |
[% INCLUDE 'doc-head-open.inc' %] |
11 |
[% INCLUDE 'doc-head-open.inc' %] |
11 |
<title>[% FILTER collapse %] |
12 |
<title>[% FILTER collapse %] |
12 |
[% IF ( ordernumber ) %] |
13 |
[% IF ( ordernumber ) %] |
Lines 198-211
Link Here
|
198 |
$("#budget_id").change(); |
199 |
$("#budget_id").change(); |
199 |
}); |
200 |
}); |
200 |
|
201 |
|
201 |
function UserSearchPopup(f) { |
|
|
202 |
window.open( |
203 |
"/cgi-bin/koha/members/search.pl?columns=cardnumber,name,category,branch,action&selection_type=add", |
204 |
'UserSearchPopup', |
205 |
'width=1024, height=768, scrollbars=yes, toolbar=no,' |
206 |
); |
207 |
} |
208 |
|
209 |
function add_user(borrowernumber, borrowername) { |
202 |
function add_user(borrowernumber, borrowername) { |
210 |
var ids = $("#users_ids").val(); |
203 |
var ids = $("#users_ids").val(); |
211 |
if(ids.length > 0) { |
204 |
if(ids.length > 0) { |
Lines 232-237
Link Here
|
232 |
$("#users_ids").val(ids.join(':')); |
225 |
$("#users_ids").val(ids.join(':')); |
233 |
} |
226 |
} |
234 |
</script> |
227 |
</script> |
|
|
228 |
|
229 |
[% SET columns = ['cardnumber','name','category','branch','action'] %] |
230 |
[% PROCESS patron_search_js columns => columns, actions => ["add"], preview_on_name_click => 1 %] |
231 |
|
235 |
[% Asset.css("css/addbiblio.css") | $raw %] |
232 |
[% Asset.css("css/addbiblio.css") | $raw %] |
236 |
</head> |
233 |
</head> |
237 |
|
234 |
|
Lines 338-344
Link Here
|
338 |
</ul> |
335 |
</ul> |
339 |
<input type="hidden" id="users_ids" name="users_ids" value="[% users_ids | html %]" /> |
336 |
<input type="hidden" id="users_ids" name="users_ids" value="[% users_ids | html %]" /> |
340 |
<input type="hidden" id="op" name="op" value="mod_users" /> |
337 |
<input type="hidden" id="op" name="op" value="mod_users" /> |
341 |
<input type="button" id="add_user" class="btn btn-default" onclick="UserSearchPopup();" value="Add user" /> |
338 |
<a href="#patron_search_modal" id="add_user" class="btn btn-default" data-toggle="modal"><i class="fa fa-plus"></i> Add user</a> |
342 |
</div> |
339 |
</div> |
343 |
</li> |
340 |
</li> |
344 |
</ol> |
341 |
</ol> |
Lines 780-785
Link Here
|
780 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
777 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
781 |
</div> <!-- /.row --> |
778 |
</div> <!-- /.row --> |
782 |
|
779 |
|
|
|
780 |
[% PROCESS patron_search_modal columns => columns, modal_title => t("Add user") %] |
781 |
|
783 |
[% MACRO jsinclude BLOCK %] |
782 |
[% MACRO jsinclude BLOCK %] |
784 |
[% END %] |
783 |
[% END %] |
785 |
|
784 |
|
786 |
- |
|
|