1 [% WRAPPER default/base.tt2 %]
2 <h1>Code Value Maps</h1> <br/>
4 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
5 <div>Coded Value Maps</div>
7 <button dojoType='dijit.form.Button' onClick='ccvmGrid.showCreateDialog()'>New Map</button>
8 <button dojoType='dijit.form.Button' onClick='ccvmGrid.deleteSelected()'>Delete Selected</button>
12 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
13 <span>Record Attribute Type: </span><div id='attr-def-div'/>
16 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
17 <table jsId="ccvmGrid"
19 dojoType="openils.widget.AutoGrid"
20 fieldOrder="['ctype', 'code', 'value', 'description']"
22 defaultCellWidth='"25%"'
28 <script type ="text/javascript">
30 dojo.require('dijit.form.FilteringSelect');
31 dojo.require('openils.widget.AutoGrid');
32 dojo.require('openils.widget.AutoFieldWidget');
34 openils.Util.addOnLoad(
37 var selector = new openils.widget.AutoFieldWidget({
40 parentNode : dojo.byId('attr-def-div')
45 dojo.connect(w, 'onChange',
47 ccvmGrid.resetStore();
48 ccvmGrid.loadAll({order_by : {ccvm : 'code'}}, {ctype : newVal});
49 ccvmGrid.overrideWidgetArgs.ctype = {dijitArgs : {value : newVal}};
50 // ^-- why is this not working?
56 // hide the progress indicator since we're not loading any data up front
57 dojo.style(ccvmGrid.loadProgressIndicator, 'visibility', 'hidden');