[open-ils-commits] r12801 - in trunk/Open-ILS/web/templates/default: acq/financial conify/global/acq conify/global/config (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Apr 6 14:03:01 EDT 2009
Author: erickson
Date: 2009-04-06 14:02:57 -0400 (Mon, 06 Apr 2009)
New Revision: 12801
Modified:
trunk/Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2
trunk/Open-ILS/web/templates/default/acq/financial/list_funding_sources.tt2
trunk/Open-ILS/web/templates/default/acq/financial/list_funds.tt2
trunk/Open-ILS/web/templates/default/conify/global/acq/distribution_formula.tt2
trunk/Open-ILS/web/templates/default/conify/global/acq/provider.tt2
trunk/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2
trunk/Open-ILS/web/templates/default/conify/global/config/circ_modifier.tt2
trunk/Open-ILS/web/templates/default/conify/global/config/standing_penalty.tt2
trunk/Open-ILS/web/templates/default/conify/global/config/z3950_source.tt2
Log:
added delete-selected buttons
Modified: trunk/Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2 2009-04-06 16:28:02 UTC (rev 12800)
+++ trunk/Open-ILS/web/templates/default/acq/financial/list_currency_types.tt2 2009-04-06 18:02:57 UTC (rev 12801)
@@ -5,7 +5,7 @@
dojo.require('openils.widget.AutoGrid');
dojo.require('openils.Util');
openils.Util.addOnLoad(
- function() {
+ function() {
ctGrid.loadAll({order_by:{ccm : 'name'}});
}
);
@@ -13,7 +13,10 @@
<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"
Modified: trunk/Open-ILS/web/templates/default/acq/financial/list_funding_sources.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/financial/list_funding_sources.tt2 2009-04-06 16:28:02 UTC (rev 12800)
+++ trunk/Open-ILS/web/templates/default/acq/financial/list_funding_sources.tt2 2009-04-06 18:02:57 UTC (rev 12801)
@@ -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>
Modified: trunk/Open-ILS/web/templates/default/acq/financial/list_funds.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/financial/list_funds.tt2 2009-04-06 16:28:02 UTC (rev 12800)
+++ trunk/Open-ILS/web/templates/default/acq/financial/list_funds.tt2 2009-04-06 18:02:57 UTC (rev 12801)
@@ -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) {
@@ -30,13 +30,14 @@
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>
Modified: trunk/Open-ILS/web/templates/default/conify/global/acq/distribution_formula.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/acq/distribution_formula.tt2 2009-04-06 16:28:02 UTC (rev 12800)
+++ trunk/Open-ILS/web/templates/default/conify/global/acq/distribution_formula.tt2 2009-04-06 18:02:57 UTC (rev 12801)
@@ -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"
@@ -34,7 +37,10 @@
</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>
Modified: trunk/Open-ILS/web/templates/default/conify/global/acq/provider.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 2009-04-06 16:28:02 UTC (rev 12800)
+++ trunk/Open-ILS/web/templates/default/conify/global/acq/provider.tt2 2009-04-06 18:02:57 UTC (rev 12801)
@@ -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>
Modified: trunk/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2 2009-04-06 16:28:02 UTC (rev 12800)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/billing_type.tt2 2009-04-06 18:02:57 UTC (rev 12801)
@@ -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"
Modified: trunk/Open-ILS/web/templates/default/conify/global/config/circ_modifier.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/circ_modifier.tt2 2009-04-06 16:28:02 UTC (rev 12800)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/circ_modifier.tt2 2009-04-06 18:02:57 UTC (rev 12801)
@@ -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>
Modified: trunk/Open-ILS/web/templates/default/conify/global/config/standing_penalty.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/standing_penalty.tt2 2009-04-06 16:28:02 UTC (rev 12800)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/standing_penalty.tt2 2009-04-06 18:02:57 UTC (rev 12801)
@@ -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>
Modified: trunk/Open-ILS/web/templates/default/conify/global/config/z3950_source.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/config/z3950_source.tt2 2009-04-06 16:28:02 UTC (rev 12800)
+++ trunk/Open-ILS/web/templates/default/conify/global/config/z3950_source.tt2 2009-04-06 18:02:57 UTC (rev 12801)
@@ -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"
More information about the open-ils-commits
mailing list