summaryrefslogtreecommitdiff
path: root/src/templates/pages/contact.html.ftl
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2013-08-27 08:28:16 -0700
committerJesse Morgan <jesse@jesterpm.net>2013-08-27 08:28:16 -0700
commit1cdb43bb3e432040aed18c05e129f0131ee7d20a (patch)
treea4c5ad41d183b3874c990de0c5416d1810a1dc85 /src/templates/pages/contact.html.ftl
parent9b33aaf27cd8f73402ee9967c6b0fd76a90f8ebe (diff)
Introducing F1 Authentication and Adding Site Content.
This change introduced the f1oauth and jesterpm oauth packages for interacting with Fellowship One's developer API. I have also reworked the login authentication to verify credentials through F1 and added session management to track logged in users. The Authenticator chain works as follows: on every page load we check for a session cookie, if the cookie exists, the Request is marked as authenticated and the OAuthUser object is restored in ClientInfo. If this request is going to an account page, we require authentication. The LoginFormAuthenticator checks if the user is already authenticated (via cookie) and if not redirects the user to the login page. When the login form is submitted, LoginFormAuthenticator catches the POST request and authenticates the user through F1. I'm also adding a new account page, but it is currently a work in progress. This commit also adds Allen's content to the site.
Diffstat (limited to 'src/templates/pages/contact.html.ftl')
-rw-r--r--src/templates/pages/contact.html.ftl37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/templates/pages/contact.html.ftl b/src/templates/pages/contact.html.ftl
index e69de29..40499cc 100644
--- a/src/templates/pages/contact.html.ftl
+++ b/src/templates/pages/contact.html.ftl
@@ -0,0 +1,37 @@
+<#include "/macros/common.ftl">
+<#include "/macros/common-page.ftl">
+
+<@commonpage>
+ <@noticebox>
+ </@noticebox>
+
+ <@textcontent>
+ <h1>Contact Us</h1>
+
+ <p>
+ If you have any questions about GROW, please complete the following
+ form, and we will be in touch soon, or call us at 253-848-9111.
+ </p>
+
+ <form action="${dynamicRoot}/contactus" method="post">
+ <p><label for="firstnameField">First Name:</label> <input id="firstnameField" type="text" name="firstname" /></p>
+ <p><label for="lastnameField">Last Name:</label> <input id="lastnameField" type="text" name="lastname" /></p>
+ <p><label for="emailField">Email:</label> <input id="emailField" type="text" name="email" /></p>
+ <p><label for="phoneField">Phone:</label> <input id="phoneField" type="text" name="phone" /></p>
+ <p>
+ Foursquare Member:
+ <label><input type="radio" name="member" value="yes" id="memberYes"> Yes</label>
+ <label><input type="radio" name="member" value="no" id="memberNo"> No</label>
+ </p>
+ <p>
+ Question:<br />
+ <textarea name="question" rows="10" cols="80"></textarea>
+ </p>
+ <p><input type="submit" value="Send" /></p>
+ </form>
+
+ </@textcontent>
+
+</@commonpage>
+
+