[open-ils-commits] r12802 - trunk/Open-ILS/web/templates/default/conify/global/acq (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Apr 6 16:12:33 EDT 2009


Author: erickson
Date: 2009-04-06 16:12:29 -0400 (Mon, 06 Apr 2009)
New Revision: 12802

Modified:
   trunk/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2
Log:
added delete operation

Modified: trunk/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2	2009-04-06 18:02:57 UTC (rev 12801)
+++ trunk/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2	2009-04-06 20:12:29 UTC (rev 12802)
@@ -2,22 +2,25 @@
 <script>
     dojo.require('openils.widget.AutoGrid');
     openils.Util.addOnLoad(
-        function() { 
-            erGrid.loadAll({order_by:{acqpro : 'name'}}); 
+        function() {
+            erGrid.loadAll({order_by:{acqpro : 'name'}});
         }
     );
 </script>
 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
     <div>Exchange Rates</div>
-    <div><button dojoType='dijit.form.Button' onClick='erGrid.showCreateDialog()'>New</button></div>
+    <div>
+        <button dojoType='dijit.form.Button' onClick='erGrid.showCreateDialog()'>New Exchange Rate</button>
+        <button dojoType='dijit.form.Button' onClick='erGrid.deleteSelected()'>Delete Selected</button>
+    </div>
 </div>
 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
-    <table  jsId="erGrid" 
-            dojoType="openils.widget.AutoGrid" 
-            fieldOrder="['id', 'from_currency', 'to_currency', 'ratio']" 
+    <table  jsId="erGrid"
+            dojoType="openils.widget.AutoGrid"
+            fieldOrder="['id', 'from_currency', 'to_currency', 'ratio']"
             defaultCellWidth='12'
-            query="{id: '*'}" 
-            fmClass='acqexr' 
+            query="{id: '*'}"
+            fmClass='acqexr'
             editOnEnter='true'>
     </table>
 </div>



More information about the open-ils-commits mailing list