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