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_uri %]/acq/fund/view/'+fundId;
25 <!-- The main grid lives here -->
27 function getName(rowIndex, item) {
29 var name = this.grid.store.getValue(item, 'name');
30 var id = this.grid.store.getValue(item, 'id');
31 return '<a href="[% ctx.base_uri %]/acq/fund/view/'+id+'">'+name+'</a>';
35 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
36 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
39 <button dojoType='dijit.form.Button' onClick='lfGrid.showCreateDialog()'>New Fund</button>
40 <button dojoType='dijit.form.Button' onClick='lfGrid.deleteSelected()'>Delete Selected</button>
44 <select dojoType='dijit.form.FilteringSelect' onchange='filterGrid();' style='width:100px;'
45 jsId='fundFilterYearSelect' labelAttr='year' searchAttr='year'> </select>
49 dojoType="openils.widget.AutoGrid"
50 fieldOrder="['id', 'name', 'code', 'year', 'org', 'currency_type', 'combined_balance']"
56 <tr><th field='owner' get='getOrgInfo'/>