[ \t]+$ => "" (empty) Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg) Of course this effort to remove trailing spaces has no functional implications. Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135 In the meantime I did some refactoring also in *.java and *.groovy files : ){ => ) { if( => if ( while( => while ( }else => } else else{ => else { switch( => switch ( try{ => try { }catch => } catch catch( => catch ( }finally{ => } finally { So these changes are also in this commit, should not be a problem anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
227 lines
11 KiB
XML
227 lines
11 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="FindLeads">
|
|
<section>
|
|
<actions>
|
|
<set field="roleTypeId" value="LEAD"/>
|
|
<set field="partyTypeId" value="PERSON"/>
|
|
<set field="headerItem" value="Leads"/>
|
|
<service service-name="findParty" auto-field-map="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<widgets>
|
|
<include-menu name="LeadSubTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
<container style="no-clear">
|
|
<platform-specific>
|
|
<html><html-template location="component://marketing/webapp/sfa/party/findSfaParty.ftl"/></html>
|
|
</platform-specific>
|
|
<screenlet title="${uiLabelMap.SfaFindResults}">
|
|
<section>
|
|
<condition>
|
|
<not>
|
|
<if-empty field="partyList"/>
|
|
</not>
|
|
</condition>
|
|
<widgets>
|
|
<include-form name="ListLeads" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PartyNoPartiesFound}"/>
|
|
</container>
|
|
</fail-widgets>
|
|
</section>
|
|
</screenlet>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CreateLead">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleCreateLead"/>
|
|
<set field="headerItem" value="Leads"/>
|
|
<property-to-field field="defaultCountryGeoId" resource="general" property="country.geo.id.default" default="USA"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar boxhead">
|
|
<section>
|
|
<widgets>
|
|
<label text="${uiLabelMap.CommonCreate} ${uiLabelMap.SfaLead}"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="createLead" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="ConvertLead">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="Leads"/>
|
|
<set field="tabButtonItem" value="ConvertLead"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar boxhead">
|
|
<section>
|
|
<widgets>
|
|
<label text="${uiLabelMap.SfaConvertLead}"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="ConvertLead" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CloneLead">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="Leads"/>
|
|
<set field="tabButtonItem" value="CloneLead"/>
|
|
<script location="component://marketing/webapp/sfa/WEB-INF/action/CloneLead.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar boxhead">
|
|
<section>
|
|
<widgets>
|
|
<label text="${uiLabelMap.SfaCloneLead}"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="createLead" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="MergeLeads">
|
|
<section>
|
|
<actions>
|
|
<set field="headerItem" value="Leads"/>
|
|
<script location="component://marketing/webapp/sfa/WEB-INF/action/MergeContacts.groovy"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3"><label text="${uiLabelMap.SfaMergeLeads}"/></container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<label><br/></label>
|
|
<include-form name="MergeLeads" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
|
|
</container>
|
|
</container>
|
|
<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/lead/mergeLeads.ftl"/></html>
|
|
</platform-specific>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<label text="${uiLabelMap.SfaCanNotMergeSameLeads}" style="h3"></label>
|
|
</fail-widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CreateLeadFromVCard">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleCreateLeadFromVCard"/>
|
|
<set field="headerItem" value="Leads"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3"><label text="${uiLabelMap.PageTitleCreateLeadFromVCard}"/></container>
|
|
</container>
|
|
<container><label style="h3" text="${uiLabelMap.SfaAutoCreateLeadByImportingVCard}"/></container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<label><br/></label>
|
|
<include-form name="CreateLeadFromVCard" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens> |