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