1 [% WRAPPER 'base.tt2' %]
2 <script type="text/javascript"> var fundingSourceID = [% ctx.page_args.0 %]; </script>
4 <div id='oils-acq-list-header' class='container'>
5 <div id='oils-acq-list-header-label'>[% l('Funding Source Details') %]</div>
8 <div class='oils-acq-actions-div' style='margin:8px;'> <!-- XXX CSS -->
10 <!-- Dropdown menu for creating a new funding source credit -->
11 <div dojoType="dijit.form.DropDownButton">
12 <span>[% l('Apply Credit') %]</span>
13 <div dojoType="dijit.TooltipDialog" execute="applyFSCredit(arguments[0]);">
14 <table class='dijitTooltipTable'>
16 <td><label for="amount">[% l('Amount: ') %]</label></td>
18 <input dojoType="dijit.form.CurrencyTextBox" name="amount"> </input>
22 <td><label for="note">[% l('Note: ') %]</label></td>
24 <input dojoType="dijit.form.TextBox" name="note"> </input>
28 <td colspan='2' align='center'>
29 <button dojoType=dijit.form.Button type="submit">[% l('Apply') %]</button>
35 <div dojoType="dijit.form.DropDownButton">
36 <span>[% l('Allocate to Fund') %]</span>
37 <div dojoType="dijit.TooltipDialog" execute="applyFSAllocation(arguments[0]);">
38 <table class='dijitTooltipTable'>
40 <td><label for="fund">[% l('Fund: ') %]</label></td>
42 <div id="oils-acq-funding-source-fund-allocate"></div>
46 <td><label for="amount">[% l('Amount: ') %]</label></td>
48 <input dojoType="dijit.form.CurrencyTextBox" name="amount"> </input>
51 <!-- Percent-based allocations are not supported. Will implement or remove later.
53 <td><label for="percent">[% l('Percent: ') %]</label></td>
56 dojoType="dijit.form.NumberTextBox"
57 constraints="{min:0,max:100}"
58 promptMessage="[% l('Please enter an amount between 0 and 100') %]"
65 <td><label for="note">[% l('Note: ') %]</label></td>
67 <input dojoType="dijit.form.TextBox" name="note"> </input>
71 <td colspan='2' align='center'>
72 <button dojoType=dijit.form.Button type="submit">[% l('Apply') %]</button>
80 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
81 <div dojoType="dijit.layout.TabContainer">
83 <div dojoType="dijit.layout.ContentPane" class='oils-acq-detail-content-pane' title="[% l('Summary') %]" selected='true'>
84 <script type='dojo/connect' event='onShow'>loadFSGrid();</script>
86 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
87 <div dojoType="dijit.layout.ContentPane" layoutAlign="client" style='height:600px;'>
88 <table jsId="fundingSourceGrid" dojoType="dojox.grid.DataGrid" query="{id: '*'}" rowSelector='20px'>
91 <th field="id">[% l('ID') %]</th>
92 <th field="name" width='auto'>[% l('Name') %]</th>
93 <th field="code">[% l('Code') %]</th>
94 <th field="balance" get='getSummaryInfo'>[% l('Balance') %]</th>
95 <th field="credit_total" get='getSummaryInfo'>[% l('Total Credits') %]</th>
96 <th field="allocation_total" get='getSummaryInfo'>[% l('Total Debits') %]</th>
97 <th field="currency_type">[% l('Currency Type') %]</th>
98 <th field="owner" width='auto' get='getOrgInfo'>[% l('Owner') %]</th>
106 <div dojoType="dijit.layout.ContentPane" class='oils-acq-detail-content-pane' title="[% l('Credits') %]">
107 <script type='dojo/connect' event='onShow'>loadCreditGrid(); </script>
109 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
110 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
115 dojoType="openils.widget.AutoGrid"
116 fieldOrder="['amount', 'effective_date', 'deadline_date', 'note']"
117 suppressFields="['id', 'funding_source']"
118 defaultCellWidth='"auto"'
121 showPaginator='true'>
127 <!-- Fund Allocations -->
128 <div dojoType="dijit.layout.ContentPane" class='oils-acq-detail-content-pane' title="[% l('Allocations') %]">
129 <script type='dojo/connect' event='onShow'>loadAllocationGrid();</script>
131 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
132 <div dojoType="dijit.layout.ContentPane" layoutAlign="client">
135 jsId="fsAllocationGrid"
137 dojoType="openils.widget.AutoGrid"
138 fieldOrder="['fund', 'amount', 'create_time', 'allocator', 'note']"
139 suppressFields="['id', 'funding_source']"
140 defaultCellWidth='"auto"'
143 showPaginator='true'>
147 <th field='fund' get='getFund' formatter='formatFund'></th>
158 <!-- load the page-specific JS -->
159 <script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/financial/view_funding_source.js'> </script>