Template Toolkit OPAC
[working/Evergreen.git] / Open-ILS / src / templates / booking / pickup.tt2
1 [% WRAPPER "base.tt2" %]
2 <link rel="stylesheet" type="text/css" href="[% ctx.media_prefix %]/css/skin/[% ctx.skin %]/booking.css" />
3 <div id="auto_l10n_start_here">
4     <h1 class="booking AUTO_h1"></h1>
5     <div class="nice_vertical_padding" id="contains_barcode_control">
6         <form id="lookup" onsubmit="return act(this);">
7             <label for="patron_barcode" class="AUTO_patron_barcode"></label>
8             <input id="patron_barcode" name="patron_barcode" />
9             <input type="submit" class="AUTO_ATTR_VALUE_go" />
10         </form>
11     </div>
12     <div class="nice_vertical_padding" id="contains_patron_info">
13         <div id="patron_info"></div>
14     </div>
15     <div class="nice_vertical_padding" id="contains_ready_bresv">
16         <h3 class="booking AUTO_ready_bresv"></h3>
17         <div class="AUTO_no_ready_bresv" id="no_ready_bresv"></div>
18         <table id="ready_bresv" jsId="ready_bresv"
19             dojoType="dojox.grid.DataGrid" query="{id: '*'}"
20             rowSelector="20px" autoHeight="true" width="auto">
21             <thead>
22                 <tr><!-- FIXME: i18n problem: init_auto_l10n() runs
23                         too late to take care of the below elements. -->
24                     <th width="35%" field="type">Title</th>
25                     <th width="25%" field="resource">Barcode</th>
26                     <th width="20%" field="start_time">Start time</th>
27                     <th width="20%" field="end_time">End time</th>
28                 </tr>
29             </thead>
30         </table>
31         <div class="nice_vertical_padding" id="controls_ready_bresv">
32             <form>
33                 <input type="button" id="pickup_button"
34                     class="AUTO_ATTR_VALUE_pickup"
35                     onclick="p.act_on_selected('pickup', 'ready');" />
36             </form>
37         </div>
38     </div>
39     <div class="nice_vertical_padding" id="contains_out_bresv">
40         <hr />
41         <h3 class="booking AUTO_out_bresv"></h3>
42         <div class="AUTO_no_out_bresv" id="no_out_bresv"></div>
43         <table id="out_bresv" jsId="out_bresv"
44             dojoType="dojox.grid.DataGrid" query="{id: '*'}"
45             rowSelector="20px" autoHeight="true" width="auto">
46             <thead>
47                 <tr><!-- FIXME: i18n problem: init_auto_l10n() runs
48                         too late to take care of the below elements. -->
49                     <th width="35%" field="type">Title</th>
50                     <th width="25%" field="resource">Barcode</th>
51                     <th width="20%" field="pickup_time">Pickup time</th>
52                     <th width="20%" field="end_time">Due time</th>
53                 </tr>
54             </thead>
55         </table>
56     </div>
57     <div class="nice_vertical_padding" id="contains_misc_controls">
58         <hr />
59         <form>
60             <input type="button" class="AUTO_ATTR_VALUE_reset"
61                 onclick="p.reset();" />
62         </form>
63     </div>
64 </div>
65
66 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/booking/common.js"></script>
67 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/booking/populator.js"></script>
68 <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/booking/pickup.js"></script>
69 <script type="text/javascript">
70     dojo.require("dojox.grid.DataGrid");
71     openils.Util.addOnLoad(my_init);
72
73     function act(f) {
74         p.populate({"patron": f.patron_barcode.value});
75         return false; /* Always. */
76     }
77 </script>
78 [% END %]