Rewrote comment form controllers and templates in FreeMarker.
This commit is contained in:
parent
ae01a03122
commit
f88a77d307
24 changed files with 723 additions and 208 deletions
|
@ -0,0 +1,9 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Confirmation page for comment form -->
|
||||
|
||||
<h2>Thank you for your feedback</h2>
|
||||
<img src="${siteIconDir}/mail.gif" alt="mailbox"/><br/>
|
||||
|
||||
<p>Thank you for contacting our curation and development team. We will respond to your inquiry as soon as possible.</p>
|
||||
<p>Return to the <a href="${urls.home}">home page</a>.</p>
|
|
@ -0,0 +1,3 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Comment form email response -->
|
13
webapp/web/templates/freemarker/body/commentForm/error.ftl
Normal file
13
webapp/web/templates/freemarker/body/commentForm/error.ftl
Normal file
|
@ -0,0 +1,13 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<img src="${siteIconDir}/bomb.gif" alt="email error"/>
|
||||
|
||||
|
||||
<p class="normal">An error occurred during the processing of your request.<br />
|
||||
<#if errorMessage?has_content>
|
||||
<strong>${errorMessage}</strong>
|
||||
</#if>
|
||||
</p>
|
||||
|
||||
|
||||
<p>Return to the <a href="${urls.home}">home page</a>.</p>
|
59
webapp/web/templates/freemarker/body/commentForm/form.ftl
Normal file
59
webapp/web/templates/freemarker/body/commentForm/form.ftl
Normal file
|
@ -0,0 +1,59 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#-- Comment form -->
|
||||
|
||||
<div class="staticPageBackground feedbackForm">
|
||||
|
||||
<h2>${title}</h2>
|
||||
|
||||
<p>Thank you for your interest in
|
||||
<#compress>
|
||||
<#if portalType == "CALSResearch">
|
||||
the Cornell University College of Agriculture and Life Sciences Research Portal
|
||||
<#elseif portalType == "VIVO">
|
||||
VIVO
|
||||
<#else>
|
||||
the ${siteName} portal
|
||||
</#if>
|
||||
</#compress>.
|
||||
Please submit this form with questions, comments, or feedback about the content of this site.
|
||||
</p>
|
||||
|
||||
<#if siteName == "CALSResearch" || siteName == "CALSImpact">
|
||||
<p>
|
||||
${siteName} is a service that depends on regular updates and feedback.
|
||||
Please help us out by providing comments and suggestions for additional content (people, departments, courses, research services, etc.)
|
||||
that you would like to see represented. The reference librarians at Albert R. Mann Library will be in touch with you soon.
|
||||
</p>
|
||||
</#if>
|
||||
|
||||
<form name="contact_form" action="sendMail" method="post" onsubmit="return ValidateForm('contact_form');">
|
||||
<input type="hidden" name="home" value="${portalId}"/>
|
||||
<input type="hidden" name="RequiredFields" value="webusername,webuseremail,s34gfd88p9x1"/>
|
||||
<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"/>
|
||||
|
||||
<label for="webusername">Full name</label>
|
||||
<p><input style="width:33%;" type="text" name="webusername" maxlength="255"/></p>
|
||||
<label for="webuseremail">Email address</label>
|
||||
<p><input style="width:25%;" type="text" name="webuseremail" maxlength="255"/></p>
|
||||
|
||||
|
||||
<label>Your comments, questions, or suggestions</label>
|
||||
|
||||
<textarea name="s34gfd88p9x1" rows="10" cols="90"></textarea>
|
||||
|
||||
<div>
|
||||
<input type="submit" value="Send Mail" class="yellowbutton"/>
|
||||
<input type="reset" value="Clear Form" class="plainbutton"/>
|
||||
</div
|
||||
|
||||
<p style="font-weight: bold; margin-top: 1em">Thank you!</p>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<#-- RY This is temporary. -->
|
||||
<script src="${contextPath}/js/commentForm.js"></script>
|
Loading…
Add table
Add a link
Reference in a new issue