diff --git a/controllers/api.js b/controllers/api.js index b611118cba..a3205a9c28 100644 --- a/controllers/api.js +++ b/controllers/api.js @@ -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) { async.parallel({ trendingVenues: function(callback) { @@ -76,7 +73,7 @@ exports.facebook = function(req, res) { /** * GET /auth/foursquare - * Display Foursquare authentication screen + * Shows the foursquare authentication dialog */ exports.foursquareAuth = function(req, res) { res.writeHead(303, { location: foursquare.getAuthClientRedirectUrl() }); diff --git a/controllers/contact.js b/controllers/contact.js index 7fcc77ccd6..70328a80a1 100644 --- a/controllers/contact.js +++ b/controllers/contact.js @@ -7,5 +7,8 @@ exports.getContact = 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; }; \ No newline at end of file diff --git a/views/contact.jade b/views/contact.jade index 0acf2120df..74c4ed47a3 100644 --- a/views/contact.jade +++ b/views/contact.jade @@ -14,12 +14,17 @@ block content input.form-control(type='text', name='lastName', id='lastName') .form-group label(for='email') Email + span.text-danger * input.form-control(type='email', name='email', id='email') .form-group label(for='contactBody') Body + span.text-danger * textarea.form-control(type='text', name='contactBody', id='contactBody', rows='7') .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 .alert.alert-danger for message in messages