[open-ils-commits] r9555 - branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial

svn at svn.open-ils.org svn at svn.open-ils.org
Mon May 12 13:28:07 EDT 2008


Author: erickson
Date: 2008-05-12 13:28:00 -0400 (Mon, 12 May 2008)
New Revision: 9555

Modified:
   branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_funding_source.html
Log:
partially complete fund allocation creation tooltip

Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_funding_source.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_funding_source.html	2008-05-12 14:23:43 UTC (rev 9554)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_funding_source.html	2008-05-12 17:28:00 UTC (rev 9555)
@@ -147,6 +147,60 @@
             </table>
         </div>
     </div> 
+    <div dojoType="dijit.form.DropDownButton">
+        <span>${('Allocate to Fund')}</span>
+        <div dojoType="dijit.TooltipDialog" execute="applyFSAllocation(arguments[0]);">
+            <script type='dojo/connect' event='onOpen'>
+                openils.acq.Fund.createStore(
+                    function(store) {
+                        fundingSourceFundSelector.store = 
+                            new dojo.data.ItemFileReadStore({data:store});
+                        fundingSourceFundSelector.setValue(store.items[0].id);
+                    },
+                    'ADMIN_FUND' /* need to check MANAGE_FUND as well... */
+                );
+            </script>
+            <table class='dijitTooltipTable'>
+                <tr>
+                    <td><label for="amount">${_('Fund:')} </label></td>
+                    <td>
+                        <input jsId='fundingSourceFundSelector' name="fund" 
+                            dojoType="dijit.form.FilteringSelect" searchAttr='name' labelAttr='name'>
+                        </input>
+                    </td>
+                </tr>
+                <tr>
+                    <td><label for="amount">${_('Amount:')} </label></td>
+                    <td>
+                        <!-- XXX get currency from funding source ... -->
+                        <input dojoType="dijit.form.CurrencyTextBox" name="amount" currency='USD'> </input>
+                    </td>
+                </tr>
+                <tr>
+                    <td><label for="amount">${_('Percent:')} </label></td>
+                    <td>
+                        <input 
+                            dojoType="dijit.form.NumberTextBox" 
+                            constraints="{min:0,max:100}" 
+                            promptMessage="${_('Please enter an amount between 0 and 100')}"
+                            name="percent"> 
+                        </input>
+                    </td>
+                </tr>
+                <tr>
+                    <td><label for="note">${_('Note:')} </label></td>
+                    <td>
+                        <input dojoType="dijit.form.TextBox" name="note"> </input>
+                    </td>
+                </tr>
+                <tr>
+                    <td colspan='2' align='center'>
+                        <button dojoType=dijit.form.Button type="submit">${_('Apply')}</button>
+                    </td>
+                </tr>
+            </table>
+        </div>
+    </div> 
 </div>
 
 <style>



More information about the open-ils-commits mailing list