1 [% WRAPPER 'default/base.tt2' %]
3 <!-- load the page-specific JS -->
4 <script src='[% ctx.media_prefix %]/js/ui/default/acq/financial/list_funds.js'> </script>
6 <script type="text/javascript">
7 function createFund(fields) {
8 /** Creates a new fund source */
9 openils.acq.Fund.create(
12 var evt = openils.Event.parse(fundId);
17 location.href = /* go to the details page for this fund */
18 '[% ctx.base_path %]/acq/fund/view/'+fundId;
24 function getName(rowIndex, item) {
26 var name = this.grid.store.getValue(item, 'name');
27 var id = this.grid.store.getValue(item, 'id');
28 return '<a href="[% ctx.base_path %]/acq/fund/view/'+id+'">'+name+'</a>';
33 <div class='oils-header-panel' dojoType="dijit.layout.ContentPane" layoutAlign="client">
36 <button dojoType='dijit.form.Button' onClick='lfGrid.showCreateDialog()'>New Fund</button>
37 <button dojoType='dijit.form.Button' onClick='lfGrid.deleteSelected()'>Delete Selected</button>
41 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
42 Year <select dojoType='dijit.form.FilteringSelect' onchange='filterGrid();'
43 jsId='fundFilterYearSelect' labelAttr='year' searchAttr='year'> </select>
46 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
49 dojoType="openils.widget.AutoGrid"
50 fieldOrder="['id', 'name', 'code', 'year', 'org', 'currency_type', 'combined_balance']"
52 defaultCellWidth='"auto"'
57 <th field='combined_balance' get='getBalanceInfo'></th>