--- /dev/null
+[% WRAPPER default/base.tt2 %]
+[% ctx.page_title = 'User Setting Types' %]
+
+<script type ="text/javascript">
+ dojo.require('dijit.form.FilteringSelect');
+ dojo.require('openils.widget.AutoGrid');
+
+ openils.Util.addOnLoad(
+ function() {
+ ustGrid.overrideEditWidgets.datatype = dTypeSelector;
+ ustGrid.loadAll({order_by:{cust : 'name'}});
+ }
+ );
+
+ function formatDatatype(dtype) {
+ // pull the label from the type selector
+ return dojo.query('[value=' + dtype +']', dTypeSelector.domNode)[0].innerHTML;
+ }
+
+</script>
+
+<div class='hidden'>
+ <select dojoType="dijit.form.FilteringSelect" jsId="dTypeSelector">
+ <option value='string' selected='selected'>String</option>
+ <option value='bool'>Boolean</option>
+ <option value='integer'>Integer</option>
+ <option value='float'>Float</option>
+ <option value='currency'>Currency</option>
+ <option value='interval'>Interval</option>
+ <option value='date'>Date</option>
+ <option value='object'>Object</option>
+ <option value='array'>Array</option>
+ <option value='link'>Link</option>
+ </select>
+</div>
+
+
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
+ <div>User Setting Types</div>
+ <div>
+ <button dojoType='dijit.form.Button' onClick='ustGrid.showCreateDialog()'>New User Setting Type</button>
+ <button dojoType='dijit.form.Button' onClick='ustGrid.deleteSelected()'>Delete Selected</button>
+ </div>
+</div>
+
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+ <table jsId="ustGrid"
+ autoHeight='true'
+ dojoType="openils.widget.AutoGrid"
+ fieldOrder="['name', 'label', 'datatype', 'description', 'fm_class']"
+ query="{name: '*'}"
+ defaultCellWidth='"auto"'
+ fmClass='cust'
+ showPaginator='true'
+ editOnEnter='true'>
+ <thead>
+ <tr>
+ <th field="datatype" formatter="formatDtype"/>
+ </tr>
+ </thead>
+ </table>
+ </div>
+
+[% END %]
<command id="cmd_server_admin_z39_source"/>
<command id="cmd_server_admin_circ_mod"/>
<command id="cmd_server_admin_org_unit_setting_type"/>
+ <command id="cmd_server_admin_usr_setting_type"/>
</commandset>
<menuitem label="&staff.main.menu.admin.server_admin.conify.z3950_source.label;" command="cmd_server_admin_z39_source"/>
<menuitem label="&staff.main.menu.admin.server_admin.conify.circulation_modifier.label;" command="cmd_server_admin_circ_mod"/>
<menuitem label="&staff.main.menu.admin.server_admin.conify.org_unit_setting_type;" command="cmd_server_admin_org_unit_setting_type"/>
+ <menuitem label="&staff.main.menu.admin.server_admin.conify.usr_setting_type;" command="cmd_server_admin_usr_setting_type"/>
</menupopup>
</menu>