Author: adrianc
Date: Sun Dec 30 16:05:02 2007 New Revision: 607625 URL: http://svn.apache.org/viewvc?rev=607625&view=rev Log: Misc improvements to assetmaint UI. Modified: ofbiz/trunk/specialpurpose/assetmaint/widget/AssetmaintScreens.xml ofbiz/trunk/specialpurpose/assetmaint/widget/CommonScreens.xml ofbiz/trunk/specialpurpose/assetmaint/widget/FixedAssetScreens.xml Modified: ofbiz/trunk/specialpurpose/assetmaint/widget/AssetmaintScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/AssetmaintScreens.xml?rev=607625&r1=607624&r2=607625&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/AssetmaintScreens.xml (original) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/AssetmaintScreens.xml Sun Dec 30 16:05:02 2007 @@ -32,8 +32,8 @@ <decorator-section name="body"> <container style="button-bar"><link target="EditFixedAssetMaint" text="${uiLabelMap.AccountingNewFixedAssetMaint}" style="buttontext"/></container> <container style="screenlet"> - <container style="screenlet-header"> - <label style="boxhead">${uiLabelMap.PageTitleFindFixedAssetMaints}</label> + <container style="screenlet-title-bar"> + <label style="head3">${uiLabelMap.PageTitleFindFixedAssetMaints}</label> </container> <container style="screenlet-body"> <include-form name="FindFixedAssetMaint" location="component://assetmaint/widget/forms/FixedAssetForms.xml" /> @@ -49,7 +49,6 @@ <screen name="EditFixedAssetMaint"> <section> <actions> - <set field="titleProperty" value="AccountingFixedAssetMaint"/> <set field="labelTitleProperty" value="AccountingFixedAssetMaint"/> <set field="tabButtonItemFixedAssetMaint" value="EditFixedAssetMaint"/> <script location="component://assetmaint/webapp/assetmaint/WEB-INF/actions/assetmaint/editMaint.bsh"/> @@ -66,6 +65,8 @@ <entity-and entity-name="WorkEffortPartyAssignView" list-name="relatedPartyAssigns"> <field-map field-name="workEffortId"/> </entity-and> + <property-map resource="AccountingUiLabels" map-name="uiLabelMap"/> + <set field="title" value="${uiLabelMap.AccountingFixedAssetMaint}: ${fixedAsset.fixedAssetName}"/> </actions> <widgets> <decorator-screen name="CommonFixedAssetMaintDecorator" location="${parameters.mainDecoratorLocation}"> @@ -78,8 +79,8 @@ <link target="printFixedAssetMaint.pdf?fixedAssetId=${fixedAssetId}&maintHistSeqId=${maintHistSeqId}" text="${uiLabelMap.CommonPrint}" style="buttontext"/> </container> <container style="screenlet"> - <container style="screenlet-header"> - <label style="boxhead">${uiLabelMap.AccountingNewFixedAssetMaint}</label> + <container style="screenlet-title-bar"> + <label style="head3">${uiLabelMap.FixedAssetMaintWorkEffortName}</label> </container> <container style="screenlet-body"> <include-form name="EditFixedAssetMaint" location="component://assetmaint/widget/forms/FixedAssetForms.xml"/> @@ -89,8 +90,8 @@ <fail-widgets> <container style="button-bar"><label/></container> <container style="screenlet"> - <container style="screenlet-header"> - <label style="boxhead">${uiLabelMap.AccountingNewFixedAssetMaint}</label> + <container style="screenlet-title-bar"> + <label style="head3">${uiLabelMap.AccountingNewFixedAssetMaint}</label> </container> <container style="screenlet-body"> <include-form name="EditFixedAssetMaint" location="component://assetmaint/widget/forms/FixedAssetForms.xml"/> Modified: ofbiz/trunk/specialpurpose/assetmaint/widget/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/CommonScreens.xml?rev=607625&r1=607624&r2=607625&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/CommonScreens.xml (original) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/CommonScreens.xml Sun Dec 30 16:05:02 2007 @@ -31,15 +31,6 @@ <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> <set field="activeApp" value="assetmaint" global="true"/> <set field="appheaderTemplate" value="component://assetmaint/webapp/assetmaint/includes/appbar.ftl" global="true"/> - - <!-- The two default (global) stylesheets are added to the list - of stylesheets to the first and second position --> - <set field="layoutSettings.styleSheets[+0]" value="/images/maincss.css" global="true"/> - <!-- The default (global) java scripts --> - <set field="layoutSettings.javaScripts[]" value="/images/calendar1.js" global="true"/> - <set field="layoutSettings.javaScripts[]" value="/images/selectall.js" global="true"/> - <set field="layoutSettings.javaScripts[]" value="/images/fieldlookup.js" global="true"/> - <set field="layoutSettings.companyName" from-field="uiLabelMap.AssetMaintCompanyName" global="true"/> <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.AssetMaintCompanySubtitle" global="true"/> <!-- layoutSettings.headerImageUrl can be used to specify an application specific logo; if not set, @@ -62,10 +53,7 @@ <decorator-section name="body"> <section> <condition> - <or> - <if-has-permission permission="ASSETMAINT" action="_VIEW"/> - <if-has-permission permission="ASSETMAINT_ADMIN"/> - </or> + <if-has-permission permission="ASSETMAINT" action="_VIEW"/> </condition> <widgets> <section> @@ -100,10 +88,7 @@ <decorator-section name="body"> <section> <condition> - <or> - <if-has-permission permission="ASSETMAINT" action="_VIEW"/> - <if-has-permission permission="ASSETMAINT_ADMIN"/> - </or> + <if-has-permission permission="ASSETMAINT" action="_VIEW"/> </condition> <widgets> <section> @@ -140,10 +125,7 @@ <decorator-section name="body"> <section> <condition> - <or> - <if-has-permission permission="ASSETMAINT" action="_VIEW"/> - <if-has-permission permission="ASSETMAINT_ADMIN"/> - </or> + <if-has-permission permission="ASSETMAINT" action="_VIEW"/> </condition> <widgets> <section> Modified: ofbiz/trunk/specialpurpose/assetmaint/widget/FixedAssetScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/widget/FixedAssetScreens.xml?rev=607625&r1=607624&r2=607625&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/assetmaint/widget/FixedAssetScreens.xml (original) +++ ofbiz/trunk/specialpurpose/assetmaint/widget/FixedAssetScreens.xml Sun Dec 30 16:05:02 2007 @@ -34,8 +34,8 @@ <link target="EditFixedAsset" text="${uiLabelMap.AccountingNewFixedAsset}" style="buttontext" /> </container> <container style="screenlet"> - <container style="screenlet-header"> - <label style="boxhead">${uiLabelMap.AccountingFixedAssets}</label> + <container style="screenlet-title-bar"> + <label style="head3">${uiLabelMap.AccountingFixedAssets}</label> </container> <container style="screenlet-body"> <include-form name="FindFixedAssets" location="component://assetmaint/widget/forms/FixedAssetForms.xml" /> @@ -52,11 +52,13 @@ <screen name="EditFixedAsset"> <section> <actions> - <set field="titleProperty" value="AccountingEditFixedAsset" /> <set field="labelTitleProperty" value="AccountingEditFixedAsset" /> <set field="tabButtonItem" value="EditFixedAsset" /> <set field="fixedAssetId" from-field="parameters.fixedAssetId" /> <entity-one entity-name="FixedAsset" value-name="fixedAsset" /> + <property-map resource="AssetMaintUiLabels" map-name="uiLabelMap"/> + <set field="fixedAssetName" from-field="fixedAsset.fixedAssetName" default-value="${uiLabelMap.AccountingNewFixedAsset}"/> + <set field="title" value="${uiLabelMap.AccountingEditFixedAsset}: ${fixedAssetName}"/> </actions> <widgets> <decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}"> @@ -68,8 +70,8 @@ <link target="EditFixedAsset" text="${uiLabelMap.AccountingNewFixedAsset}" style="buttontext" /> </container> <container style="screenlet"> - <container style="screenlet-header"> - <label style="boxhead">${uiLabelMap.AccountingEditFixedAsset}</label> + <container style="screenlet-title-bar"> + <label style="head3">${uiLabelMap.AccountingEditFixedAsset}</label> </container> <container style="screenlet-body"> <include-form name="EditFixedAsset" location="component://assetmaint/widget/forms/FixedAssetForms.xml" /> @@ -79,8 +81,8 @@ <fail-widgets> <container style="button-bar"><label/></container> <container style="screenlet"> - <container style="screenlet-header"> - <label style="boxhead">${uiLabelMap.AccountingNewFixedAsset}</label> + <container style="screenlet-title-bar"> + <label style="head3">${uiLabelMap.AccountingNewFixedAsset}</label> </container> <container style="screenlet-body"> <include-form name="EditFixedAsset" location="component://assetmaint/widget/forms/FixedAssetForms.xml" /> @@ -154,11 +156,12 @@ <section> <actions> <set field="layoutSettings.styleSheets[]" value="/images/calendarstyles.css" global="true"/> - <set field="titleProperty" value="AssetMaintMaintenanceCalendar"/> <set field="tabButtonItem" value="ListFixedAssetCalendar"/> <set field="labelTitleProperty" value="AssetMaintMaintenanceCalendar"/> <script location="component://assetmaint/webapp/assetmaint/WEB-INF/actions/workeffort/viewCalendar.bsh"/> <entity-one entity-name="FixedAsset" value-name="fixedAsset"/> + <property-map resource="AssetMaintUiLabels" map-name="uiLabelMap"/> + <set field="title" value="${uiLabelMap.AssetMaintMaintenanceCalendar}: ${fixedAsset.fixedAssetName}"/> </actions> <widgets> <decorator-screen name="CommonFixedAssetDecorator" location="${parameters.mainDecoratorLocation}"> |
Free forum by Nabble | Edit this page |