Lines 82-97
Link Here
|
82 |
[% UNLESS( singleBranchMode) %] |
82 |
[% UNLESS( singleBranchMode) %] |
83 |
<td class="branch"> |
83 |
<td class="branch"> |
84 |
<span class="tdlabel">Pick up location:</span> |
84 |
<span class="tdlabel">Pick up location:</span> |
|
|
85 |
[% HOLD.branch.branchname | html %] |
85 |
[% IF ( HOLD.can_change_branch_opac ) %] |
86 |
[% IF ( HOLD.can_change_branch_opac ) %] |
86 |
<form class="change_branch" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
87 |
<button type="button" class="btn btn-sm btn-link" data-toggle="modal" data-target="#changePickup[% HOLD.reserve_id | html %]"> |
87 |
<select name="new_branch" > |
88 |
<i class="fa fa-pencil" aria-hidden="true"></i> Change |
88 |
[% PROCESS options_for_libraries libraries = Branches.pickup_locations({ search_params => { biblio => HOLD.biblionumber, patron => HOLD.borrower }, selected => HOLD.branchcode }) %] |
89 |
</button> |
89 |
</select> |
90 |
<!-- Change pickup location modal --> |
90 |
<input type="hidden" name="new_branch_reserveid" value="[% HOLD.reserve_id | html %]" /> |
91 |
<div class="modal" id="changePickup[% HOLD.reserve_id | html %]" tabindex="-1" aria-labelledby="changePickup[% HOLD.reserve_id | html %]Label" aria-hidden="true"> |
91 |
<button class="btn btn-primary" type="submit" name="change_branch" value="1">Change</button> |
92 |
<div class="modal-dialog"> |
92 |
</form> |
93 |
<form id="change_branch_form[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
93 |
[% ELSE %] |
94 |
<div class="modal-content"> |
94 |
[% HOLD.branch.branchname | html %] |
95 |
<div class="modal-header"> |
|
|
96 |
<h5 class="modal-title" id="changePickup[% HOLD.reserve_id | html %]Label">Change pickup location for <em>[% INCLUDE 'biblio-title.inc' biblio=HOLD.biblio %]</em></h5> |
97 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"> |
98 |
<span aria-hidden="true">×</span> |
99 |
</button> |
100 |
</div> |
101 |
<div class="modal-body"> |
102 |
<div class="form-group"> |
103 |
<label for="new_branch[% HOLD.reserve_id | html %]">New pickup location:</label> |
104 |
<select name="new_pickup_location" id="new_branch[% HOLD.reserve_id | html %]" class="form-control"> |
105 |
[% PROCESS options_for_libraries libraries = Branches.pickup_locations({ search_params => { biblio => HOLD.biblionumber, patron => HOLD.borrower }, selected => HOLD.branchcode }) %] |
106 |
</select> |
107 |
</div> |
108 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
109 |
</div> |
110 |
<div class="modal-footer"> |
111 |
<button type="submit" name="change_branch" value="1" class="btn btn-primary"><i class="fa fa-check" aria-hidden="true"></i> Save</button> |
112 |
<button type="button" class="btn btn-secondary" data-dismiss="modal"><i class="fa fa-remove" aria-hidden="true"></i> Cancel</button> |
113 |
</div> |
114 |
</div> <!-- /.modal-content --> |
115 |
</form> |
116 |
</div> <!-- /.modal-dialog --> |
117 |
</div> <!-- /.modal --> |
95 |
[% END %] |
118 |
[% END %] |
96 |
</td> |
119 |
</td> |
97 |
[% END %] |
120 |
[% END %] |