]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/financial/view_provider.tt2
Merging acq-experiment to trunk, since rel_1_4 has been branched.
[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         <div dojoType="dijit.layout.ContentPane" 
8                 class='oils-acq-detail-content-pane' title="Summary" selected='true' style='height:400px;'>
9             <script>
10                 var providerGridLayout = [{
11                     cells : [[
12                         {name: 'ID', field: 'id'},
13                         {name: 'Name', field: "name", width:'auto'}, 
14                         {name: 'Code', field:'code'},
15                         {name: 'Owner', get:getOrgInfo}, 
16                         {name: 'Currency Type', field: "currency_type"},
17                     ]]
18                 }];
19             </script>
20             <div jsId='providerGrid' dojoType="dojox.Grid" structure='providerGridLayout'> </div>
21         </div>
22
23         <!--
24             Provider order record data types
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             <script>
100                 var padGridLayout = [{
101                     cells : [[
102                         {name: 'ID', field: 'id'},
103                         {name: 'Code', field:'code', width:'auto'},
104                         {name: 'Description', field: "description", width:'auto'}, 
105                         {name: 'Tag', get:getTag},
106                         {name: 'Subfield', get:getSubfield},
107                         {name: 'Identifier', field:'ident'},
108                         {name: 'XPath', field:'xpath', width:'auto'}
109                     ]]
110                 }];
111             </script>
112             <div jsId='padGrid' dojoType="dojox.Grid" structure='padGridLayout'> </div>
113         </div>
114     </div>
115 </div>
116 [% END %]
117