You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2009/09/01 10:35:41 UTC

svn commit: r809886 - /ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl

Author: hansbak
Date: Tue Sep  1 08:35:41 2009
New Revision: 809886

URL: http://svn.apache.org/viewvc?rev=809886&view=rev
Log:
create email using the 'my' email form

Modified:
    ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl

Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl?rev=809886&r1=809885&r2=809886&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/profileblocks/Contact.ftl Tue Sep  1 08:35:41 2009
@@ -102,7 +102,13 @@
                 <#elseif "EMAIL_ADDRESS" = contactMech.contactMechTypeId>
                   <div>
                     ${contactMech.infoString?if_exists}
-                    <a href="<@ofbizUrl>EditCommunicationEvent?partyIdFrom=${userLogin.partyId}&partyIdTo=${partyId}&communicationEventTypeId=EMAIL_COMMUNICATION&contactMechIdTo=${contactMech.contactMechId}&contactMechTypeId=EMAIL_ADDRESS<#if thisUserPrimaryEmail?has_content>&contactMechIdFrom=${thisUserPrimaryEmail.contactMechId}</#...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonSendEmail}</a>
+                    <form method="post" action="<@o...@ofbizUrl>" onSubmit="javascript:submitFormDisableSubmits(this)" name="createEmail">
+                      <input name="partyIdFrom" value="${userLogin.partyId}" type="hidden"/>
+                      <input name="partyIdTo" value="${partyId}" type="hidden"/>
+                      <input name="my" value="My" type="hidden"/>
+                      <input name="statusId" value="COM_PENDING" type="hidden"/>
+                      <input name="communicationEventTypeId" value="EMAIL_COMMUNICATION" type="hidden"/>
+                    </form><a class="buttontext" href="javascript:document.createEmail.submit()">${uiLabelMap.CommonSendEmail}</a>
                   </div>
                 <#elseif "WEB_ADDRESS" = contactMech.contactMechTypeId>
                   <div>