From: Bill Erickson Date: Wed, 9 Nov 2011 20:55:50 +0000 (-0500) Subject: TPac; disallow certain actions for captured holds X-Git-Tag: sprint4-merge-nov22~4825^2 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=240c6b11634e1e7b23b9388057b91c4cc3883e10;p=working%2FEvergreen.git TPac; disallow certain actions for captured holds 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 --- diff --git a/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 b/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 index 7ba1528d5a..fc2d3d9d03 100644 --- a/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 +++ b/Open-ILS/src/templates/opac/myopac/holds/edit.tt2 @@ -46,6 +46,9 @@ name='pickup_lib' value=ahr.pickup_lib %] + [% IF hold.hold.status < 3 %] + [%# The following actions cannot be performed on holds that + have already been captured... %] [% l('Cancel unless filled by') %] @@ -89,14 +92,12 @@ [% l('Enter date in MM/DD/YYYY format') %] + [% END %] - - + +