]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/vandelay/inc/attrs.tt2
Stamping upgrade script for LP#837566
[working/Evergreen.git] / Open-ILS / web / templates / default / vandelay / inc / attrs.tt2
1 <div style='float: left; margin-top: 8px;'>
2     <input dojoType="dijit.form.RadioButton" name="attrEditorGroup" value="bib" 
3         id="aegB" onclick="setAttrEditorGroup('bib');" checked="checked"/>
4     <label for="aegB" style="margin-right: 1em;">&vandelay.bib.attrs;</label>
5     <input dojoType="dijit.form.RadioButton" name="attrEditorGroup" value="auth" 
6         id="aegA" onclick="setAttrEditorGroup('auth');"/>
7     <label for="aegA" style="margin-right: 1em;">&vandelay.auth.attrs;</label>
8 </div>
9 <div dojoType="dijit.form.DropDownButton" id="vl-create-attr-editor-button">
10     <span name="create">&vandelay.create.attr.def;</span>
11     <div dojoType="dijit.TooltipDialog" execute="vlSaveAttrDefinition(arguments[0]);" id="attr-editor-dialog">
12         <script type='dojo/connect' event='onOpen'>onAttrEditorOpen();</script>
13         <script type='dojo/connect' event='onClose'>onAttrEditorClose();</script>
14         <table class='dijitTooltipTable'>
15             <tr>
16                 <td><label for="code">&vandelay.code;:</label></td>
17                 <td><input id='attr-editor-code' name="code" dojoType="dijit.form.TextBox"/></td>
18             </tr>
19             <tr>
20                 <td><label for="description">&vandelay.descrip;:</label></td>
21                 <td><input id='attr-editor-description' dojoType="dijit.form.TextBox" name="description"> </input></td>
22             </tr>
23             <tr>
24                 <td><label for="amount">&vandelay.tags;:</label></td>
25                 <td><input id="attr-editor-tags" dojoType="dijit.form.TextBox" name="tag"></input>
26                 <div class="hidden" id="attr-editor-tags-tip">
27                 <p>&vandelay.tooltip.tags;</p>
28                 <p>&vandelay.for.example;:<code>120, 220, 300</code> or <code>120 220 330</code></p></div>
29                 </td>
30             </tr>
31
32             <tr>
33                 <td><label for="amount">&vandelay.subfields;:</label></td>
34                 <td><input dojoType="dijit.form.TextBox" name="subfield" id="attr-editor-subfields"></input>
35                     <div class="hidden" id="attr-editor-subfields-tip">
36                     <p>&vandelay.tooltip.subfields;</p>
37                     <p>&vandelay.for.example;: <code>a, b, j, x</code> or <code>a b j x</code></p></div>
38                 </td>
39             </tr>
40             <tr>
41                 <td><label for="attr-editor-xpath">&vandelay.xpath.advanced;: </label></td>
42
43                 <td><input dojoType="dijit.form.TextBox" id="attr-editor-xpath" name="xpath"></input></td>
44             </tr>
45             <tr>
46                 <td><label for="attr-editor-remove">&vandelay.remove.advanced;: </label></td>
47
48                 <td><input dojoType="dijit.form.TextBox" id="attr-editor-remove" name="remove"></input></td>
49             </tr>
50             <tr id="attr-editor-create-bar">
51                 <td colspan='2' align='center'>
52                     <button dojoType="dijit.form.Button" type="submit" 
53                         id="attr-editor-create-button">&vandelay.create;</button>
54                     <button type="button" dojoType="dijit.form.Button"
55                         onclick="dijit.byId('attr-editor-dialog').onCancel();">&vandelay.cancel;</button>
56                 </td>
57             </tr>
58             <tr id="attr-editor-update-bar">
59                 <td colspan='2' align='center'>
60                     <button dojoType="dijit.form.Button" type="submit" 
61                         id="attr-editor-update-button">&vandelay.update;</button>
62                     <button type="button" dojoType="dijit.form.Button"
63                         onclick="dijit.byId('attr-editor-dialog').onCancel();">&vandelay.cancel;</button>
64                     <button dojoType="dijit.form.Button" 
65                         type="button" 
66                         id="attr-editor-delete-button"
67                         style="padding-left: 2em;"
68                         onclick="if(confirm('&vandelay.sure.to.delete;')) { vlAttrDelete(); }">
69                             &vandelay.delete.record;</button>
70                 </td>
71             </tr>
72         </table>
73     </div>
74 </div>
75 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
76     <table dojoType='dojox.grid.DataGrid' jsId='attrEditorGrid' query="{id: '*'}" autoHeight='true'> 
77         <thead>
78             <tr>
79                 <th field='id'>&vandelay.id;</th>
80                 <th field='code' width='auto'>&vandelay.code;</th>
81                 <th field='description' width='auto'>&vandelay.descrip;</th>
82                 <th field='tag' get='attrGridGetTag'>&vandelay.tag;</th>
83                 <th field='subfield' get='attrGridGetSubfield'>&vandelay.subfield;</th>
84                 <th field='xpath' width='auto'>&vandelay.xpath;</th>
85                 <th field='remove' width='auto'>&vandelay.remove;</th>
86             </tr>
87         </thead>
88     </table>
89     <div/>
90 </div>
91
92