]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/acq/picklist/user_request.tt2
I18N: Make everything in tt2 files translatable.
[Evergreen.git] / Open-ILS / src / templates / acq / picklist / user_request.tt2
1 [% WRAPPER 'base.tt2' %]
2 [% ctx.page_title = l('Patron Requests') %]
3 <script type="text/javascript">var reqId = '[% ctx.page_args.0 %]';</script>
4
5     <div dojoType="dijit.layout.StackContainer" id="stackContainer" doLayout="false">
6         <!-- *** List View ********************************************************************************* -->
7         <div dojoType="dijit.layout.ContentPane">
8             <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
9                 <div>[% ctx.page_title %]</div>
10             </div>
11             <div style="width: 100%">
12                 <span>
13                     <span>[% l('Context Org Unit') %]</span>
14                     <select 
15                         dojoType="openils.widget.OrgUnitFilteringSelect" 
16                         jsId='contextOrgSelector'
17                         searchAttr='shortname' 
18                         labelAttr='shortname'> 
19                     </select>
20                 </span>
21                 <span>
22                     <a name="user" href="javascript:changeUserPrompt();">[% l('User') %]</a>
23                     <span
24                         name="user"
25                         jsId="contextUsrTextbox"
26                         dojoType="dijit.form.TextBox"
27                         disabled="true">
28                     </span>
29                 </span>
30                 <span>
31                     <a name="lineitem" href="javascript:changeLIPrompt();">[% l('PO Line Item') %]</a>
32                     <span
33                         name="lineitem"
34                         jsId="contextLITextbox"
35                         dojoType="dijit.form.TextBox"
36                         disabled="true">
37                     </span>
38                 </span>
39                 <button dojoType="dijit.form.Button" onClick="createRequest()">[% l('Create Request') %]</button>
40             </div>
41             <table  jsId="rGrid"
42                     dojoType="openils.widget.AutoGrid"
43                     query="{id: '*'}"
44                     suppressFields='["id", "usr", "pickup_lib", "holdable_formats", "phone_notify", "email_notify", "lineitem", "eg_bib", "max_fee", "cancel_reason"]'
45                     fieldOrder='["title", "author", "isxn", "article_title", "article_pages", "request_type", "volume", "pubdate", "publisher", "location", "other_info", "mentioned"]'
46                     editOnEnter='true'
47                     suppressEditFields='["id", "holdable_formats", "phone_notify", "email_notify", "eg_bib", "max_fee", "cancel_reason"]'
48                     fmClass='aur'
49                     editStyle='pane'
50                     autoHeight='true'
51                     defaultCellWidth='"auto"'
52                     showPaginator='true'
53                     showColumnPicker='true'
54                     columnPersistKey='"acq.picklist.user_request"'>
55                     <thead>
56                         <tr>
57                             <th field='title' get='getTitle' formatter='formatTitle'/>
58                         </tr>
59                     </thead>
60             </table>
61         </div>
62         <!-- *** Detail View ********************************************************************************* -->
63         <div dojoType="dijit.layout.ContentPane" style="height: 100%;">
64             <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
65                 <div>[% l('Patron Request') %]</div>
66                 <div>
67                     <button dojoType="dijit.form.Button" onClick="location.href=oilsBasePath+'/acq/picklist/user_request'">[% ctx.page_title %]</button>
68                     <button dojoType="dijit.form.Button" onClick="fooPicklist()"><span id="add_to_picklist">[% l('Add to Selection List') %]</span><span id="view_picklist">[% l('View Selection List') %]</span></button>
69                     <button dojoType="dijit.form.Button" onClick="setNoHold()">[% l('Set No Hold') %]</button>
70                     <span dojoType="dijit.form.DropDownButton">
71                         <span>[% l('Cancel Request') %]</span>
72                         <span dojoType="dijit.TooltipDialog">
73                             <label for="acq-ur-cancel-reason">
74                                 [% l('Reason:') %]
75                             </label>
76                             <span id="acq-ur-cancel-reason"></span>
77                             <button jsId="acqUrCancelReasonSubmit"
78                                 dojoType="dijit.form.Button"
79                                 type="submit">[% l('Cancel Request') %]</button>
80                         </span>
81                     </span>
82                 </div>
83             </div>
84             <div id="detail_content_pane" ></div>
85         </div>
86     </div>
87 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/picklist/user_request.js'></script>
88 [% END %]