1 [% WRAPPER 'default/base.tt2' %]
3 <!-- load the page-specific JS -->
4 <script src='[% ctx.media_prefix %]/js/ui/default/acq/financial/list_funding_sources.js'> </script>
6 <!-- The main grid lives here -->
8 function getName(rowIndex, item) {
10 var name = this.grid.store.getValue(item, 'name');
11 var id = this.grid.store.getValue(item, 'id');
12 return '<a href="[% ctx.base_path %]/acq/funding_source/view/'+id+'">'+name+'</a>';
16 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
17 <div dojoType="dijit.layout.ContentPane" layoutAlign="top" class='oils-header-panel'>
18 <div>Funding Sources</div>
20 <button dojoType='dijit.form.Button' onClick='fsGrid.showCreateDialog()'>New Funding Source</button>
21 <button dojoType='dijit.form.Button' onClick='fsGrid.deleteSelected()'>Delete Selected</button>
26 dojoType="openils.widget.AutoGrid"
27 fieldOrder="['id', 'name', 'owner', 'code', 'currency_type', 'balance']"
34 <th field="name" get='getName'/>
35 <th field="owner" get='getOrgInfo'/>
36 <th field="balance" get='getBalanceInfo'/>