]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/default/acq/financial/view_provider.tt2
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac...
[working/Evergreen.git] / Open-ILS / src / templates / default / acq / financial / view_provider.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script type="text/javascript">var providerId = [% ctx.page_args.0 %]</script>
3
4 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
5     <div dojoType="dijit.layout.TabContainer">
6
7         <div dojoType="dijit.layout.ContentPane" 
8                 class='oils-acq-detail-content-pane' title="Summary" selected='true' style='height:400px;'>
9             <div dojoType="dijit.layout.ContentPane" layoutAlign="top"> 
10                 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'> 
11                     <table jsId="providerGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" rowSelector='20px'> 
12                         <thead> 
13                             <tr> 
14                                 <th field="id">ID</th> 
15                                 <th field="name" width='auto'>Name</th> 
16                                 <th field="code">Code</th> 
17                                 <th field="owner" get='getOrgInfo'>Owner</th> 
18                                 <th field="currency_type">Currency Type</th> 
19                             </tr> 
20                         </thead> 
21                     </table>     
22                 </div> 
23             </div>             
24         </div>
25
26         <div dojoType="dijit.layout.ContentPane" 
27                 class='oils-acq-detail-content-pane' title="Order Record Format" style='height:400px;'>
28
29             <div class='oils-acq-actions-div' style='margin:8px;'>
30
31                 <!-- 
32                     Dropdown menu for creating a new order record data type
33                 -->
34                 <div dojoType="dijit.form.DropDownButton">
35                     <span>Create Order Record Field</span>
36                     <div dojoType="dijit.TooltipDialog" execute="createOrderRecordField(arguments[0]);">
37                         <script type='dojo/connect' event='onOpen'>setORDesc();</script>
38                         <table class='dijitTooltipTable'>
39                             <tr>
40                                 <td><label for="code">Code: </label></td>
41                                 <td>
42                                     <select id='oils-acq-provider-or-code' name="code" dojoType="dijit.form.ComboBox">
43                                         <script type='dojo/connect' event='onChange'>setORDesc();</script>
44                                         <option value='fund_code'>Fund Code</option>
45                                         <option value='shelving_location'>Shelving Location</option>
46                                         <option value='quantity'>Quantity</option>
47                                         <option value='order_date'>Order Date</option>
48                                         <option value='volume_count'>Volume Count </option>
49                                         <option value='currency_type'>Currency Type</option>
50                                         <option value='internal_notes'>Internal Notes </option>
51                                         <option value='vendor_notes'>Vendor Notes</option>
52                                         <option value='estimated_price'>Estimated Price</option>
53                                     </select>
54                                 </td>
55                             </tr>
56                             <tr>
57                                 <td><label for="description">Description: </label></td>
58                                 <td><input id='oils-acq-provider-or-desc' dojoType="dijit.form.TextBox" name="description"> </input></td>
59                             </tr>
60                             <tr>
61                                 <td><label for="amount">Tag: </label></td>
62                                 <td><input dojoType="dijit.form.TextBox" name="tag"></input></td>
63                             </tr>
64                             <tr>
65                                 <td><label for="amount">Subfield: </label></td>
66                                 <td><input dojoType="dijit.form.TextBox" name="subfield"></input></td>
67                             </tr>
68                             <tr>
69                                 <td><label for="ident">Identifer Field?: </label></td>
70                                 <td>
71                                     <select dojoType="dijit.form.FilteringSelect" name="ident">
72                                         <option value='f' selected='selected'>False</option>
73                                         <option value='t'>True</option>
74                                     </select>
75                                 </td>
76                             </tr>
77                             <tr>
78                                 <td><label for="amount">XPath (advanced): </label></td>
79                                 <td><input dojoType="dijit.form.TextBox" name="xpath"></input></td>
80                             </tr>
81                             <tr>
82                                 <td colspan='2' align='center'>
83                                     <button dojoType='dijit.form.Button' type="submit">Apply</button>
84                                 </td>
85                             </tr>
86                         </table>
87                     </div>
88                 </div> 
89
90                 <!--
91                     Delete order record data types button
92                 -->
93                 <button dojoType="dijit.form.Button" onclick='deleteORDataFields();'>
94                     Delete Selected
95                 </button>
96             </div>
97
98             <script type='dojo/connect' event='onShow'>loadPADGrid();</script>
99             <div dojoType="dijit.layout.ContentPane" layoutAlign="top"> 
100                 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'> 
101                     <table jsId="padGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" rowSelector='20px'> 
102                         <thead> 
103                             <tr> 
104                                 <th field="id">ID</th> 
105                                 <th field="code" width='auto'>Code</th> 
106                                 <th field="description" width='auto'>Description</th>                                 
107                                 <th field="tag" get='getTag'>Tag</th> 
108                                 <th field="subfield" get='getSubfield'>Subfield</th> 
109                                 <th field="xpath" width='auto'>XPath</th> 
110                             </tr> 
111                         </thead> 
112                     </table>     
113                 </div> 
114             </div>             
115         </div>
116 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/financial/view_provider.js'></script>
117 [% END %]
118