* clean sfa's from to convert bsh to groovy call and clean unnecessary value declaration * complete unit test to controle new service ensurePartyRoleFrom and ensurePartyRoleTo git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649965 13f79535-47bb-0310-9956-ffa450edef68
149 lines
8.4 KiB
XML
149 lines
8.4 KiB
XML
<?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"
|
|
xsi:noNamespaceSchemaLocation="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="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="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="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
<container style="no-clear">
|
|
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
|
|
<decorator-section name="search-options">
|
|
<include-menu name="ContactFindTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
<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/webapp/sfa/WEB-INF/action/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/webapp/sfa/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>
|