several corrections and reorganisations to improve the sfa apearance
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -16,7 +16,6 @@ KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<#assign extInfo = parameters.extInfo?default("N")>
|
||||
<#if roleTypeId=="LEAD">
|
||||
<#assign currentUrl="FindLead"/>
|
||||
@@ -31,7 +30,7 @@ under the License.
|
||||
<#assign currentUrl = "FindAccounts"/>
|
||||
<#assign title = "${uiLabelMap.MarketingFindAccounts}">
|
||||
</#if>
|
||||
<div id="findPartyParameters" class="screenlet">
|
||||
<div class="screenlet">
|
||||
<div class="screenlet-title-bar">
|
||||
<ul>
|
||||
<li class="h3">${title?if_exists}</li>
|
||||
@@ -140,10 +139,10 @@ under the License.
|
||||
</tr>
|
||||
</#if>
|
||||
<tr><td colspan="3"><hr/></td></tr>
|
||||
<tr align="center">
|
||||
<tr align="left">
|
||||
<td> </td>
|
||||
<td>
|
||||
<input type="submit" value="${uiLabelMap.PartyLookupParty}" onClick="javascript:document.lookupparty.submit();"/>
|
||||
<input type="submit" value="${uiLabelMap.CommonFind}" onClick="javascript:document.lookupparty.submit();"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -71,53 +71,16 @@ under the License.
|
||||
<section>
|
||||
<widgets>
|
||||
<container style="left">
|
||||
<include-screen name="MiniAddContact"/>
|
||||
<include-screen name="MiniAddLead"/>
|
||||
<screenlet title="${uiLabelMap.SfaQuickAddContact}">
|
||||
<include-form name="QuickAddContact" location="component://marketing/widget/sfa/forms/ContactForms.xml"/>
|
||||
</screenlet>
|
||||
<screenlet title="${uiLabelMap.SfaQuickAddLead}">
|
||||
<include-form name="QuickAddLead" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
|
||||
</screenlet>
|
||||
</container>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="MiniAddContact">
|
||||
<section>
|
||||
<widgets>
|
||||
<container style="screenlet">
|
||||
<container style="screenlet-title-bar">
|
||||
<container style="h3">
|
||||
<label text="${uiLabelMap.SfaQuickAddContact}"></label>
|
||||
</container>
|
||||
</container>
|
||||
<container style="screenlet-body">
|
||||
<section>
|
||||
<widgets>
|
||||
<include-form name="QuickAddContact" location="component://marketing/widget/sfa/forms/ContactForms.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</container>
|
||||
</container>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="MiniAddLead">
|
||||
<section>
|
||||
<widgets>
|
||||
<container style="screenlet" id="miniQuickAddLead">
|
||||
<container style="screenlet-title-bar">
|
||||
<container style="h3">
|
||||
<label text="${uiLabelMap.SfaQuickAddLead}"></label>
|
||||
</container>
|
||||
</container>
|
||||
<container style="screenlet-body">
|
||||
<section>
|
||||
<widgets>
|
||||
<include-form name="QuickAddLead" location="component://marketing/widget/sfa/forms/LeadForms.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</container>
|
||||
</container>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="CommonOpportunityDecorator">
|
||||
<section>
|
||||
<actions>
|
||||
@@ -157,14 +120,6 @@ under the License.
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<condition>
|
||||
<if-compare field-name="parameters.roleTypeId" operator="equals" value="LEAD"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="LeadTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
<section>
|
||||
<!-- do check for PARTYMGR, _VIEW permission -->
|
||||
<condition>
|
||||
@@ -172,8 +127,26 @@ under the License.
|
||||
</condition>
|
||||
<widgets>
|
||||
<section>
|
||||
<condition><not><if-empty field-name="partyId"/></not></condition>
|
||||
<condition>
|
||||
<not><if-empty field-name="party"/></not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<section>
|
||||
<condition>
|
||||
<if-compare field-name="tabButtonItem" operator="equals" value="Leads"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="LeadTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
<section>
|
||||
<condition>
|
||||
<if-compare field-name="tabButtonItem" operator="equals" value="Contacts"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-menu name="ContactTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
<container>
|
||||
<section>
|
||||
<condition>
|
||||
@@ -204,25 +177,6 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="CommonLeadDecorator">
|
||||
<section>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<include-menu name="LeadTabBar" location="component://marketing/widget/sfa/SfaMenus.xml"/>
|
||||
<decorator-section-include name="body"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<label style="h3">${uiLabelMap.ProjectMgrViewPermissionError}</label>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
<screen name="ViewProfile">
|
||||
<section>
|
||||
<actions>
|
||||
@@ -241,6 +195,33 @@ under the License.
|
||||
<script location="component://party/webapp/partymgr/WEB-INF/actions/party/setRoleVars.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field-name="leadDescription"/></not>
|
||||
</condition>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Leads"/>
|
||||
</actions>
|
||||
<widgets/>
|
||||
</section>
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field-name="contactDescription"/></not>
|
||||
</condition>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Contacts"/>
|
||||
</actions>
|
||||
<widgets/>
|
||||
</section>
|
||||
<section>
|
||||
<condition>
|
||||
<not><if-empty field-name="accountDescription"/></not>
|
||||
</condition>
|
||||
<actions>
|
||||
<set field="tabButtonItem" value="Accounts"/>
|
||||
</actions>
|
||||
<widgets/>
|
||||
</section>
|
||||
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
|
||||
@@ -35,39 +35,35 @@ under the License.
|
||||
<service service-name="findParty" auto-field-map="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<include-menu name="ContactTabBar" location="component://marketing/widget/sfa/SfaMenus.xml" />
|
||||
<section>
|
||||
<widgets>
|
||||
<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-name="partyList"/></not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-form name="ListContacts" location="component://marketing/widget/sfa/forms/ContactForms.xml"/>
|
||||
<label text="&nbsp;<br/><br/>"/>
|
||||
<container style="h3">
|
||||
<label text="${uiLabelMap.SfaMergeContacts}"/>
|
||||
</container>
|
||||
<include-form name="MergeContacts" 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>
|
||||
<!--include-menu name="ContactTabBar" 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-name="partyList"/></not>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-form name="ListContacts" location="component://marketing/widget/sfa/forms/ContactForms.xml"/>
|
||||
<label text="&nbsp;<br/><br/>"/>
|
||||
<container style="h3">
|
||||
<label text="${uiLabelMap.SfaMergeContacts}"/>
|
||||
</container>
|
||||
<include-form name="MergeContacts" 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>
|
||||
|
||||
@@ -29,7 +29,7 @@ under the License.
|
||||
<service service-name="findParty" auto-field-map="true"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
@@ -80,7 +80,7 @@ under the License.
|
||||
<property-to-field field="defaultCountryGeoId" resource="general" property="country.geo.id.default" default="USA"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container style="screenlet">
|
||||
<container style="screenlet-title-bar boxhead">
|
||||
@@ -107,7 +107,7 @@ under the License.
|
||||
<screen name="ConvertLead">
|
||||
<section>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container style="screenlet">
|
||||
<container style="screenlet-title-bar boxhead">
|
||||
@@ -137,7 +137,7 @@ under the License.
|
||||
<script location="component://marketing/webapp/sfa/WEB-INF/action/cloneLead.bsh"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container style="screenlet">
|
||||
<container style="screenlet-title-bar boxhead">
|
||||
@@ -168,7 +168,7 @@ under the License.
|
||||
<script location="component://marketing/webapp/sfa/WEB-INF/action/mergeContacts.bsh"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container style="screenlet">
|
||||
<container style="screenlet-title-bar">
|
||||
@@ -205,7 +205,7 @@ under the License.
|
||||
<set field="tabButtonItem" value="Leads"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonLeadDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-screen name="CommonPartyDecorator" location="${parameters.mainDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<container style="screenlet">
|
||||
<container style="screenlet-title-bar">
|
||||
|
||||
@@ -94,9 +94,9 @@ under the License.
|
||||
</form>
|
||||
|
||||
<form name="QuickAddContact" type="single" target="quickAddContact">
|
||||
<field name="firstName" title="${uiLabelMap.CommonFirst} ${uiLabelMap.CommonName}*" widget-style="required"><text size="20"/></field>
|
||||
<field name="lastName" title="${uiLabelMap.CommonLast} ${uiLabelMap.CommonName}*" widget-style="required"><text size="20"/></field>
|
||||
<field name="emailAddress" title="${uiLabelMap.CommonEmail}"><text size="20"/></field>
|
||||
<field name="firstName" title="${uiLabelMap.CommonFirst} ${uiLabelMap.CommonName}*" widget-style="required"><text size="17"/></field>
|
||||
<field name="lastName" title="${uiLabelMap.CommonLast} ${uiLabelMap.CommonName}*" widget-style="required"><text size="17"/></field>
|
||||
<field name="emailAddress" title="${uiLabelMap.CommonEmail}"><text size="17"/></field>
|
||||
<field name="quickAdd"><hidden value="Y"/></field>
|
||||
<field name="submitButton"><submit/></field>
|
||||
</form>
|
||||
|
||||
@@ -122,10 +122,10 @@ under the License.
|
||||
</form>
|
||||
|
||||
<form name="QuickAddLead" type="single" target="quickAddLead">
|
||||
<field name="firstName" title="${uiLabelMap.CommonFirst} ${uiLabelMap.CommonName}*" widget-style="required"><text size="20"/></field>
|
||||
<field name="lastName" title="${uiLabelMap.CommonLast} ${uiLabelMap.CommonName}*" widget-style="required"><text size="20"/></field>
|
||||
<field name="groupName" title="${uiLabelMap.CommonGroup}"><text size="20"/></field>
|
||||
<field name="emailAddress" title="${uiLabelMap.CommonEmail}"><text size="20"/></field>
|
||||
<field name="firstName" title="${uiLabelMap.CommonFirst} ${uiLabelMap.CommonName}*" widget-style="required"><text size="17"/></field>
|
||||
<field name="lastName" title="${uiLabelMap.CommonLast} ${uiLabelMap.CommonName}*" widget-style="required"><text size="17"/></field>
|
||||
<field name="groupName" title="${uiLabelMap.CommonGroup}"><text size="17"/></field>
|
||||
<field name="emailAddress" title="${uiLabelMap.CommonEmail}"><text size="17"/></field>
|
||||
<field name="quickAdd"><hidden value="Y"/></field>
|
||||
<field name="submitButton"><submit/></field>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user