In the hold edit page, where users can update the pickup library,
suspend holds, etc. disallow actions that don't make sense for holds
that have already been captured. These include suspending the hold and
changing the expire time.
This patch also replaces the confusing "Cancel" button in the hold edit
interface (which does not cancel the hold) with a "Go Back" button which
returns to the holds list.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
name='pickup_lib' value=ahr.pickup_lib %]
</td>
</tr>
+ [% IF hold.hold.status < 3 %]
+ [%# The following actions cannot be performed on holds that
+ have already been captured... %]
<tr>
<th>
[% l('Cancel unless filled by') %]
<em>[% l('Enter date in MM/DD/YYYY format') %]</em>
</td>
</tr>
+ [% END %]
<tr>
<td colspan="2" class="hold-editor-controls">
- <input type="submit"
- value="[% l('Submit') %]"
- class="opac-button" />
- <input type="reset"
- value="[% l('Cancel') %]"
- class="opac-button" />
+ <a href="[% ctx.opac_root %]/myopac/holds"><button
+ class="opac-button">[% l('Go Back') %]</button></a>
+ <input type="submit" value="[% l('Submit') %]" class="opac-button" />
</td>
</tr>
</table>