Author: hansbak
Date: Sun May 25 02:53:21 2008 New Revision: 659947 URL: http://svn.apache.org/viewvc?rev=659947&view=rev Log: several corrections and reorganisations to improve the sfa apearance Modified: ofbiz/trunk/applications/marketing/webapp/sfa/party/findSfaParty.ftl ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml ofbiz/trunk/applications/marketing/widget/sfa/ContactScreens.xml ofbiz/trunk/applications/marketing/widget/sfa/LeadScreens.xml ofbiz/trunk/applications/marketing/widget/sfa/forms/ContactForms.xml ofbiz/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml Modified: ofbiz/trunk/applications/marketing/webapp/sfa/party/findSfaParty.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/webapp/sfa/party/findSfaParty.ftl?rev=659947&r1=659946&r2=659947&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/webapp/sfa/party/findSfaParty.ftl (original) +++ ofbiz/trunk/applications/marketing/webapp/sfa/party/findSfaParty.ftl Sun May 25 02:53:21 2008 @@ -16,7 +16,6 @@ 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 @@ <#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 @@ </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> Modified: ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml?rev=659947&r1=659946&r2=659947&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml (original) +++ ofbiz/trunk/applications/marketing/widget/sfa/CommonScreens.xml Sun May 25 02:53:21 2008 @@ -71,53 +71,16 @@ <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> @@ -158,22 +121,32 @@ <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> <if-has-permission permission="PARTYMGR" action="_VIEW"/> </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 @@ </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 @@ <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> Modified: ofbiz/trunk/applications/marketing/widget/sfa/ContactScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/ContactScreens.xml?rev=659947&r1=659946&r2=659947&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/widget/sfa/ContactScreens.xml (original) +++ ofbiz/trunk/applications/marketing/widget/sfa/ContactScreens.xml Sun May 25 02:53:21 2008 @@ -35,39 +35,35 @@ <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> Modified: ofbiz/trunk/applications/marketing/widget/sfa/LeadScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/LeadScreens.xml?rev=659947&r1=659946&r2=659947&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/widget/sfa/LeadScreens.xml (original) +++ ofbiz/trunk/applications/marketing/widget/sfa/LeadScreens.xml Sun May 25 02:53:21 2008 @@ -29,7 +29,7 @@ <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 @@ <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 @@ <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 @@ <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 @@ <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 @@ <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"> Modified: ofbiz/trunk/applications/marketing/widget/sfa/forms/ContactForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/forms/ContactForms.xml?rev=659947&r1=659946&r2=659947&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/widget/sfa/forms/ContactForms.xml (original) +++ ofbiz/trunk/applications/marketing/widget/sfa/forms/ContactForms.xml Sun May 25 02:53:21 2008 @@ -94,9 +94,9 @@ </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> Modified: ofbiz/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml?rev=659947&r1=659946&r2=659947&view=diff ============================================================================== --- ofbiz/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml (original) +++ ofbiz/trunk/applications/marketing/widget/sfa/forms/LeadForms.xml Sun May 25 02:53:21 2008 @@ -122,10 +122,10 @@ </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> |
Free forum by Nabble | Edit this page |