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 2010/12/24 07:50:56 UTC

svn commit: r1052457 - in /ofbiz/trunk/specialpurpose/ecommerce/templates/email: ContactListEmailTemplate.ftl ContactListSubscribeEmail.ftl ContactListUnsubscribeVerifyEmail.ftl

Author: hansbak
Date: Fri Dec 24 06:50:56 2010
New Revision: 1052457

URL: http://svn.apache.org/viewvc?rev=1052457&view=rev
Log:
some missing files on rev 105244: contact list update

Added:
    ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListEmailTemplate.ftl
    ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListSubscribeEmail.ftl
    ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListUnsubscribeVerifyEmail.ftl

Added: ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListEmailTemplate.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListEmailTemplate.ftl?rev=1052457&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListEmailTemplate.ftl (added)
+++ ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListEmailTemplate.ftl Fri Dec 24 06:50:56 2010
@@ -0,0 +1,38 @@
+<#--
+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.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <body>
+        <div>
+            ${content}
+        </div>
+        <#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" />
+        <form method="post" action="${verifyUrl}">
+            <fieldset>
+                <label>E-mail: ${emailAddress}</label>
+                <input type="hidden" name="contactListId" value="${contactListId}" />
+                <input type="hidden" name="partyId" value="${partyId}" />
+                <input type="hidden" name="preferredContactMechId" value="${preferredContactMechId?if_exists}" />
+                <input type="hidden" name="fromDate" value="${fromDate}" />
+                <input type="hidden" name="statusId" value="CLPT_UNSUBS_PENDING" />
+                <input type="hidden" name="optInVerifyCode" value="${optInVerifyCode?if_exists}" />
+                <input type="submit" name="submitButton" value="Click here to unsubscribe your newsletter subscription." />
+            </fieldset>
+        </form>
+    </body>
+</html>

Added: ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListSubscribeEmail.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListSubscribeEmail.ftl?rev=1052457&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListSubscribeEmail.ftl (added)
+++ ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListSubscribeEmail.ftl Fri Dec 24 06:50:56 2010
@@ -0,0 +1,36 @@
+<#--
+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.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml">
+  <body>
+    <p class="tabletext">Hello ${partyName.firstName?if_exists} ${partyName.lastName?if_exists} ${partyName.groupName?if_exists}!</p>
+    <p class="tabletext">Successfully subscribed from ${contactList.contactListName} contact list.</p>
+    <#assign verifyUrl = baseEcommerceSecureUrl + "updateContactListPartyNoUserLogin" />
+    <form method="post" id="contactListOptOut" action="${verifyUrl}">
+      <fieldset>
+        <input type="hidden" name="contactListId" value="${contactListParty.contactListId}" />
+        <input type="hidden" name="partyId" value="${contactListParty.partyId}" />
+        <input type="hidden" name="preferredContactMechId" value="${contactListParty.preferredContactMechId?if_exists}" />
+        <input type="hidden" name="fromDate" value="${contactListParty.fromDate}" />
+        <input type="hidden" name="statusId" value="CLPT_UNSUBS_PENDING" />
+        <input type="hidden" name="optInVerifyCode" value="${contactListPartyStatus.optInVerifyCode?if_exists}" />
+        <input type="submit" name="submitButton" value="Click here to unsubscribe your newsletter subscription." />
+      </fieldset>
+    </form>
+  </body>
+</html>

Added: ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListUnsubscribeVerifyEmail.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListUnsubscribeVerifyEmail.ftl?rev=1052457&view=auto
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListUnsubscribeVerifyEmail.ftl (added)
+++ ofbiz/trunk/specialpurpose/ecommerce/templates/email/ContactListUnsubscribeVerifyEmail.ftl Fri Dec 24 06:50:56 2010
@@ -0,0 +1,52 @@
+<#--
+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.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <title>${title!}</title>
+        <#-- this needs to be fully qualified to appear in email; the server must also be available -->
+        <link rel="stylesheet" href="${baseUrl}/images/maincss.css" type="text/css"/>
+    </head>
+    <body>
+    
+        <#-- custom logo or text can be inserted here -->
+        <h1>${title!}</h1>
+        <#if note?exists><p class="tabletext">${note}</p></#if>
+        
+        <p class="tabletext">Hello ${partyName.firstName?if_exists} ${partyName.lastName?if_exists} ${partyName.groupName?if_exists}!</p>
+        <p class="tabletext">We have received a request for unsubscription to the ${contactList.contactListName} contact list.</p>
+        <p class="tabletext">To complete your unsubscription use the verify form in your <a href="${baseEcommerceSecureUrl}viewprofile">online profile</a>, or use the following link:</p>
+        <#if (contactListPartyStatus.optInVerifyCode)?has_content><p class="tabletext">Your verify code is: ${contactListPartyStatus.optInVerifyCode}</p></#if>
+        
+        <#assign verifyUrl = baseEcommerceSecureUrl + "contactListOptOut" />
+        <form method="post" id="contactListOptOut" action="${verifyUrl}">
+          <fieldset>
+            <input type="hidden" name="communicationEventId" value="${communicationEventId}" />
+            <input type="hidden" name="contactListId" value="${contactListParty.contactListId}" />
+            <input type="hidden" name="partyId" value="${contactListParty.partyId}" />
+            <input type="hidden" name="preferredContactMechId" value="${contactListParty.preferredContactMechId?if_exists}" />
+            <input type="hidden" name="fromDate" value="${contactListParty.fromDate}" />
+            <input type="hidden" name="statusId" value="CLPT_UNSUBSCRIBED" />
+            <input type="hidden" name="optInVerifyCode" value="${contactListPartyStatus.optInVerifyCode?if_exists}" />
+            <input type="submit" name="submitButton" value="Please click here to verify your newsletter unsubscription." />
+          </fieldset>
+        </form>
+    </body>
+</html>