fix hold form when placing multiple titles
authorGalen Charlton <gmc@equinoxintiative.org>
Thu, 12 Jul 2018 21:47:45 +0000 (17:47 -0400)
committerGalen Charlton <gmc@equinoxintiative.org>
Thu, 12 Jul 2018 21:47:45 +0000 (17:47 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxintiative.org>
Open-ILS/src/templates/opac/parts/place_hold.tt2

index 099208c..ff75698 100644 (file)
@@ -66,7 +66,8 @@ function maybeToggleNumCopies(obj) {
                 SET some_holds_allowed = 0 IF some_holds_allowed == -1;
               ELSE; some_holds_allowed = 1; END;
             END %]
-      
+     
+      [% IF loop.first %] 
     <form method="post" name="PlaceHold" onsubmit="return validateHoldForm()" >
         <input type="hidden" name="hold_type" value="[% CGI.param('hold_type') | html %]" />
         [%  
@@ -129,6 +130,7 @@ function maybeToggleNumCopies(obj) {
             </span>
         </p>
         [% END %]
+      [% END %]
 
         <table id='hold-items-list'>
             <tr>