[open-ils-commits] r8695 - in branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq: financial picklist

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Feb 7 17:35:10 EST 2008


Author: erickson
Date: 2008-02-07 17:06:26 -0500 (Thu, 07 Feb 2008)
New Revision: 8695

Added:
   branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund.html
   branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund_allocation.html
   branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funds.html
   branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund.html
   branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/create.html
Log:
adding some new files

Added: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund.html	                        (rev 0)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund.html	2008-02-07 22:06:26 UTC (rev 8695)
@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+<!-- vim:set filetype=mako: -->
+<%inherit file='../base.html'/>
+<%namespace file='../../common/widgets.html' name='widget'/>
+<%def name="page_title()">${_('Create Fund')}</%def>
+<%def name="block_content()">
+
+<form action='${c.oils.acq.prefix}/fund/create' method='POST'>
+    <table class='oils-admin-table'>
+        <tbody>
+            <tr>
+                <td class='oils-admin-label'>${_('Fund Name')}</td>
+                <td> 
+                    <input type='text' size='42' name='${c.oils.acq.fund_name_.cgi_name}'/>
+                </td>
+            </tr>
+            <tr>
+                <td class='oils-admin-label'>${_('Fund Onwer')}</td>
+                <td> 
+                    ${widget.org_select(
+                        c.oils.acq.fund_org_.cgi_name, 
+                        c.oils.core.perm_tree['CREATE_FUND'], c.oils.core.workstation.id(),
+                        c.oils.util.get_min_org_depth(c.oils.core.high_perm_orgs['CREATE_FUND']))}
+                </td>
+            </tr>
+            <tr>
+                <td class='oils-admin-label'>${_('Fund Year')}</td>
+                <td> 
+                    <input type='text' size='42' year='${c.oils.acq.fund_year_.cgi_name}'/>
+                </td>
+            </tr>
+            <tr>
+                <td colspan='2'>
+                    <input type='submit' value='${_("Create Fund")}'/>
+                </td>
+            </tr>
+        </tbody>
+    </table>
+</form>
+</%def>

Added: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund_allocation.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund_allocation.html	                        (rev 0)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund_allocation.html	2008-02-07 22:06:26 UTC (rev 8695)
@@ -0,0 +1,55 @@
+# -*- coding: utf-8 -*-
+<!-- vim:set filetype=mako: -->
+<%inherit file='../base.html'/>
+<%namespace file='../../common/widgets.html' name='widget'/>
+<%def name="page_title()">${_('Create Fund Allocation')}</%def>
+<%def name="block_content()">
+
+<form action='${c.oils.acq.prefix}/fund/allocate' method='POST'>
+    <table class='oils-admin-table'>
+        <tbody>
+            <tr>
+                <td class='oils-admin-label'>${_('Fund')}</td>
+                <td>
+                    <input type='hidden' name='${c.oils.acq.fund_allocation_fund_.cgi_name}' value='${c.oils.acq.fund_id}'/>
+                    <span>${c.oils.acq.fund.name()}</span>
+                    <span>${c.oils.acq.fund.org().shortname()}</span>
+                </td>
+            </tr>
+            <tr>
+                <td class='oils-admin-label'>${_('Fund Source')}</td>
+                <td> 
+                    <select name='${c.oils.acq.fund_allocation_source_.cgi_name}'>
+                        % for source in c.oils.acq.fund_source_list:
+                            <option value='${source.id()}'>${source.name()}</option>
+                        % endfor
+                    </select>
+                </td>
+            </tr>
+            <tr>
+                <td class='oils-admin-label'>${_('Allocation Amount')}</td>
+                <td> 
+                    <input type='text' size='12' name='${c.oils.acq.fund_allocation_amount_.cgi_name}'/>
+                </td>
+            </tr>
+            <tr>
+                <td class='oils-admin-label'>${_('Allocation Percent')}</td>
+                <td> 
+                    <input type='text' size='4' name='${c.oils.acq.fund_allocation_percent_.cgi_name}'/>
+                </td>
+            </tr>
+            <tr>
+                <td class='oils-admin-label'>${_('Note')}</td>
+                <td> 
+                    <textarea name='${c.oils.acq.fund_allocation_note_.cgi_name}'> </textarea>
+                </td>
+            </tr>
+            <tr>
+                <td colspan='2'>
+                    <input type='submit' value='${_("Allocate Funds")}'/>
+                </td>
+            </tr>
+        </tbody>
+    </table>
+</form>
+</%def>

