added crad config UI
[Evergreen.git] / Open-ILS / web / templates / default / conify / global / config / record_attr_definition.tt2
1 [% WRAPPER default/base.tt2 %]
2 <h1>Record Attribute Definitions</h1> <br/>
3
4 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
5     <div>Record Attribute Definitions</div>
6     <div>
7         <button dojoType='dijit.form.Button' onClick='cradGrid.showCreateDialog()'>New Attr. Definition</button>
8         <button dojoType='dijit.form.Button' onClick='cradGrid.deleteSelected()'>Delete Selected</button>
9     </div>
10 </div>
11
12 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
13     <table  jsId="cradGrid"
14             autoHeight='true'
15             dojoType="openils.widget.AutoGrid"
16             fieldOrder="['name', 'label']",
17             query="{name: '*'}"
18             fmClass='crad'
19             showPaginator='true'
20             editOnEnter='true'/>
21  </div>
22
23 <script type ="text/javascript">
24     dojo.require('openils.widget.AutoGrid');
25     openils.Util.addOnLoad(
26         function() { cradGrid.loadAll({order_by : {crad : 'name'}}) }
27     );
28 </script>
29
30 [% END %]