From: erickson Date: Tue, 5 Feb 2008 20:00:37 +0000 (+0000) Subject: more basic fund crud interfaces X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=04aaef1ae36909355c0e5b5e455caa933d15fa04;p=Evergreen.git more basic fund crud interfaces git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8647 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/oilsweb/oilsweb/controllers/acq/fund.py b/Open-ILS/web/oilsweb/oilsweb/controllers/acq/fund.py index 2c4aebb855..ce378a66f9 100644 --- a/Open-ILS/web/oilsweb/oilsweb/controllers/acq/fund.py +++ b/Open-ILS/web/oilsweb/oilsweb/controllers/acq/fund.py @@ -12,7 +12,7 @@ class FundController(BaseController): r.ctx.core.org_tree = oils.org.OrgUtil.fetch_org_tree() fund_mgr = oilsweb.lib.acq.fund.FundMgr(r) fund = fund_mgr.retrieve(kwargs.get('id')) - fund.owner(oils.org.OrgUtil.get_org_unit(fund.owner())) # flesh the owner + fund.org(oils.org.OrgUtil.get_org_unit(fund.org())) # flesh the org r.ctx.acq.fund = fund return r.render('acq/financial/view_fund.html') @@ -21,7 +21,7 @@ class FundController(BaseController): fund_mgr = oilsweb.lib.acq.fund.FundMgr(r) r.ctx.acq.fund_list = fund_mgr.retrieve_org_funds() for f in r.ctx.acq.fund_list: - f.owner(oils.org.OrgUtil.get_org_unit(f.owner())) + f.org(oils.org.OrgUtil.get_org_unit(f.org())) return r.render('acq/financial/list_funds.html') diff --git a/Open-ILS/web/oilsweb/oilsweb/lib/acq/fund.py b/Open-ILS/web/oilsweb/oilsweb/lib/acq/fund.py index f35df273de..745c2099bf 100644 --- a/Open-ILS/web/oilsweb/oilsweb/lib/acq/fund.py +++ b/Open-ILS/web/oilsweb/oilsweb/lib/acq/fund.py @@ -21,18 +21,13 @@ class FundMgr(object): oils.event.Event.parse_and_raise(fund) return fund - ''' XXX update to look like a fund def retrieve_org_funds(self): funds = self.ses.request( 'open-ils.acq.fund.org.retrieve', - self.request_mgr.ctx.core.authtoken, - self.request_mgr.ctx.core.workstation.owning_lib(), - {"full_path":1}).recv().content() + self.request_mgr.ctx.core.authtoken).recv().content() oils.event.Event.parse_and_raise(funds) return funds - - ''' def create_fund(self, fund): fund_id = self.ses.request( 'open-ils.acq.fund.create', diff --git a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/navigate.html b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/navigate.html index f67681a501..ca675078ab 100644 --- a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/navigate.html +++ b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/navigate.html @@ -1,5 +1,8 @@ # -*- coding: utf-8 -*-
+ ${_('Funds')} +
+
${_('New Fund')}
diff --git a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund_source.html b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund_source.html index 455354cf58..0c248e3074 100644 --- a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund_source.html +++ b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/view_fund_source.html @@ -3,23 +3,20 @@ <%namespace file='../../common/widgets.html' name='widget'/> <%def name="page_title()">${_('View Fund Source')} <%def name="block_content()"> - -
- - - - - - - - - - - - - - - -
${_('Fund Source Name')}${c.oils.acq.fund_source.name()}
${_('Fund Source Onwer')}${c.oils.acq.fund_source.owner().name()}
${_('Fund Source Currency Type')}${c.oils.acq.fund_source.currency_type()}
-
+ + + + + + + + + + + + + + + +
${_('Fund Source Name')}${c.oils.acq.fund_source.name()}
${_('Fund Source Onwer')}${c.oils.acq.fund_source.owner().name()}
${_('Fund Source Currency Type')}${c.oils.acq.fund_source.currency_type()}