Added: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funds.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funds.html	                        (rev 0)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/list_funds.html	2008-02-07 22:06:26 UTC (rev 8695)
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+<%inherit file='../base.html'/>
+<%namespace file='../../common/widgets.html' name='widget'/>
+<%def name="page_title()">${_('Funds')}</%def>
+<%def name="block_content()">
+
+<table class='oils-admin-table'>
+    <thead>
+        <tr>
+            <td>${_('Fund Name')}</td>
+            <td>${_('Fund Owner')}</td>
+            <td>${_('Fund Year')}</td>
+            <td>${_('Fund Balance')}</td>
+        </tr>
+    </thead>
+    <tbody>
+        % for fund in c.oils.acq.fund_list:
+        <tr>
+            <td><a href='${c.oils.acq.prefix}/fund/view/${fund.id()}'>${fund.name()}</a></td>
+            <td>${fund.org().name()}</td> 
+            <td>${fund.year()}</td> 
+            <td>${fund.summary()['combined_balance']}</td> 
+        </tr>
+        %endfor
+    </tbody>
+</table>
+</%def>

Added: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund.html	                        (rev 0)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund.html	2008-02-07 22:06:26 UTC (rev 8695)
@@ -0,0 +1,49 @@
+# -*- coding: utf-8 -*-
+<%inherit file='../base.html'/>
+<%namespace file='../../common/widgets.html' name='widget'/>
+<%def name="page_title()">${_('View Fund')}</%def>
+<%def name="block_content()">
+<table class='oils-admin-table'>
+    <tbody>
+        <tr>
+            <td class='oils-admin-label'>${_('Fund Name')}</td>
+            <td>${c.oils.acq.fund.name()}</td>
+        </tr>
+        <tr>
+            <td class='oils-admin-label'>${_('Fund Onwer')}</td>
+            <td>${c.oils.acq.fund.org().name()}</td> 
+        </tr>
+        <tr>
+            <td class='oils-admin-label'>${_('Fund Year')}</td>
+            <td>${c.oils.acq.fund.year()}</td> 
+        </tr>
+        <tr>
+            <td class='oils-admin-label'>${_('Amount Allocated to this Fund')}</td>
+            <td>${c.oils.acq.fund.summary()['allocation_total']}</td> 
+        </tr>
+        <tr>
+            <td class='oils-admin-label'>${_('Fund Balance (Total - (Spent + Encumberances))')}</td>
+            <td>${c.oils.acq.fund.summary()['combined_balance']}</td> 
+        </tr>
+        <tr>
+            <td class='oils-admin-label'>${_('Fund Spent Balance (Total - Spent)')}</td>
+            <td>${c.oils.acq.fund.summary()['spent_balance']}</td> 
+       </tr>
+       <tr>
+            <td class='oils-admin-label'>${_('Total Debits (Spent + Encumbered)')}</td>
+            <td>${c.oils.acq.fund.summary()['debit_total']}</td> 
+        </tr>
+        <tr>
+            <td class='oils-admin-label'>${_('Total Spent')}</td>
+            <td>${c.oils.acq.fund.summary()['spent_total']}</td> 
+        </tr>
+        <tr>
+            <td class='oils-admin-label'>${_('Total Encumbered')}</td>
+            <td>${c.oils.acq.fund.summary()['encumberance_total']}</td> 
+        </tr>
+    </tbody>
+</table>
+<div>
+    <a href='${c.oils.acq.prefix}/fund/allocate?${c.oils.acq.fund_id_.cgi_name}=${c.oils.acq.fund.id()}'>${_('Allocate Money')}</a>
+</div>
+</%def>

Added: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/create.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/create.html	                        (rev 0)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/picklist/create.html	2008-02-07 22:06:26 UTC (rev 8695)
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+<!-- vim:set filetype=mako: -->
+<%inherit file='../base.html'/>
+<%def name="page_title()">${_('Create Picklist')}</%def>
+<%def name="block_content()">
+
+<form action='${c.oils.acq.prefix}/picklist/create' method='POST'>
+    <table class='oils-admin-table'>
+        <tbody>
+            <tr>
+                <td class='oils-admin-label'>${_('Picklist Name')}</td>
+                <td> 
+                    <input type='text' size='42' name='${c.oils.acq.picklist_name_.cgi_name}'/>
+                </td>
+            </tr>
+            <tr>
+                <td colspan='2'>
+                    <input type='submit' value='${_("Create Picklist")}'/>
+                </td>
+            </tr>
+        </tbody>
+    </table>
+</form>
+</%def>



More information about the open-ils-commits mailing list