added delete operation
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Apr 2009 20:12:29 +0000 (20:12 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Apr 2009 20:12:29 +0000 (20:12 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12802 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2

index 48a9a81..e98ef07 100644 (file)
@@ -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>