[open-ils-commits] r19610 - trunk/Open-ILS/web/templates/default/conify/global/config (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 7 11:03:14 EST 2011
Author: miker
Date: 2011-03-07 11:03:12 -0500 (Mon, 07 Mar 2011)
New Revision: 19610
Added:
trunk/Open-ILS/web/templates/default/conify/global/config/record_attr_definition.tt2
Log:
added crad config UI
Added: trunk/Open-ILS/web/templates/default/conify/global/config/record_attr_definition.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/record_attr_definition.tt2 (rev 0)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/record_attr_definition.tt2 2011-03-07 16:03:12 UTC (rev 19610)
@@ -0,0 +1,30 @@
+[% WRAPPER default/base.tt2 %]
+<h1>Record Attribute Definitions</h1> <br/>
+
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
+ <div>Record Attribute Definitions</div>
+ <div>
+ <button dojoType='dijit.form.Button' onClick='cradGrid.showCreateDialog()'>New Attr. Definition</button>
+ <button dojoType='dijit.form.Button' onClick='cradGrid.deleteSelected()'>Delete Selected</button>
+ </div>
+</div>
+
+<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
+ <table jsId="cradGrid"
+ autoHeight='true'
+ dojoType="openils.widget.AutoGrid"
+ fieldOrder="['name', 'label']",
+ query="{name: '*'}"
+ fmClass='crad'
+ showPaginator='true'
+ editOnEnter='true'/>
+ </div>
+
+<script type ="text/javascript">
+ dojo.require('openils.widget.AutoGrid');
+ openils.Util.addOnLoad(
+ function() { cradGrid.loadAll({order_by : {crad : 'name'}}) }
+ );
+</script>
+
+[% END %]
More information about the open-ils-commits
mailing list