]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/acq/picklist/user_request.tt2
copy/paste-o's, remove (near) duplicate code
[Evergreen.git] / Open-ILS / src / templates / acq / picklist / user_request.tt2
1 [% WRAPPER 'base.tt2' %]
2 [% ctx.page_title = '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>
12                 <span>Context Org Unit</span>
13                 <select 
14                     dojoType="openils.widget.OrgUnitFilteringSelect" 
15                     jsId='contextOrgSelector'
16                     searchAttr='shortname' 
17                     labelAttr='shortname'> 
18                 </select>
19             </div>
20             <table  jsId="rGrid"
21                     dojoType="openils.widget.AutoGrid"
22                     query="{id: '*'}"
23                     suppressFields='["id", "usr", "pickup_lib", "holdable_formats", "phone_notify", "email_notify", "lineitem", "eg_bib", "max_fee", "cancel_reason"]'
24                     fieldOrder='["title", "author", "isxn", "article_title", "article_pages", "request_type", "volume", "pubdate", "publisher", "location", "other_info", "mentioned"]'
25                     fmClass='aur'
26                     editStyle='pane'
27                     autoHeight='true'
28                     defaultCellWidth='"auto"'
29                     showPaginator='true'
30                     showColumnPicker='true'
31                     columnPickerPrefix='"acq.picklist.user_request"'>
32                     <thead>
33                         <tr>
34                             <th field='title' get='getTitle' formatter='formatTitle'/>
35                         </tr>
36                     </thead>
37             </table>
38         </div>
39         <!-- *** Detail View ********************************************************************************* -->
40         <div dojoType="dijit.layout.ContentPane" style="height: 100%;">
41             <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
42                 <div>Patron Request</div>
43                 <div>
44                     <button dojoType="dijit.form.Button" onClick="location.href=oilsBasePath+'/acq/picklist/user_request'">[% ctx.page_title %]</button>
45                     <button dojoType="dijit.form.Button" onClick="fooPicklist()"><span id="add_to_picklist">Add to Selection List</span><span id="view_picklist">View Selection List</span></button>
46                     <button dojoType="dijit.form.Button" onClick="setNoHold()">Set No Hold</button>
47                     <span dojoType="dijit.form.DropDownButton">
48                         <span>Cancel Request</span>
49                         <span dojoType="dijit.TooltipDialog">
50                             <label for="acq-ur-cancel-reason">
51                                 Reason:
52                             </label>
53                             <span id="acq-ur-cancel-reason"></span>
54                             <button jsId="acqUrCancelReasonSubmit"
55                                 dojoType="dijit.form.Button"
56                                 type="submit">Cancel Request</button>
57                         </span>
58                     </span>
59                 </div>
60             </div>
61             <div id="detail_content_pane" />
62         </div>
63     </div>
64 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/picklist/user_request.js'></script>
65 [% END %]