Repaired merge conflicts resuling from ttopac-move-templates
[working/Evergreen.git] / Open-ILS / src / templates / default / conify / global / config / record_attr_definition.tt2
1 [% WRAPPER default/base.tt2 %]
2 [% ctx.page_title = 'MARC Record Attribute Definitions' %]
3 <h1>Record Attribute Definitions</h1> <br/>
4
5 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
6     <div>Record Attribute Definitions</div>
7     <div>
8         <button dojoType='dijit.form.Button' onClick='cradGrid.showCreateDialog()'>New Attr. Definition</button>
9         <button dojoType='dijit.form.Button' onClick='cradGrid.deleteSelected()'>Delete Selected</button>
10     </div>
11 </div>
12
13 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
14     <table  jsId="cradGrid"
15             autoHeight='true'
16             dojoType="openils.widget.AutoGrid"
17             fieldOrder="['name', 'label']",
18             query="{name: '*'}"
19             fmClass='crad'
20             showPaginator='true'
21             editOnEnter='true'/>
22  </div>
23
24 <script type ="text/javascript">
25     dojo.require('openils.widget.AutoGrid');
26     openils.Util.addOnLoad(
27         function() {
28             // avoid loading the entire config.xml_transform object
29             cradGrid.overrideWidgetArgs.format = {searchOptions : {"select":{"cxt":["name"]}}};
30             cradGrid.loadAll({order_by : {crad : 'name'}}) 
31         }
32     );
33 </script>
34
35 [% END %]