Author: mrisaliti
Date: Sun Dec 30 09:50:49 2007 New Revision: 607566 URL: http://svn.apache.org/viewvc?rev=607566&view=rev Log: Product Subscription forms (ftl/widgets screen) has now the same look and feel (Part of issue OFBIZ-1544) Modified: ofbiz/trunk/applications/product/config/ProductUiLabels.properties ofbiz/trunk/applications/product/config/ProductUiLabels_it.properties ofbiz/trunk/applications/product/widget/catalog/SubscriptionForms.xml ofbiz/trunk/applications/product/widget/catalog/SubscriptionMenus.xml ofbiz/trunk/applications/product/widget/catalog/SubscriptionScreens.xml Modified: ofbiz/trunk/applications/product/config/ProductUiLabels.properties URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/config/ProductUiLabels.properties?rev=607566&r1=607565&r2=607566&view=diff ============================================================================== --- ofbiz/trunk/applications/product/config/ProductUiLabels.properties (original) +++ ofbiz/trunk/applications/product/config/ProductUiLabels.properties Sun Dec 30 09:50:49 2007 @@ -79,6 +79,9 @@ PageTitleAddProductSubscriptionResources=Add Product Subscription Resources PageTitleAddProductSupplier=Add Product Supplier PageTitleAddProductWorkEffort=Add Product Work Effort +PageTitleAddSubscriptionAttributes=Add Subscription Attributes +PageTitleAddSubscriptionCommEvent=Add Subscription Comm Event +PageTitleAddSubscriptionResourceProducts=Add Subscription Resource Products PageTitleAddVendorProduct=Add Vendor Product PageTitleAdvancedSearch=Advanced Search PageTitleApplyFeaturesFromCategory=Apply Features From Category Modified: ofbiz/trunk/applications/product/config/ProductUiLabels_it.properties URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/config/ProductUiLabels_it.properties?rev=607566&r1=607565&r2=607566&view=diff ============================================================================== --- ofbiz/trunk/applications/product/config/ProductUiLabels_it.properties (original) +++ ofbiz/trunk/applications/product/config/ProductUiLabels_it.properties Sun Dec 30 09:50:49 2007 @@ -77,6 +77,9 @@ PageTitleAddProductSubscriptionResources=Aggiungi Risorse Abbonamento Prodotto PageTitleAddProductSupplier=Aggiungi Prodotto del Fornitore PageTitleAddProductWorkEffort=Aggiungi Impegno di Lavoro Prodotto +PageTitleAddSubscriptionAttributes=Aggiungi Attributi Abbonamento +PageTitleAddSubscriptionCommEvent=Aggiungi Evento Comunicazioni Abbonamento +PageTitleAddSubscriptionResourceProducts=Aggiungi Risorse Prodotti Abbonamento PageTitleAddVendorProduct=Aggiungi Fornitore Prodotto PageTitleAdvancedSearch=Ricerca Avanzata PageTitleApplyFeaturesFromCategory=Applica Caratteristiche Dalla Categoria Modified: ofbiz/trunk/applications/product/widget/catalog/SubscriptionForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/SubscriptionForms.xml?rev=607566&r1=607565&r2=607566&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/SubscriptionForms.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/SubscriptionForms.xml Sun Dec 30 09:50:49 2007 @@ -23,7 +23,7 @@ <!-- Subscription Forms --> <form name="FindSubscription" default-map-name="subscription" target="FindSubscription" type="single" - default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="inputBox"> + header-row-style="header-row" default-table-style="basic-table"> <auto-fields-entity entity-name="Subscription" default-field-type="find"/> <field name="subscriptionResourceId" widget-style="selectBox"> @@ -70,7 +70,7 @@ <field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="ListFindSubscription" target="" type="list" list-name="listIt" - default-title-style="tableheadtext" default-tooltip-style="tabletext" default-widget-style="tabletext" + odd-row-style="alternate-row" default-table-style="basic-table" paginate-target="FindSubscription" paginate="true"> <actions> <service service-name="performFind" result-map-list-name="listIt" result-map-name="performFindResult"> @@ -125,7 +125,7 @@ </field> </form> <form name="EditSubscription" type="single" target="updateSubscription" default-map-name="subscription" - default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"> + header-row-style="header-row" default-table-style="basic-table"> <alt-target use-when="subscription==null" target="createSubscription"/> <auto-fields-service service-name="updateSubscription"/> @@ -208,7 +208,7 @@ <!-- SubscriptionResource Forms --> <form name="ListSubscriptionResources" type="list" list-name="examples" - default-title-style="tableheadtext" default-widget-style="tabletext" default-tooltip-style="tabletext" + odd-row-style="alternate-row" default-table-style="basic-table" paginate-target="FindSubscriptionResource"> <actions> <entity-condition entity-name="SubscriptionResource"> @@ -236,7 +236,7 @@ </field> </form> <form name="EditSubscriptionResource" type="single" target="updateSubscriptionResource" default-map-name="subscriptionResource" - default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"> + header-row-style="header-row" default-table-style="basic-table"> <alt-target use-when="subscriptionResource==null" target="createSubscriptionResource"/> <auto-fields-service service-name="updateSubscriptionResource"/> @@ -261,7 +261,7 @@ <!-- ProductSubscriptionResource --> <form name="ListSubscriptionResourceProducts" type="list" list-name="productSubscriptionResource" target="updateProductSubscriptionResourceSr" - default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"> + odd-row-style="alternate-row" default-table-style="basic-table"> <actions> <entity-condition entity-name="ProductSubscriptionResource"> <condition-expr field-name="subscriptionResourceId" env-name="subscriptionResourceId"/> @@ -296,7 +296,7 @@ <field name="submitButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="AddSubscriptionResourceProduct" type="single" target="createProductSubscriptionResourceSr" title="" - default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"> + header-row-style="header-row" default-table-style="basic-table"> <auto-fields-service service-name="createProductSubscriptionResource"/> <field name="subscriptionResourceId"><hidden/></field> @@ -320,22 +320,22 @@ <field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="EditSubscriptionAttributes" type="list" list-name="subscriptionAttributes" target="UpdateSubscriptionAttribute" - default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"> + odd-row-style="alternate-row" default-table-style="basic-table"> <auto-fields-service service-name="updateSubscriptionAttribute"/> <field name="subscriptionId"><hidden/></field> - <field name="updateButton" widget-style="smallSubmit"><submit button-type="button"/></field> + <field name="updateButton" title="${uiLabelMap.CommonUpdate}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <form name="AddSubscriptionAttribute" type="single" target="UpdateSubscriptionAttribute" - default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"> + header-row-style="header-row" default-table-style="basic-table"> <auto-fields-service service-name="updateSubscriptionAttribute"/> <field name="subscriptionId"><hidden/></field> - <field name="addButton" widget-style="smallSubmit"><submit button-type="button"/></field> + <field name="addButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field> </form> <!-- Subscription Communication Event --> <form name="listSubscriptionCommEvent" type="list" list-name="subscriptionCommEvent" target="ListSubscriptionCommEvent" - default-title-style="tableheadtext" default-widget-style="tabletext" default-tooltip-style="tabletext"> + odd-row-style="alternate-row" default-table-style="basic-table"> <actions> <entity-condition entity-name="SubscriptionAndCommEvent"> <condition-expr field-name="subscriptionId" env-name="subscriptionId"/> @@ -346,7 +346,7 @@ <field name="communicationEventId" widget-style="buttontext"> <hyperlink also-hidden="false" description="${communicationEventId}" target="/partymgr/control/EditCommunicationEvent?communicationEventId=${communicationEventId}" target-type="inter-app"/> </field> - <field name="partyIdFrom"> + <field name="partyIdFrom"> <display-entity description="${firstName} ${lastName} [${partyId}]" entity-name="Person" key-field-name="partyId"/> </field> <field name="partyIdTo"> @@ -365,7 +365,7 @@ </field> </form> <form name="createSubscriptionCommEvent" type="single" target="createSubscriptionCommEvent" title="" - default-title-style="tableheadtext" default-widget-style="inputBox" default-tooltip-style="tabletext"> + header-row-style="header-row" default-table-style="basic-table"> <auto-fields-service service-name="createSubscriptionCommEvent"/> <field name="subscriptionId"><hidden value="${parameters.subscriptionId}"/></field> <field name="communicationEventId"> Modified: ofbiz/trunk/applications/product/widget/catalog/SubscriptionMenus.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/SubscriptionMenus.xml?rev=607566&r1=607565&r2=607566&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/SubscriptionMenus.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/SubscriptionMenus.xml Sun Dec 30 09:50:49 2007 @@ -20,10 +20,8 @@ <menus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-menu.xsd"> - <menu name="EditSubscription" default-title-style="tabButton" default-selected-style="tabButtonSelected" - default-tooltip-style="tabletext" default-widget-style="tabButton" - selected-menuitem-context-field-name="tabButtonItem" - orientation="horizontal" title="" type="simple"> + <menu name="EditSubscription" default-selected-style="selected" type="simple" + menu-container-style="button-bar button-style-1"> <menu-item name="EditSubscription" title="${uiLabelMap.ProductSubscription}"> <link target="EditSubscription?subscriptionId=${subscriptionId}"/> </menu-item> @@ -35,10 +33,8 @@ <link target="EditSubscriptionCommEvent?subscriptionId=${subscriptionId}"/> </menu-item> </menu> - <menu name="EditSubscriptionResource" default-title-style="tabButton" default-selected-style="tabButtonSelected" - default-tooltip-style="tabletext" default-widget-style="tabButton" - selected-menuitem-context-field-name="tabButtonItem" - orientation="horizontal" title="" type="simple"> + <menu name="EditSubscriptionResource" default-selected-style="selected" type="simple" + menu-container-style="button-bar button-style-1">> <menu-item name="EditSubscriptionResource" title="${uiLabelMap.ProductSubscriptionResource}"> <link target="EditSubscriptionResource?subscriptionResourceId=${subscriptionResourceId}"/> </menu-item> Modified: ofbiz/trunk/applications/product/widget/catalog/SubscriptionScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/SubscriptionScreens.xml?rev=607566&r1=607565&r2=607566&view=diff ============================================================================== --- ofbiz/trunk/applications/product/widget/catalog/SubscriptionScreens.xml (original) +++ ofbiz/trunk/applications/product/widget/catalog/SubscriptionScreens.xml Sun Dec 30 09:50:49 2007 @@ -31,23 +31,64 @@ <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> - <section> - <condition> - <if-has-permission permission="CATALOG" action="_VIEW"/> - </condition> - <widgets> - <container><label style="head1">${uiLabelMap.${titleProperty}}</label></container> - <container> - <link target="EditSubscription" text="${uiLabelMap.ProductNewSubscription}" style="buttontext"/> - <link target="FindSubscriptionResource" text="${uiLabelMap.PageTitleFindSubscriptionResource}" style="buttontext"/> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <section> + <condition> + <if-has-permission permission="CATALOG" action="_VIEW"/> + </condition> + <widgets> + <label text="${uiLabelMap.PageTitleFindSubscription}"/> + </widgets> + <fail-widgets> + <label>${uiLabelMap.SubscriptionViewPermissionError}</label> + </fail-widgets> + </section> </container> - <include-form name="FindSubscription" location="component://product/widget/catalog/SubscriptionForms.xml"/> - <include-form name="ListFindSubscription" location="component://product/widget/catalog/SubscriptionForms.xml"/> - </widgets> - <fail-widgets> - <label style="head3">${uiLabelMap.SubscriptionViewPermissionError}</label> - </fail-widgets> - </section> + </container> + <container style="screenlet-body"> + <section> + <condition> + <if-has-permission permission="CATALOG" action="_VIEW"/> + </condition> + <widgets> + <container> + <link target="EditSubscription" text="${uiLabelMap.ProductNewSubscription}" style="buttontext"/> + <link target="FindSubscriptionResource" text="${uiLabelMap.PageTitleFindSubscriptionResource}" style="buttontext"/> + </container> + <include-form name="FindSubscription" location="component://product/widget/catalog/SubscriptionForms.xml"/> + </widgets> + </section> + </container> + </container> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <section> + <condition> + <if-has-permission permission="CATALOG" action="_VIEW"/> + </condition> + <widgets> + <label text="${uiLabelMap.PageTitleFindSubscription}"/> + </widgets> + <fail-widgets> + <label>${uiLabelMap.SubscriptionViewPermissionError}</label> + </fail-widgets> + </section> + </container> + </container> + <container style="screenlet-body"> + <section> + <condition> + <if-has-permission permission="CATALOG" action="_VIEW"/> + </condition> + <widgets> + <include-form name="ListFindSubscription" location="component://product/widget/catalog/SubscriptionForms.xml"/> + </widgets> + </section> + </container> + </container> </decorator-section> </decorator-screen> </widgets> @@ -77,10 +118,9 @@ <widgets> <include-menu name="EditSubscription" location="component://product/widget/catalog/SubscriptionMenus.xml"/> <container><link target="EditSubscription" text="${uiLabelMap.ProductNewSubscription}" style="buttontext"/></container> - <container><label style="head1">${uiLabelMap.${titleProperty}}</label><label style="head2"> ${uiLabelMap.CommonFor} [${subscriptionId}]</label></container> + <container><label style="head1">${uiLabelMap.${titleProperty}} ${uiLabelMap.CommonFor} [${subscriptionId}]</label></container> </widgets> </section> - <decorator-section-include name="body"/> </widgets> <fail-widgets> @@ -104,7 +144,20 @@ <widgets> <decorator-screen name="CommonSubscriptionDecorator"> <decorator-section name="body"> - <include-form name="EditSubscription" location="component://product/widget/catalog/SubscriptionForms.xml"/> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <label text="${uiLabelMap.PageTitleEditSubscription}"/> + </container> + </container> + <container style="screenlet-body"> + <section> + <widgets> + <include-form name="EditSubscription" location="component://product/widget/catalog/SubscriptionForms.xml"/> + </widgets> + </section> + </container> + </container> </decorator-section> </decorator-screen> </widgets> @@ -125,8 +178,34 @@ <widgets> <decorator-screen name="CommonSubscriptionDecorator"> <decorator-section name="body"> - <include-form name="EditSubscriptionAttributes" location="component://product/widget/catalog/SubscriptionForms.xml"/> - <include-form name="AddSubscriptionAttribute" location="component://product/widget/catalog/SubscriptionForms.xml"/> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <label text="${uiLabelMap.PageTitleEditSubscriptionAttributes}"/> + </container> + </container> + <container style="screenlet-body"> + <section> + <widgets> + <include-form name="EditSubscriptionAttributes" location="component://product/widget/catalog/SubscriptionForms.xml"/> + </widgets> + </section> + </container> + </container> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <label text="${uiLabelMap.PageTitleAddSubscriptionAttributes}"/> + </container> + </container> + <container style="screenlet-body"> + <section> + <widgets> + <include-form name="AddSubscriptionAttribute" location="component://product/widget/catalog/SubscriptionForms.xml"/> + </widgets> + </section> + </container> + </container> </decorator-section> </decorator-screen> </widgets> @@ -144,19 +223,34 @@ <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> - <section> - <condition> - <if-has-permission permission="CATALOG" action="_VIEW"/> - </condition> - <widgets> - <container><label style="head1">${uiLabelMap.${titleProperty}}</label></container> - <container><link target="EditSubscriptionResource" text="${uiLabelMap.ProductNewSubscriptionResource}" style="buttontext"/></container> - <include-form name="ListSubscriptionResources" location="component://product/widget/catalog/SubscriptionForms.xml"/> - </widgets> - <fail-widgets> - <label style="head3">${uiLabelMap.SubscriptionResourceViewPermissionError}</label> - </fail-widgets> - </section> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <section> + <condition> + <if-has-permission permission="CATALOG" action="_VIEW"/> + </condition> + <widgets> + <label text="${uiLabelMap.PageTitleFindSubscriptionResource}"/> + </widgets> + <fail-widgets> + <label>${uiLabelMap.SubscriptionResourceViewPermissionError}</label> + </fail-widgets> + </section> + </container> + </container> + <container style="screenlet-body"> + <section> + <condition> + <if-has-permission permission="CATALOG" action="_VIEW"/> + </condition> + <widgets> + <container><link target="EditSubscriptionResource" text="${uiLabelMap.ProductNewSubscriptionResource}" style="buttontext"/></container> + <include-form name="ListSubscriptionResources" location="component://product/widget/catalog/SubscriptionForms.xml"/> + </widgets> + </section> + </container> + </container> </decorator-section> </decorator-screen> </widgets> @@ -216,7 +310,20 @@ <widgets> <decorator-screen name="CommonSubscriptionResourceDecorator"> <decorator-section name="body"> - <include-form name="EditSubscriptionResource" location="component://product/widget/catalog/SubscriptionForms.xml"/> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <label text="${uiLabelMap.PageTitleEditSubscriptionResource}"/> + </container> + </container> + <container style="screenlet-body"> + <section> + <widgets> + <include-form name="EditSubscriptionResource" location="component://product/widget/catalog/SubscriptionForms.xml"/> + </widgets> + </section> + </container> + </container> </decorator-section> </decorator-screen> </widgets> @@ -233,8 +340,34 @@ <widgets> <decorator-screen name="CommonSubscriptionResourceDecorator"> <decorator-section name="body"> - <include-form name="ListSubscriptionResourceProducts" location="component://product/widget/catalog/SubscriptionForms.xml"/> - <include-form name="AddSubscriptionResourceProduct" location="component://product/widget/catalog/SubscriptionForms.xml"/> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <label text="${uiLabelMap.PageTitleEditSubscriptionResourceProducts}"/> + </container> + </container> + <container style="screenlet-body"> + <section> + <widgets> + <include-form name="ListSubscriptionResourceProducts" location="component://product/widget/catalog/SubscriptionForms.xml"/> + </widgets> + </section> + </container> + </container> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <label text="${uiLabelMap.PageTitleAddSubscriptionResourceProducts}"/> + </container> + </container> + <container style="screenlet-body"> + <section> + <widgets> + <include-form name="AddSubscriptionResourceProduct" location="component://product/widget/catalog/SubscriptionForms.xml"/> + </widgets> + </section> + </container> + </container> </decorator-section> </decorator-screen> </widgets> @@ -253,10 +386,34 @@ <widgets> <decorator-screen name="CommonSubscriptionDecorator"> <decorator-section name="body"> - <include-form name="listSubscriptionCommEvent" - location="component://product/widget/catalog/SubscriptionForms.xml" /> - <include-form name="createSubscriptionCommEvent" - location="component://product/widget/catalog/SubscriptionForms.xml" /> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <label text="${uiLabelMap.PageTitleEditSubscriptionCommEvent}"/> + </container> + </container> + <container style="screenlet-body"> + <section> + <widgets> + <include-form name="listSubscriptionCommEvent" location="component://product/widget/catalog/SubscriptionForms.xml" /> + </widgets> + </section> + </container> + </container> + <container style="screenlet"> + <container style="screenlet-title-bar"> + <container style="head4"> + <label text="${uiLabelMap.PageTitleAddSubscriptionCommEvent}"/> + </container> + </container> + <container style="screenlet-body"> + <section> + <widgets> + <include-form name="createSubscriptionCommEvent" location="component://product/widget/catalog/SubscriptionForms.xml"/> + </widgets> + </section> + </container> + </container> </decorator-section> </decorator-screen> </widgets> |
Free forum by Nabble | Edit this page |