| <?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="FindContacts"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="MarketingFindContacts"/> |
| <set field="currentUrl" value="FindContacts"/> |
| <set field="headerItem" value="Contacts"/> |
| <set field="helpAnchor" value="_sfa_contacts_findlist_screen"/> |
| <set field="setContactDescription" value="${groovy:session.setAttribute("contactDescription",headerItem)}"/> |
| <set field="removeAccountDescription" value="${groovy:session.removeAttribute("accountDescription")}"/> |
| <set field="removeLeadDescription" value="${groovy:session.removeAttribute("leadDescription")}"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="pre-body"> |
| <include-menu name="MainActionMenu" location="${parameters.mainMenuLocation}"/> |
| <decorator-section-include name="pre-body"/> |
| </decorator-section> |
| <decorator-section name="left-column"> |
| <include-screen name="leftbar" location="component://marketing/widget/sfa/CommonScreens.xml"/> |
| </decorator-section> |
| <decorator-section name="body"> |
| <section> |
| <widgets> |
| <include-menu name="ContactSubTabBar" location="${parameters.mainMenuLocation}"/> |
| <container style="no-clear"> |
| <decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml"> |
| <decorator-section name="search-options"> |
| <include-menu name="ContactFindTabBar" location="${parameters.mainMenuLocation}"/> |
| <include-form name="FindContacts" location="component://marketing/widget/sfa/forms/ContactForms.xml"/> |
| </decorator-section> |
| <decorator-section name="search-results"> |
| <section> |
| <condition> |
| <or> |
| <if-empty field="parameters.all"/> |
| <if-compare field="parameters.all" operator="equals" value="true"/> |
| </or> |
| </condition> |
| <widgets> |
| <!-- list all contacts --> |
| <label style="h1" text="${uiLabelMap.SfaAllContacts}"/> |
| <include-form name="ListContacts" location="component://marketing/widget/sfa/forms/ContactForms.xml"/> |
| </widgets> |
| <fail-widgets> |
| <!-- list my contacts --> |
| <label style="h1" text="${uiLabelMap.SfaMyContacts}"/> |
| <include-form name="ListMyContacts" location="component://marketing/widget/sfa/forms/ContactForms.xml"/> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </container> |
| </widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="NewContact"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleCreateContact"/> |
| <set field="headerItem" value="Contacts"/> |
| <property-to-field field="defaultCountryGeoId" resource="general" property="country.geo.id.default" default="USA"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonContactDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.CommonCreate} ${uiLabelMap.SfaContact}"> |
| <include-form name="NewContact" location="component://marketing/widget/sfa/forms/ContactForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="MergeContacts"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleCreateContact"/> |
| <set field="headerItem" value="Contacts"/> |
| <set field="tabButtonItem" value="MergeContacts"/> |
| <script location="component://marketing/src/main/groovy/org/apache/ofbiz/marketing/sfa/MergeContacts.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonContactDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.SfaMergeContacts}"> |
| <include-form name="MergeContacts" location="component://marketing/widget/sfa/forms/ContactForms.xml"/> |
| </screenlet> |
| <screenlet title="${uiLabelMap.SfaMergeContacts}"> |
| <section> |
| <condition> |
| <if-compare-field field="parameters.partyIdFrom" operator="not-equals" to-field="parameters.partyIdTo"/> |
| </condition> |
| <widgets> |
| <platform-specific> |
| <html><html-template location="component://marketing/template/contact/MergeContacts.ftl"/></html> |
| </platform-specific> |
| </widgets> |
| <fail-widgets> |
| <label text="${uiLabelMap.SfaCanNotMergeSameContact}" style="h3"></label> |
| </fail-widgets> |
| </section> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="NewContactFromVCard"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleCreateContactFromVCard"/> |
| <set field="headerItem" value="Contacts"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="CommonContactDecorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleCreateContactFromVCard}"> |
| <container><label style="h3" text="${uiLabelMap.SfaAutoCreateContactByImportingVCard}"/></container> |
| <include-form name="NewContactFromVCard" location="component://marketing/widget/sfa/forms/ContactForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |