myportal/widget/CommonScreens.xml (215 lines of code) (raw):

<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ofbiz.apache.org/Widget-Screen" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Screen http://ofbiz.apache.org/dtds/widget-screen.xsd"> <screen name="main-decorator"> <section> <actions> <!-- base/top/specific map first, then more common map added for shared labels --> <property-map resource="MyPortalUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="ProjectMgrUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="HumanResUiLabels" map-name="uiLabelMap" global="true"/> <set field="layoutSettings.companyName" from-field="uiLabelMap.MyPortalInformation" global="true"/> <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.PartyCompanySubtitle" global="true"/> <set field="applicationMenuName" value="MyPortalAppBar" global="true"/> <set field="applicationMenuLocation" value="component://myportal/widget/MyPortalMenus.xml" global="true"/> <set field="helpAnchor" from-field="helpAnchor" default-value="_my_portal_plugin"/> <set field="parameters.parentPortalPageId" from-field="parameters.parentPortalPageId" default-value="MYPORTAL" global="true"/> <script location="component://common/src/main/groovy/org/apache/ofbiz/common/GetParentPortalPageId.groovy"/> <set field="applicationTitle" from-field="uiLabelMap.PageTitleMyPortalForNoLogin"/> <set field="my" value="My" global="true"/> </actions> <widgets> <include-screen name="ApplicationDecorator" location="component://commonext/widget/CommonScreens.xml"/> </widgets> </section> </screen> <screen name="AdminDecorator"> <section> <actions> <!-- base/top/specific map first, then more common map added for shared labels --> <property-map resource="MyPortalUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="PartyUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="WorkEffortUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="ProjectMgrUiLabels" map-name="uiLabelMap" global="true"/> <property-map resource="HumanResUiLabels" map-name="uiLabelMap" global="true"/> <set field="layoutSettings.companyName" from-field="uiLabelMap.MyPortalInformation" global="true"/> <set field="layoutSettings.companySubtitle" from-field="uiLabelMap.PartyCompanySubtitle" global="true"/> <set field="applicationMenuName" value="MyPortalAppBar" global="true"/> <set field="applicationMenuLocation" value="component://myportal/widget/MyPortalMenus.xml" global="true"/> <!-- <set field="parameters.parentPortalPageId" from-field="parameters.parentPortalPageId" default-value="MYPORTAL" global="true"/> <script location="component://common/src/main/groovy/org/apache/ofbiz/common/GetParentPortalPageId.groovy"/> <set field="applicationTitle" value="${uiLabelMap.PageTitleMyPortalForNoLogin}"/> <set field="my" value="My" global="true"/> --> </actions> <widgets> <include-screen name="ApplicationDecorator" location="component://commonext/widget/CommonScreens.xml"/> </widgets> </section> </screen> <screen name="CommonPartyDecorator"> <section> <actions> <set field="partyId" from-field="userLogin.partyId"/> <set field="parameters.partyId" from-field="userLogin.partyId"/> <entity-one entity-name="Party" value-field="party"/> <entity-one entity-name="Person" value-field="lookupPerson"/> <entity-one entity-name="PartyGroup" value-field="lookupGroup"/> </actions> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <section> <widgets> <container style="h1"><label text="${uiLabelMap.PartyTheProfileOf} ${lookupPerson.personalTitle} ${lookupPerson.firstName} ${lookupPerson.middleName} ${lookupPerson.lastName} ${lookupPerson.suffix} ${lookupGroup.groupName} [${partyId}]"/></container> <decorator-section-include name="body"/> </widgets> </section> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="CommonMyTimeDecorator"> <section> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"/> </decorator-screen> </widgets> </section> </screen> <screen name="CommonCommunicationEventDecorator"> <section> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <decorator-section-include name="body"/> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="CommonMyTaskDecorator"> <section> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <decorator-section-include name="body"/> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="CommonWorkEffortDecorator"> <section> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <decorator-section-include name="body"/> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="login"> <section> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <platform-specific> <html><html-template multi-block="true" location="component://myportal/template/Login.ftl"/></html> </platform-specific> </decorator-section> </decorator-screen> </widgets> </section> </screen> <!--New Register Person--> <screen name="newRegisterLogin"> <section> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <section> <condition> <not><if-empty field="parameters.partyId"/></not> </condition> <actions> <set field="partyId" from-field="parameters.partyId"/> </actions> <widgets> <label style="h2" text="${uiLabelMap.MyPortalRegisterComplete}"/><link target="main" style="h2" text="${uiLabelMap.CommonBeLogged}"/> <screenlet title="${uiLabelMap.PartyPersonalInformation}"> <include-form name="ViewPartyPerson" location="component://party/widget/partymgr/PartyForms.xml"/> </screenlet> </widgets> <fail-widgets> <screenlet title="${uiLabelMap.MyPortalNewRegistration}"> <section> <widgets> <platform-specific> <html><html-template multi-block="true" location="component://myportal/template/RegisterPerson.ftl"/></html> </platform-specific> </widgets> </section> </screenlet> </fail-widgets> </section> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="CommonRequestDecorator"> <section> <widgets> <decorator-screen name="CommonRequestDecorator" location="component://order/widget/ordermgr/CommonScreens.xml"> <decorator-section name="body"> <decorator-section-include name="body"/> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="CommonProjectDecorator"> <section> <widgets> <decorator-screen name="CommonRequestDecorator" location="component://order/widget/ordermgr/CommonScreens.xml"> <decorator-section name="body"> <decorator-section-include name="body"/> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="EmployeeDecorator"> <section> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <decorator-section-include name="body"/> </decorator-section> </decorator-screen> </widgets> </section> </screen> <screen name="CommonOpportunityDecorator"> <section> <actions> <property-map resource="MarketingUiLabels" map-name="uiLabelMap" global="true"/> </actions> <widgets> <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> <decorator-section name="body"> <decorator-section-include name="body"/> </decorator-section> </decorator-screen> </widgets> </section> </screen> </screens>