]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/picklist/user_request.tt2
Add to Picklist function for acq user requests. Disable EditOnEnter for list view.
[working/Evergreen.git] / Open-ILS / web / templates / default / acq / picklist / user_request.tt2
1 [% WRAPPER 'default/base.tt2' %]
2 [% ctx.page_title = 'Patron Requests' %]
3 <script src='[% ctx.media_prefix %]/js/ui/default/acq/picklist/user_request.js'> </script>
4 <script>var reqId = '[% ctx.page_args.0 %]';</script>
5
6     <div dojoType="dijit.layout.StackContainer" id="stackContainer" doLayout="false">
7         <!-- *** List View ********************************************************************************* -->
8         <div dojoType="dijit.layout.ContentPane">
9             <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
10                 <div>[% ctx.page_title %]</div>
11                 <div>
12                     <button dojoType="dijit.form.Button" onClick="rGrid.setNoHoldSelected()">Set No Hold on Selected</button>
13                     <button dojoType="dijit.form.Button" onClick="rGrid.cancelSelected()">Cancel Selected</button>
14                 </div>
15             </div>
16             <div>
17                 <span>Context Org Unit</span>
18                 <select 
19                     dojoType="openils.widget.OrgUnitFilteringSelect" 
20                     jsId='contextOrgSelector'
21                     searchAttr='shortname' 
22                     labelAttr='shortname'> 
23                 </select>
24             </div>
25             <table  jsId="rGrid"
26                     dojoType="openils.widget.AutoGrid"
27                     query="{id: '*'}"
28                     suppressFields='["id", "usr", "pickup_lib", "holdable_formats", "phone_notify", "email_notify", "lineitem", "eg_bib", "max_fee", "cancel_reason"]'
29                     fieldOrder='["title", "author", "isxn", "article_title", "article_pages", "request_type", "volume", "pubdate", "publisher", "location", "other_info", "mentioned"]'
30                     fmClass='aur'
31                     editStyle='pane'
32                     autoHeight='true'
33                     autoWidth='true'
34                     suppressFields="['id']"
35                     showPaginator='true'
36                     showColumnPicker='true'
37                     columnPickerPrefix='"acq.picklist.user_request"'>
38                     <thead>
39                         <tr>
40                             <th field='title' get='getTitle' formatter='formatTitle'/>
41                         </tr>
42                     </thead>
43             </table>
44         </div>
45         <!-- *** Detail View ********************************************************************************* -->
46         <div dojoType="dijit.layout.ContentPane" style="height: 100%;">
47             <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
48                 <div>Patron Request</div>
49                 <div>
50                     <button dojoType="dijit.form.Button" onClick="location.href=oilsBasePath+'/acq/picklist/user_request'">[% ctx.page_title %]</button>
51                     <button dojoType="dijit.form.Button" onClick="addToPicklist()">Add to Picklist</button>
52                     <button dojoType="dijit.form.Button" onClick="setNoHold()">Set No Hold</button>
53                     <button dojoType="dijit.form.Button" onClick="cancelRequest()">Cancel Request with Reason</button>
54                 </div>
55             </div>
56             <div id="detail_content_pane" />
57         </div>
58     </div>
59 [% END %]