added delete-selected buttons
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Apr 2009 18:02:57 +0000 (18:02 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Apr 2009 18:02:57 +0000 (18:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12801 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2
Open-ILS/web/templates/default/acq/financial/list_funding_sources.tt2
Open-ILS/web/templates/default/acq/financial/list_funds.tt2
Open-ILS/web/templates/default/conify/global/acq/distribution_formula.tt2
Open-ILS/web/templates/default/conify/global/acq/provider.tt2
Open-ILS/web/templates/default/conify/global/config/billing_type.tt2
Open-ILS/web/templates/default/conify/global/config/circ_modifier.tt2
Open-ILS/web/templates/default/conify/global/config/standing_penalty.tt2
Open-ILS/web/templates/default/conify/global/config/z3950_source.tt2

index 38e793c..f7e93d4 100644 (file)
@@ -5,7 +5,7 @@
     dojo.require('openils.widget.AutoGrid');
     dojo.require('openils.Util');
     openils.Util.addOnLoad(
-        function() { 
+        function() {
             ctGrid.loadAll({order_by:{ccm : 'name'}});
         }
     );
 
 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
     <div>Currency Type</div>
-    <div><button dojoType='dijit.form.Button' onClick='ctGrid.showCreateDialog()'>New</button></div>
+    <div>
+        <button dojoType='dijit.form.Button' onClick='ctGrid.showCreateDialog()'>New Currency Type</button>
+        <button dojoType='dijit.form.Button' onClick='ctGrid.deleteSelected()'>Delete Selected</button>
+    </div>
 </div>
 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
     <table  jsId="ctGrid"
index 63bb10a..0e1b713 100644 (file)
@@ -18,6 +18,7 @@
             <div>Funding Sources</div>
             <div>
                 <button dojoType='dijit.form.Button' onClick='fsGrid.showCreateDialog()'>New Funding Source</button>
+                <button dojoType='dijit.form.Button' onClick='fsGrid.deleteSelected()'>Delete Selected</button>
             </div>
         </div>
 
index 31cb284..f25db71 100644 (file)
@@ -7,7 +7,7 @@
     function createFund(fields) {
         /** Creates a new fund source */
         openils.acq.Fund.create(
-            fields, 
+            fields,
             function(fundId) {
                 var evt = openils.Event.parse(fundId);
                 if(evt) {
         var id = this.grid.store.getValue(item, 'id');
         return '<a href="[% ctx.base_uri %]/acq/fund/view/'+id+'">'+name+'</a>';
     }
-</script> 
+</script>
 
 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
             <div>Funding Types</div>
             <div>
                 <button dojoType='dijit.form.Button' onClick='lfGrid.showCreateDialog()'>New Fund</button>
+                <button dojoType='dijit.form.Button' onClick='lfGrid.deleteSelected()'>Delete Selected</button>
             </div>
         </div>
         <label>Year</label>
index b8b928e..ae40940 100644 (file)
@@ -7,7 +7,10 @@
     <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
             <div>Distribution Formulas</div>
-            <div><button dojoType='dijit.form.Button' onClick='fListGrid.showCreateDialog()'>New Formula</button></div>
+            <div>
+                <button dojoType='dijit.form.Button' onClick='fListGrid.showCreateDialog()'>New Formula</button>
+                <button dojoType='dijit.form.Button' onClick='fListGrid.deleteSelected()'>Delete Selected</button>
+            </div>
         </div>
         <table  jsId="fListGrid"
                 dojoType="openils.widget.AutoGrid"
     </div>
         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
             <div id="formula_head"></div>
-           <div> <button dojoType='dijit.form.Button' onClick='dfeListGrid.showCreateDialog()'>New Formula Entry</button></div>
+            <div> 
+                <button dojoType='dijit.form.Button' onClick='dfeListGrid.showCreateDialog()'>New Formula Entry</button>
+                <button dojoType='dijit.form.Button' onClick='dfeListGrid.deleteSelected()'>Delete Selected</button> 
+            </div>
         </div>
         <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:400px'>
             <table  jsId="dfeListGrid"
@@ -46,7 +52,7 @@
                     fmClass='acqdfe'
                     editOnEnter='true'>
                 <thead>
-                    <tr> 
+                    <tr>
                         <th field='formula' get='getFormulaId'/>
                     </tr>
                 </thead>
index 82fa9b7..1b28daa 100644 (file)
@@ -5,7 +5,12 @@
 
 <div id='provider-list-div'>
     <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
-        <div>Provider <button dojoType='dijit.form.Button' onClick='pListGrid.showCreateDialog()'>New Provider</button></div>
+        <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
+        <div>Provider</div>
+        <div>
+            <button dojoType='dijit.form.Button' onClick='pListGrid.showCreateDialog()'>New Provider</button>
+            <button dojoType='dijit.form.Button' onClick='pListGrid.deleteSelected()'>Delete Selected</button> </div>
+        </div>
         <table  jsId="pListGrid"
                 dojoType="openils.widget.AutoGrid"
                 fieldOrder="['id', 'name', 'code', 'owner', 'currency_type']"
@@ -24,8 +29,8 @@
 
 <div id='provider-details-div'>
     <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
-        <div id='provider-summary-pane'/> 
-    </div>   
+        <div id='provider-summary-pane'/>
+    </div>
         <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
             <div>Provider Address</div>
             <button dojoType='dijit.form.Button' onClick='paListGrid.showCreateDialog()'>New Provider Address</button>
@@ -52,7 +57,7 @@
                     query="{id: '*'}"
                     fmClass='acqpc'
                     editOnEnter='true'>
-            </table>  
+            </table>
         </div>
 
 
@@ -68,7 +73,7 @@
                     query="{id: '*'}"
                     fmClass='acqpca'
                     editOnEnter='true'>
-                
+
             </table>
         </div>
     </div>
index ac2c848..b551371 100644 (file)
@@ -8,11 +8,12 @@
             <div>Billing Types</div>
             <div>
                 <button dojoType='dijit.form.Button' onClick='btGrid.showCreateDialog()'>New Billing Type</button>
+                <button dojoType='dijit.form.Button' onClick='btGrid.deleteSelected()'>Delete Selected</button>
             </div>
         </div>
         <div>
             <span>Context Org Unit</span>
-            <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='btContextOrgSelect' 
+            <select dojoType="openils.widget.OrgUnitFilteringSelect" jsId='btContextOrgSelect'
                 searchAttr='shortname' labelAttr='shortname'> </select>
         </div>
         <table  jsId="btGrid"
index 69f7da1..961f1ff 100644 (file)
@@ -52,6 +52,7 @@
             <div>Circulation Modifier</div>
             <div>
                 <button dojoType='dijit.form.Button' onClick='cmGrid.showCreateDialog()'>New Circ Modifier</button>
+                <button dojoType='dijit.form.Button' onClick='cmGrid.deleteSelected()'>Delete Selected</button>
             </div>
         </div>
 
index 83dcfdd..7e5daf3 100644 (file)
@@ -6,15 +6,15 @@
 <h1>Standing Penalty Types</h1><br/>
 
 <script>
-  
+
     if(!dojo._hasResource['openils.widget.StandingPenaltyBlockedSelector']) {
         dojo.provide('openils.widget.StandingPenaltyBlockedSelector');
         dojo.require('dojox.form.CheckedMultiSelect');
         dojo.require('dojo.data.ItemFileReadStore');
         dojo.declare(
-            'openils.widget.StandingPenaltyBlockedSelector', 
+            'openils.widget.StandingPenaltyBlockedSelector',
             [dojox.form.CheckedMultiSelect],
-            { 
+            {
                 postCreate : function() {
                     this._multiValue = true;
                     this.addOption({value:'CIRC', label:'CIRC'});
@@ -30,9 +30,9 @@
                         return str.substring(0, str.length - 1);
                     } else {
                         return this.inherited('attr', arguments);
-                    } 
+                    }
                 }
-            } 
+            }
         );
     }
 
@@ -42,6 +42,7 @@
             <div>Standing Penalty Types</div>
             <div>
                 <button dojoType='dijit.form.Button' onClick='spGrid.showCreateDialog()'>New Penalty Type</button>
+                <button dojoType='dijit.form.Button' onClick='spGrid.deleteSelected()'>Delete Selected</button>
             </div>
         </div>
 
index 8cd3ff3..e1c317c 100644 (file)
@@ -7,8 +7,9 @@
         <div>Z39.50 Servers</div>
         <div>
             <button dojoType='dijit.form.Button' onClick='zsGrid.showCreateDialog()'>New Z39.50 Server</button>
+            <button dojoType='dijit.form.Button' onClick='zsGrid.deleteSelected()'>Delete Selected</button>
         </div>
-    </div>       
+    </div>
 
     <table  jsId="zsGrid"
             dojoType="openils.widget.AutoGrid"