]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/settings/li_attr.tt2
5a2b16a00362c47e58b2d95a24eb2a5aa66595ab
[working/Evergreen.git] / Open-ILS / web / templates / default / acq / settings / li_attr.tt2
1 [% WRAPPER default/base.tt2 %]
2 <script src='[% ctx.media_prefix %]/js/ui/default/acq/settings/li_attr.js'> </script>
3
4 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
5     <div dojoType="dijit.form.DropDownButton">
6         <span>Lineitem Attribute Attribute</span>
7         <div dojoType="dijit.TooltipDialog" execute="createOrderRecordField(arguments[0]);">
8             <script type='dojo/connect' event='onOpen'>//setORDesc();</script>
9             <table class='dijitTooltipTable'>
10                 <tr>
11                     <td><label for="code">Code:</label></td>
12                     <td><input dojoType='dijit.form.TextBox' name='code'/></td>
13                 </tr>
14                 <tr>
15                     <td><label for="description">Description: </label></td>
16                     <td><input id='oils-acq-provider-or-desc' dojoType="dijit.form.TextBox" name="description"> </input></td>
17                 </tr>
18                 <tr>
19                     <td><label for="amount">Tag: </label></td>
20                     <td><input dojoType="dijit.form.TextBox" name="tag"></input></td>
21                 </tr>
22                 <tr>
23                     <td><label for="amount">Subfield: </label></td>
24                     <td><input dojoType="dijit.form.TextBox" name="subfield"></input></td>
25                 </tr>
26                 <tr>
27                     <td><label for="ident">Identifer Field?: </label></td>
28                     <td>
29                         <select dojoType="dijit.form.FilteringSelect" name="ident">
30                             <option value='f' selected='selected'>False</option>
31                             <option value='t'>True</option>
32                         </select>
33                     </td>
34                 </tr>
35                 <tr>
36                     <td><label for="amount">XPath (advanced): </label></td>
37                     <td><input dojoType="dijit.form.TextBox" name="xpath"></input></td>
38                 </tr>
39                 <tr>
40                     <td colspan='2' align='center'>
41                         <button dojoType=dijit.form.Button type="submit">Apply</button>
42                     </td>
43                 </tr>
44             </table>
45         </div>
46     </div>
47     <script>
48         var liAttrGridLayout = [{
49             cells : [[
50                 {name: 'ID', field: 'id'},
51                 {name: 'Code', field:'code', width:'auto'},
52                 {name: 'Description', field: "description", width:'auto'}, 
53                 {name: 'Tag', get:getTag},
54                 {name: 'Subfield', get:getSubfield},
55                 {name: 'Identifier', field:'ident'},
56                 {name: 'XPath', field:'xpath', width:'auto'}
57             ]]
58         }];
59     </script>
60     <div dojoType="dijit.layout.TabContainer">
61         <div dojoType="dijit.layout.ContentPane" 
62                 class='oils-acq-detail-content-pane' title="MARC Attributes" style='height:600px;'>
63             <script type='dojo/connect' event='onShow'>loadMarcAttrGrid();</script>
64             <div jsId='liMarcAttrGrid' dojoType="dojox.Grid" structure='liAttrGridLayout'> </div>
65         </div>
66         <div dojoType="dijit.layout.ContentPane" 
67                 class='oils-acq-detail-content-pane' title="Generated Attributes" style='height:600px;'>
68             <script type='dojo/connect' event='onShow'>loadGeneratedAttrGrid();</script>
69             <div jsId='liGeneratedAttrGrid' dojoType="dojox.Grid" structure='liAttrGridLayout'> </div>
70         </div>
71     </div>
72 </div>
73 [% END %]