contact form improvements, partial POST form implementation
This commit is contained in:
@ -21,9 +21,6 @@ exports.apiBrowser = function(req, res) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: require foursquare auth when clicking on foursquare url
|
|
||||||
// being logged in is not enough
|
|
||||||
|
|
||||||
exports.foursquare = function(req, res) {
|
exports.foursquare = function(req, res) {
|
||||||
async.parallel({
|
async.parallel({
|
||||||
trendingVenues: function(callback) {
|
trendingVenues: function(callback) {
|
||||||
@ -76,7 +73,7 @@ exports.facebook = function(req, res) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* GET /auth/foursquare
|
* GET /auth/foursquare
|
||||||
* Display Foursquare authentication screen
|
* Shows the foursquare authentication dialog
|
||||||
*/
|
*/
|
||||||
exports.foursquareAuth = function(req, res) {
|
exports.foursquareAuth = function(req, res) {
|
||||||
res.writeHead(303, { location: foursquare.getAuthClientRedirectUrl() });
|
res.writeHead(303, { location: foursquare.getAuthClientRedirectUrl() });
|
||||||
|
@ -7,5 +7,8 @@ exports.getContact = function(req, res) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.postContact = function(req, res) {
|
exports.postContact = function(req, res) {
|
||||||
|
var firstName = req.body.firstName;
|
||||||
|
var lastName = req.body.lastName;
|
||||||
|
var email = req.body.email;
|
||||||
|
var body = req.body.contactBody;
|
||||||
};
|
};
|
@ -14,12 +14,17 @@ block content
|
|||||||
input.form-control(type='text', name='lastName', id='lastName')
|
input.form-control(type='text', name='lastName', id='lastName')
|
||||||
.form-group
|
.form-group
|
||||||
label(for='email') Email
|
label(for='email') Email
|
||||||
|
span.text-danger *
|
||||||
input.form-control(type='email', name='email', id='email')
|
input.form-control(type='email', name='email', id='email')
|
||||||
.form-group
|
.form-group
|
||||||
label(for='contactBody') Body
|
label(for='contactBody') Body
|
||||||
|
span.text-danger *
|
||||||
textarea.form-control(type='text', name='contactBody', id='contactBody', rows='7')
|
textarea.form-control(type='text', name='contactBody', id='contactBody', rows='7')
|
||||||
.form-group
|
.form-group
|
||||||
button.btn.btn.btn-primary(type='submit') Send
|
button.btn.btn-primary(type='submit')
|
||||||
|
i.fa.fa-location-arrow
|
||||||
|
| Send
|
||||||
|
button.btn.btn-link(disabled='') Powered by SendGrid
|
||||||
if messages.length
|
if messages.length
|
||||||
.alert.alert-danger
|
.alert.alert-danger
|
||||||
for message in messages
|
for message in messages
|
||||||
|
Reference in New Issue
Block a user