[ \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
172 lines
9.0 KiB
XML
172 lines
9.0 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="roleTypeId" value="CONTACT"/>
|
|
<set field="partyTypeId" value="PERSON"/>
|
|
<set field="headerItem" value="Contacts"/>
|
|
</actions>
|
|
<widgets>
|
|
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<section>
|
|
<actions>
|
|
<service service-name="findParty" auto-field-map="true"/>
|
|
</actions>
|
|
<widgets>
|
|
<include-menu name="ContactSubTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
|
<platform-specific>
|
|
<html><html-template location="component://marketing/webapp/sfa/party/findSfaParty.ftl"/></html>
|
|
</platform-specific>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3"><label text="${uiLabelMap.SfaFindResults}"/></container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<condition>
|
|
<not><if-empty field="partyList"/></not>
|
|
</condition>
|
|
<widgets>
|
|
<include-form name="ListContacts" location="component://marketing/widget/sfa/forms/ContactForms.xml"/>
|
|
</widgets>
|
|
<fail-widgets>
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.PartyNoPartiesFound}"/>
|
|
</container>
|
|
</fail-widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</widgets>
|
|
</section>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
<screen name="CreateContact">
|
|
<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="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3"><label text="${uiLabelMap.CommonCreate} ${uiLabelMap.SfaContact}"/></container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="CreateContact" location="component://marketing/widget/sfa/forms/ContactForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</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="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
|
<decorator-section name="body">
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3">
|
|
<label text="${uiLabelMap.SfaMergeContacts}"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<label><br/></label>
|
|
<include-form name="MergeContacts" location="component://marketing/widget/sfa/forms/ContactForms.xml"/>
|
|
</container>
|
|
</container>
|
|
<container style="screenlet">
|
|
<container style="screenlet-title-bar">
|
|
<container style="h3"><label text="${uiLabelMap.SfaMergeContacts}"/></container>
|
|
</container>
|
|
<container style="screenlet-body">
|
|
<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>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
|
|
<screen name="CreateContactFromVCard">
|
|
<section>
|
|
<actions>
|
|
<set field="titleProperty" value="PageTitleCreateContactFromVCard"/>
|
|
<set field="headerItem" value="Contacts"/>
|
|
</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.PageTitleCreateContactFromVCard}"/></container>
|
|
</container>
|
|
<container><label style="h3" text="${uiLabelMap.SfaAutoCreateContactByImportingVCard}"/></container>
|
|
<container style="screenlet-body">
|
|
<section>
|
|
<widgets>
|
|
<include-form name="CreateContactFromVCard" location="component://marketing/widget/sfa/forms/ContactForms.xml"/>
|
|
</widgets>
|
|
</section>
|
|
</container>
|
|
</container>
|
|
</decorator-section>
|
|
</decorator-screen>
|
|
</widgets>
|
|
</section>
|
|
</screen>
|
|
</screens>
|