hold actions work
authorsenator <lebbeous@esilibrary.com>
Tue, 15 Feb 2011 22:45:46 +0000 (17:45 -0500)
committersenator <lebbeous@esilibrary.com>
Tue, 15 Feb 2011 22:45:46 +0000 (17:45 -0500)
Open-ILS/web/templates/default/opac/myopac/holds.tt2

index bf0932e..bdda327 100644 (file)
     </div>
     <div class="clear-both"></div>
     <div id='holds_main'>
+        <form method="POST">
         <table cellpadding='0' cellspacing='0' class="opac-auto-097">
             <tr>
                 <td width="1">
-                    <select id="acct_holds_actions">
+                    <select name="action" id="acct_holds_actions">
                         <option id='myopac_holds_actions_none' value=''>
                         -- [% l("Actions for selected holds") %] --
                         </option>
-                        <option value='freeze'>
+                        <option value='suspend'>
                             [% l("Suspend") %]
                         </option>
-                        <option value='thaw'>
+                        <option value='activate'>
                             [% l("Activate") %]
                         </option>
-                        <option value='thaw_date'>
+                        <!-- XXX maybe later <option value='thaw_date'>
                             [% l("Set Active Date") %]
-                        </option>
+                        </option> -->
                         <option value='cancel'>
                             [% l("Cancel") %]
                         </option>
                     </select>
                 </td>
                 <td width="1" style="padding-left:9px;">
-                    <a href="#"><img
-                        alt="Save"
-                        src="[% ctx.media_prefix %]/images/save-btn.png" /></a>
+                    <input type="image"
+                        alt="[% l('Go') %]" title="[% l('Go') %]"
+                        src="[% ctx.media_prefix %]/images/go-btn.png" />
                 </td>
                 <td width="1" style="padding-left:5px;">
                     <a href="#"><img
                         [% ctx.find_aou(hold.hold.hold.pickup_lib).name %]
                     </td>
                     <td width="104">
-                        <input
+                        <!-- <input
                             title="Enter a date (e.g. 10/21/2010)"
                             class="hide_me" style="width:91px;"
-                            name="activate_box" type="text" />
+                            name="activate_box" type="text" /> -->
                         [% IF hold.hold.hold.frozen == 't' AND
                                 hold.hold.hold.thaw_date;
                             date.format(ctx.parse_datetime(hold.hold.hold.thaw_date), DATE_FORMAT);
                         END %]
                     </td>
                     <td width="106">
-                        <input title="Enter a date (e.g. 10/21/2010)"
+                        <!-- <input title="[% l('Enter a date (e.g. 10/21/2010)') %]"
                             class="hide_me" style="width:91px;"
-                            name="hold_expires_box" type="text" />
+                            name="hold_expires_box" type="text" />-->
                         [% IF hold.hold.hold.expire_time;
                             date.format(ctx.parse_datetime(hold.hold.hold.expire_time), DATE_FORMAT);
                         END %]
                     </td>
                     <td width="95">
-                        <select name="hold_active_sel"
+                        <!-- <select name="hold_active_sel"
                             style="width:90px;" class="hide_me">
                             <option value="f">Active</option>
                             <option value="t">Suspended</option>
-                        </select>
+                        </select> -->
                         [% l(hold.hold.hold.frozen == 'f' ? 'Active' : 'Suspended') %]
                     </td>
                     <td width="110">
                 [% END %]
             </tbody>
         </table>
+        </form>
     </div>
     <div id='holds_hist_table' class="hide_me">testing...</div>