Clean up paths and names relating to contact form. Use freemarker template to generate email backup.
This commit is contained in:
parent
a16985ccaa
commit
8b0665a0d7
10 changed files with 61 additions and 64 deletions
16
webapp/web/templates/freemarker/body/contactForm/backup.ftl
Normal file
16
webapp/web/templates/freemarker/body/contactForm/backup.ftl
Normal 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 />
|
|
@ -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/>
|
|
@ -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. -->
|
||||
|
|
@ -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>
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue