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-345
Link Here
|
338 |
[% END %] |
335 |
[% END %] |
339 |
</ul> |
336 |
</ul> |
340 |
<input type="hidden" id="users_ids" name="users_ids" value="[% users_ids | html %]" /> |
337 |
<input type="hidden" id="users_ids" name="users_ids" value="[% users_ids | html %]" /> |
341 |
<input type="hidden" id="op" name="op" value="cud-order" /> |
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 |
<input type="button" id="add_user" class="btn btn-default" onclick="UserSearchPopup();" value="Add user" /> |
|
|
343 |
</div> |
339 |
</div> |
344 |
</li> |
340 |
</li> |
345 |
</ol> |
341 |
</ol> |
Lines 738-743
Link Here
|
738 |
[% END %] |
734 |
[% END %] |
739 |
|
735 |
|
740 |
<fieldset class="action"> |
736 |
<fieldset class="action"> |
|
|
737 |
<input type="hidden" id="op" name="op" value="cud-order" /> |
741 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
738 |
<input type="hidden" name="subscriptionid" value="[% subscriptionid | html %]" /> |
742 |
<input type="submit" class="btn btn-primary" value="Save" /> |
739 |
<input type="submit" class="btn btn-primary" value="Save" /> |
743 |
[% IF (suggestionid) %] |
740 |
[% IF (suggestionid) %] |
Lines 781-786
Link Here
|
781 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
778 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
782 |
</div> <!-- /.row --> |
779 |
</div> <!-- /.row --> |
783 |
|
780 |
|
|
|
781 |
[% PROCESS patron_search_modal columns => columns, modal_title => t("Add user") %] |
782 |
|
784 |
[% MACRO jsinclude BLOCK %] |
783 |
[% MACRO jsinclude BLOCK %] |
785 |
[% END %] |
784 |
[% END %] |
786 |
|
785 |
|
787 |
- |
|
|