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"
<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>
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>
<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"
fmClass='acqdfe'
editOnEnter='true'>
<thead>
- <tr>
+ <tr>
<th field='formula' get='getFormulaId'/>
</tr>
</thead>
<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']"
<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>
query="{id: '*'}"
fmClass='acqpc'
editOnEnter='true'>
- </table>
+ </table>
</div>
query="{id: '*'}"
fmClass='acqpca'
editOnEnter='true'>
-
+
</table>
</div>
</div>
<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"
<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>
<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'});
return str.substring(0, str.length - 1);
} else {
return this.inherited('attr', arguments);
- }
+ }
}
- }
+ }
);
}
<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>
<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"