]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/default/conify/global/config/record_attr_definition.tt2
Move templates out of a web-served directory
[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() { cradGrid.loadAll({order_by : {crad : 'name'}}) }
28     );
29 </script>
30
31 [% END %]