You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2009/10/15 17:50:51 UTC
svn commit: r825534 - in /ofbiz/trunk/applications/accounting/widget:
BillingAccountScreens.xml CommonScreens.xml
Author: ashish
Date: Thu Oct 15 15:50:50 2009
New Revision: 825534
URL: http://svn.apache.org/viewvc?rev=825534&view=rev
Log:
Moved decorator screen to CommonScreens.xml file.
This will help to override decorator screen using ${parameters.mainDecoratorLocation}.
Thanks Brajesh for the patch.
Modified:
ofbiz/trunk/applications/accounting/widget/BillingAccountScreens.xml
ofbiz/trunk/applications/accounting/widget/CommonScreens.xml
Modified: ofbiz/trunk/applications/accounting/widget/BillingAccountScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/BillingAccountScreens.xml?rev=825534&r1=825533&r2=825534&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/BillingAccountScreens.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/BillingAccountScreens.xml Thu Oct 15 15:50:50 2009
@@ -20,39 +20,6 @@
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
- <screen name="CommonBillingAccountDecorator">
- <section>
- <widgets>
- <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
- <decorator-section name="body">
- <section>
- <!-- do check for ACCOUNTING, _VIEW permission -->
- <condition>
- <if-has-permission permission="ACCOUNTING" action="_VIEW"/>
- </condition>
- <widgets>
- <section>
- <condition>
- <not><if-empty field="billingAccount"/></not>
- </condition>
- <widgets>
- <include-menu name="BillingAccountTabBar" location="component://accounting/widget/Menus.xml"/>
- </widgets>
- </section>
-
- <decorator-section-include name="body"/>
-
- </widgets>
- <fail-widgets>
- <label style="h3">${uiLabelMap.AccountingViewPermissionError}</label>
- </fail-widgets>
- </section>
- </decorator-section>
- </decorator-screen>
- </widgets>
- </section>
- </screen>
-
<screen name="FindBillingAccount">
<section>
<actions>
@@ -115,7 +82,7 @@
<set field="roleTypeId" from-field="parameters.roleTypeId"/>
</actions>
<widgets>
- <decorator-screen name="CommonBillingAccountDecorator">
+ <decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet title="${uiLabelMap.PageTitleEditBillingAccount}">
<include-form name="EditBillingAccount" location="component://accounting/widget/BillingAccountForms.xml"/>
@@ -136,7 +103,7 @@
<entity-one entity-name="BillingAccount" value-field="billingAccount"/>
</actions>
<widgets>
- <decorator-screen name="CommonBillingAccountDecorator">
+ <decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="BllingAccountRolePanel" title="${uiLabelMap.PageTitleAddBillingAccountRoles}" collapsible="true">
<include-form name="AddBillingAccountRole" location="component://accounting/widget/BillingAccountForms.xml"/>
@@ -159,7 +126,7 @@
<entity-one entity-name="BillingAccount" value-field="billingAccount"/>
</actions>
<widgets>
- <decorator-screen name="CommonBillingAccountDecorator">
+ <decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
@@ -232,7 +199,7 @@
<entity-one entity-name="BillingAccount" value-field="billingAccount"/>
</actions>
<widgets>
- <decorator-screen name="CommonBillingAccountDecorator">
+ <decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="BillingAccountInvoicePanel" title="${uiLabelMap.AccountingFindInvoices}" collapsible="true">
<include-form name="lookupInvoicesStatus" location="component://accounting/webapp/accounting/invoice/InvoiceForms.xml"/>
@@ -255,7 +222,7 @@
<script location="component://accounting/webapp/accounting/WEB-INF/actions/order/BillingAccountOrders.groovy"/>
</actions>
<widgets>
- <decorator-screen name="CommonBillingAccountDecorator">
+ <decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<container style="screenlet">
<container style="screenlet-title-bar">
@@ -294,7 +261,7 @@
<set field="billToCustomer" from-field="billToCustomers[0]"/>
</actions>
<widgets>
- <decorator-screen name="CommonBillingAccountDecorator">
+ <decorator-screen name="CommonBillingAccountDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet id="BillingAccountPaymentPanel" title="${uiLabelMap.AccountingCreatePayment}" collapsible="true">
<include-form name="CreateIncomingBillingAccountPayment" location="component://accounting/widget/BillingAccountForms.xml"/>
Modified: ofbiz/trunk/applications/accounting/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/CommonScreens.xml?rev=825534&r1=825533&r2=825534&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/CommonScreens.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/CommonScreens.xml Thu Oct 15 15:50:50 2009
@@ -308,4 +308,35 @@
</section>
</screen>
+ <screen name="CommonBillingAccountDecorator">
+ <section>
+ <widgets>
+ <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
+ <decorator-section name="body">
+ <section>
+ <!-- do check for ACCOUNTING, _VIEW permission -->
+ <condition>
+ <if-has-permission permission="ACCOUNTING" action="_VIEW"/>
+ </condition>
+ <widgets>
+ <section>
+ <condition>
+ <not><if-empty field="billingAccount"/></not>
+ </condition>
+ <widgets>
+ <include-menu name="BillingAccountTabBar" location="component://accounting/widget/Menus.xml"/>
+ </widgets>
+ </section>
+ <decorator-section-include name="body"/>
+ </widgets>
+ <fail-widgets>
+ <label style="h3">${uiLabelMap.AccountingViewPermissionError}</label>
+ </fail-widgets>
+ </section>
+ </decorator-section>
+ </decorator-screen>
+ </widgets>
+ </section>
+ </screen>
+
</screens>