|
Lines 151-162
Link Here
|
| 151 |
[% END # / IF SuspendHoldsOpac %] |
151 |
[% END # / IF SuspendHoldsOpac %] |
| 152 |
[% IF ! onlyinfo %] |
152 |
[% IF ! onlyinfo %] |
| 153 |
<td class="modify"> |
153 |
<td class="modify"> |
|
|
154 |
[% SET owner_cancellation_request = HOLD.owner_cancellation_request %] |
| 154 |
[% IF ( HOLD.is_cancelable_from_opac ) %] |
155 |
[% IF ( HOLD.is_cancelable_from_opac ) %] |
| 155 |
<form id="delete_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
156 |
<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 %]" /> |
157 |
<input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" /> |
| 157 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
158 |
<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> |
159 |
<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> |
160 |
</form> |
|
|
161 |
[% ELSIF HOLD.owner_cancellation_request %] |
| 162 |
[% IF owner_cancellation_request.status == 'rejected' %] |
| 163 |
<button type="submit" class="btn btn-sm btn-danger disabled"><i class="fa fa-remove" aria-hidden="true"></i> [% t('Cancellation rejected') | html %]</button> |
| 164 |
[% ELSE %] |
| 165 |
<button type="submit" class="btn btn-sm btn-danger disabled"><i class="fa fa-remove" aria-hidden="true"></i> [% t('Cancellation requested') | html %]</button> |
| 166 |
[% END %] |
| 167 |
[% ELSIF HOLD.cancellation_requestable_from_opac %] |
| 168 |
<form id="req_cancel_hold_[% HOLD.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post"> |
| 169 |
<input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" /> |
| 170 |
<input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" /> |
| 171 |
<input type="hidden" name="cancellation_request" value="1" /> |
| 172 |
<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> |
| 173 |
</form> |
| 160 |
[% END %] |
174 |
[% END %] |
| 161 |
</td> |
175 |
</td> |
| 162 |
[% END # / IF onlyinfo %] |
176 |
[% END # / IF onlyinfo %] |