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