(bug #2812) fix holds cancel in OPAC
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-user.tmpl
index 448f872..5a33cec 100644 (file)
@@ -238,7 +238,7 @@ $.tablesorter.addParser({
                        <!-- TMPL_LOOP NAME="ISSUES" -->
                        <input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
                        <!-- /TMPL_LOOP -->
-                       <input type="submit" value="Renew All" />
+                       <!-- TMPL_UNLESS name="patron_flagged" --><input type="submit" value="Renew All" /><!-- /TMPL_UNLESS -->
                </form>
                <!-- /TMPL_IF -->
     <!-- TMPL_ELSE -->
@@ -355,9 +355,13 @@ $.tablesorter.addParser({
                     <!-- /TMPL_IF -->
                 </td>
                <td>
-               <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
-               <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
-               <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
+               <!-- TMPL_IF NAME="cancelable" -->
+                       <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
+                       <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
+                       <input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
+               <!-- TMPL_ELSE -->
+                       &nbsp;
+               <!-- /TMPL_IF -->
                </td>
 
             </tr>