From: erickson Date: Wed, 13 Feb 2008 18:15:23 +0000 (+0000) Subject: added basic provider list/create/view X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e8c4337774158854312541d5294f2bedee944fe6;p=Evergreen.git added basic provider list/create/view git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8746 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/oilsweb/oilsweb/controllers/acq/__init__.py b/Open-ILS/web/oilsweb/oilsweb/controllers/acq/__init__.py index f3aec130a1..d320542a77 100644 --- a/Open-ILS/web/oilsweb/oilsweb/controllers/acq/__init__.py +++ b/Open-ILS/web/oilsweb/oilsweb/controllers/acq/__init__.py @@ -55,7 +55,6 @@ class AcqContext(SubContext): self.fund_source_credit_amount = ContextItem(cgi_name='acq.fsca') self.fund_source_credit_note = ContextItem(cgi_name='acq.fscn') - self.fund_allocation = ContextItem() self.fund_allocation_list = ContextItem() self.fund_allocation_source= ContextItem(cgi_name='acq.fas') @@ -64,6 +63,13 @@ class AcqContext(SubContext): self.fund_allocation_percent = ContextItem(cgi_name='acq.fap') self.fund_allocation_note = ContextItem(cgi_name='acq.fan') + self.provider = ContextItem() + self.provider_id = ContextItem() + self.provider_list = ContextItem() + self.provider_name = ContextItem(cgi_name='acq.pn') + self.provider_currency_type = ContextItem(cgi_name='acq.pct') + self.provider_owner = ContextItem(cgi_name='acq.po') + # ------------------------------------------------------------- # utility functions diff --git a/Open-ILS/web/oilsweb/oilsweb/controllers/acq/fund.py b/Open-ILS/web/oilsweb/oilsweb/controllers/acq/fund.py index 2620a187db..020d69d129 100644 --- a/Open-ILS/web/oilsweb/oilsweb/controllers/acq/fund.py +++ b/Open-ILS/web/oilsweb/oilsweb/controllers/acq/fund.py @@ -67,7 +67,7 @@ class FundController(BaseController): return redirect_to(controller='acq/fund', action='view', id=fund_id) usermgr = oilsweb.lib.user.User(r.ctx.core) - tree = usermgr.highest_work_perm_tree('CREATE_FUND') + tree = usermgr.highest_work_perm_tree('ADMIN_FUND') types = ses.request( 'open-ils.acq.currency_type.all.retrieve', diff --git a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund.html b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund.html index d6d0a22d1f..b656485c06 100644 --- a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund.html +++ b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/financial/create_fund.html @@ -19,8 +19,8 @@ ${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']))} + c.oils.core.perm_tree['ADMIN_FUND'], c.oils.core.workstation.id(), + c.oils.util.get_min_org_depth(c.oils.core.high_perm_orgs['ADMIN_FUND']))} 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 84c6ab3f85..4745c4abeb 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 @@ -5,3 +5,7 @@
${_('Funding Sources')}
+
+ ${_('Providers')} +
+ diff --git a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/navigate.html b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/navigate.html index a708bd5485..76068dad23 100644 --- a/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/navigate.html +++ b/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/navigate.html @@ -12,9 +12,6 @@ % endif
${_('Funds')} -
% if c.oils.core.page.startswith('acq/financial'):