Author: ashish
Date: Wed Jun 22 17:01:46 2016 New Revision: 1749743 URL: http://svn.apache.org/viewvc?rev=1749743&view=rev Log: Applied patch from jira issue - OFBIZ-7259 - Hide associated content related section when creating new Product/Category content. Thanks Ravi for the contribution! Modified: ofbiz/trunk/applications/product/widget/catalog/CategoryScreens.xml ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml Modified: ofbiz/trunk/applications/product/widget/catalog/CategoryScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/CategoryScreens.xml?rev=1749743&r1=1749742&r2=1749743&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/CategoryScreens.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/CategoryScreens.xml Wed Jun 22 17:01:46 2016 @@ -263,17 +263,22 @@ under the License. <link target="/content/control/gotoContent" text="${uiLabelMap.ContentContent} ${uiLabelMap.CommonPage}" url-mode="inter-app" style="buttontext"> <parameter param-name="contentId"/> </link> + <screenlet title="${contentFormTitle}"> + <include-form name="${contentFormName}" location="component://product/widget/catalog/CategoryForms.xml"/> + </screenlet> + <screenlet title="${uiLabelMap.ProductListAssociatedContentInfos}"> + <include-form name="ListAssociatedContentInfos" location="component://product/widget/catalog/ProductForms.xml"/> + </screenlet> + <screenlet title="${uiLabelMap.ProductCreateSimpleTextContentForAlternateLocale}"> + <include-form name="CreateSimpleTextContentForAlternateLocale" location="component://product/widget/catalog/CategoryForms.xml"/> + </screenlet> </widgets> + <fail-widgets> + <screenlet title="${contentFormTitle}"> + <include-form name="${contentFormName}" location="component://product/widget/catalog/CategoryForms.xml"/> + </screenlet> + </fail-widgets> </section> - <screenlet title="${contentFormTitle}"> - <include-form name="${contentFormName}" location="component://product/widget/catalog/CategoryForms.xml"/> - </screenlet> - <screenlet title="${uiLabelMap.ProductListAssociatedContentInfos}"> - <include-form name="ListAssociatedContentInfos" location="component://product/widget/catalog/ProductForms.xml"/> - </screenlet> - <screenlet title="${uiLabelMap.ProductCreateSimpleTextContentForAlternateLocale}"> - <include-form name="CreateSimpleTextContentForAlternateLocale" location="component://product/widget/catalog/CategoryForms.xml"/> - </screenlet> </decorator-section> </decorator-screen> </widgets> Modified: ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml?rev=1749743&r1=1749742&r2=1749743&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml Wed Jun 22 17:01:46 2016 @@ -939,15 +939,25 @@ under the License. <widgets> <decorator-screen name="CommonProductDecorator" location="${parameters.productDecoratorLocation}"> <decorator-section name="body"> - <screenlet title="${uiLabelMap.PageTitleEditProductContent}"> - <include-form name="${contentFormName}" location="component://product/widget/catalog/ProductForms.xml"/> - </screenlet> - <screenlet title="${uiLabelMap.PageTitleListAssociatedContentInfos}"> - <include-form name="ListAssociatedContentInfos" location="component://product/widget/catalog/ProductForms.xml"/> - </screenlet> - <screenlet title="${uiLabelMap.PageTitleCreateSimpleTextContentForAlternateLocale}"> - <include-form name="CreateSimpleTextContentForAlternateLocale" location="component://product/widget/catalog/ProductForms.xml"/> - </screenlet> + <section> + <condition><not><if-empty field="contentId"/></not></condition> + <widgets> + <screenlet title="${uiLabelMap.PageTitleEditProductContent}"> + <include-form name="${contentFormName}" location="component://product/widget/catalog/ProductForms.xml"/> + </screenlet> + <screenlet title="${uiLabelMap.PageTitleListAssociatedContentInfos}"> + <include-form name="ListAssociatedContentInfos" location="component://product/widget/catalog/ProductForms.xml"/> + </screenlet> + <screenlet title="${uiLabelMap.PageTitleCreateSimpleTextContentForAlternateLocale}"> + <include-form name="CreateSimpleTextContentForAlternateLocale" location="component://product/widget/catalog/ProductForms.xml"/> + </screenlet> + </widgets> + <fail-widgets> + <screenlet title="${uiLabelMap.PageTitleEditProductContent}"> + <include-form name="${contentFormName}" location="component://product/widget/catalog/ProductForms.xml"/> + </screenlet> + </fail-widgets> + </section> </decorator-section> </decorator-screen> </widgets> |
Free forum by Nabble | Edit this page |