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>
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'>
16 <td><label for="code">&vandelay.code;:</label></td>
17 <td><input id='attr-editor-code' name="code" dojoType="dijit.form.TextBox"/></td>
20 <td><label for="description">&vandelay.descrip;:</label></td>
21 <td><input id='attr-editor-description' dojoType="dijit.form.TextBox" name="description"> </input></td>
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>
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>
41 <td><label for="attr-editor-xpath">&vandelay.xpath.advanced;: </label></td>
43 <td><input dojoType="dijit.form.TextBox" id="attr-editor-xpath" name="xpath"></input></td>
46 <td><label for="attr-editor-remove">&vandelay.remove.advanced;: </label></td>
48 <td><input dojoType="dijit.form.TextBox" id="attr-editor-remove" name="remove"></input></td>
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>
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"
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>
75 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
76 <table dojoType='dojox.grid.DataGrid' jsId='attrEditorGrid' query="{id: '*'}" autoHeight='true'>
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>