Clean up paths and names relating to contact form. Use freemarker template to generate email backup.

This commit is contained in:
rjy7 2010-05-25 20:49:50 +00:00
parent a16985ccaa
commit 8b0665a0d7
10 changed files with 61 additions and 64 deletions

View file

@ -0,0 +1,16 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Backup of contact mail email -->
<p>${datetime}</p>
<#if spamReason??>
<div style="color:red;">
<p>REJECTED - SPAM</p>
<p>${spamReason}</p>
</div>
</#if>
${msgText}
<hr />

View file

@ -1,6 +1,6 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Confirmation page for comment form -->
<#-- Contact form submission confirmation page -->
<h2>Thank you for your feedback</h2>
<img src="${siteIconPath}/mail.gif" alt="mailbox"/><br/>

View file

@ -1,6 +1,6 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<#-- Comment form email response -->
<#-- Contact form email response -->
<#-- Only inline styles seem to work in email. Can't get styles for margin to work, though. -->

View file

@ -1,7 +1,10 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<img src="${siteIconPath}/bomb.gif" alt="email error"/>
<#-- Contact form processing errors -->
<h2>${title}</h2>
<img src="${siteIconPath}/bomb.gif" alt="email error"/>
<p class="normal">An error occurred during the processing of your request.<br />
<#if errorMessage?has_content>

View file

@ -33,7 +33,7 @@
<input type="hidden" name="RequiredFieldsNames" value="Name,Email address,Comments"/>
<input type="hidden" name="EmailFields" value="webuseremail"/>
<input type="hidden" name="EmailFieldsNames" value="emailaddress"/>
<input type="hidden" name="DeliveryType" value="comment"/>
<input type="hidden" name="DeliveryType" value="contact"/>
<label for="webusername">Full name</label>
<p><input style="width:33%;" type="text" name="webusername" maxlength="255"/></p>