Lines 153-162
Link Here
|
153 |
<td class="modify"> |
153 |
<td class="modify"> |
154 |
[% IF ( HOLD.is_cancelable_from_opac ) %] |
154 |
[% IF ( HOLD.is_cancelable_from_opac ) %] |
155 |
<form id="delete_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
155 |
<form id="delete_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
156 |
<input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" /> |
156 |
<input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" /> |
157 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
157 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
158 |
<button data-title="[% INCLUDE 'biblio-title-head.inc' biblio=HOLD.biblio %]" data-reserve_id="[% HOLD.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-delete-hold"><i class="fa fa-remove" aria-hidden="true"></i> [% tp('Cancel hold button', 'Cancel') | html %]</button> |
158 |
<button data-title="[% INCLUDE 'biblio-title-head.inc' biblio=HOLD.biblio %]" data-reserve_id="[% HOLD.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-delete-hold"><i class="fa fa-remove" aria-hidden="true"></i> [% tp('Cancel hold button', 'Cancel') | html %]</button> |
159 |
</form> |
159 |
</form> |
|
|
160 |
[% ELSIF HOLD.cancellation_requests.count > 0 %] |
161 |
<button type="submit" class="btn btn-sm btn-danger disabled"><i class="fa fa-remove" aria-hidden="true"></i> [% t('Cancellation requested') | html %]</button> |
162 |
[% ELSIF HOLD.is_waiting && HOLD.cancellation_requestable_from_opac %] |
163 |
<form id="req_cancel_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
164 |
<input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" /> |
165 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
166 |
<input type="hidden" name="cancellation_request" value="1" /> |
167 |
<button data-title="[% INCLUDE 'biblio-title-head.inc' biblio=HOLD.biblio %]" data-reserve_id="[% HOLD.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-req-delete-hold"><i class="fa fa-remove" aria-hidden="true"></i> [% tp('Cancellation request hold button', 'Request cancellation') | html %]</button> |
168 |
</form> |
160 |
[% END %] |
169 |
[% END %] |
161 |
</td> |
170 |
</td> |
162 |
[% END # / IF onlyinfo %] |
171 |
[% END # / IF onlyinfo %] |