03a49f93f31472348af4c01d7e25c0655e91bb16
[working/Evergreen.git] / Open-ILS / web / vandelay / inc / attrs.xml
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="ident">&vandelay.id.field;: </label></td>
42                 <td>
43                     <select dojoType="dijit.form.FilteringSelect" name="ident" id="attr-editor-identifier">
44                         <option value='f' selected='selected'>&vandelay.false;</option>
45                         <option value='t'>&vandelay.true;</option>
46                     </select>
47                 </td>
48             </tr>
49             <tr>
50                 <td><label for="attr-editor-xpath">&vandelay.xpath.advanced;: </label></td>
51
52                 <td><input dojoType="dijit.form.TextBox" id="attr-editor-xpath" name="xpath"></input></td>
53             </tr>
54             <tr>
55                 <td><label for="attr-editor-remove">&vandelay.remove.advanced;: </label></td>
56
57                 <td><input dojoType="dijit.form.TextBox" id="attr-editor-remove" name="remove"></input></td>
58             </tr>
59             <tr id="attr-editor-create-bar">
60                 <td colspan='2' align='center'>
61                     <button dojoType="dijit.form.Button" type="submit" 
62                         id="attr-editor-create-button">&vandelay.create;</button>
63                     <button type="button" dojoType="dijit.form.Button"
64                         onclick="dijit.byId('attr-editor-dialog').onCancel();">&vandelay.cancel;</button>
65                 </td>
66             </tr>
67             <tr id="attr-editor-update-bar">
68                 <td colspan='2' align='center'>
69                     <button dojoType="dijit.form.Button" type="submit" 
70                         id="attr-editor-update-button">&vandelay.update;</button>
71                     <button type="button" dojoType="dijit.form.Button"
72                         onclick="dijit.byId('attr-editor-dialog').onCancel();">&vandelay.cancel;</button>
73                     <button dojoType="dijit.form.Button" 
74                         type="button" 
75                         id="attr-editor-delete-button"
76                         style="padding-left: 2em;"
77                         onclick="if(confirm('&vandelay.sure.to.delete;')) { vlAttrDelete(); }">
78                             &vandelay.delete.record;</button>
79                 </td>
80             </tr>
81         </table>
82     </div>
83 </div>
84 <div style='height:600px;'>
85     <table dojoType='dojox.grid.DataGrid' jsId='attrEditorGrid' query="{id: '*'}"> 
86         <thead>
87             <tr>
88                 <th field='id'>&vandelay.id;</th>
89                 <th field='code' width='auto'>&vandelay.code;</th>
90                 <th field='description' width='auto'>&vandelay.descrip;</th>
91                 <th field='tag' get='attrGridGetTag'>&vandelay.tag;</th>
92                 <th field='subfield' get='attrGridGetSubfield'>&vandelay.subfield;</th>
93                 <th field='ident'>&vandelay.identifier;</th>
94                 <th field='xpath' width='auto'>&vandelay.xpath;</th>
95                 <th field='remove' width='auto'>&vandelay.remove;</th>
96             </tr>
97         </thead>
98     </table>
99 </div>
100
101