apply Nathan's insights into multistep form'
This commit is contained in:
@ -55,30 +55,14 @@ exports.howCanFreeCodeCampHelpYou = function(req, res) {
|
||||
});
|
||||
};
|
||||
|
||||
exports.howCanFreeCodeCampHelpYouPost = function(req, res) {
|
||||
var queryString = '';
|
||||
if (req.body.websites) { queryString += 'websites&'}
|
||||
if (req.body.websites) { queryString += 'websites&'}
|
||||
if (req.body.websites) { queryString += 'websites&'}
|
||||
if (req.body.websites) { queryString += 'websites&'}
|
||||
if (req.body.websites) { queryString += 'websites&'}
|
||||
if (req.body.websites) { queryString += 'websites&'}
|
||||
if (req.body.websites) { queryString += 'websites&'}
|
||||
if (req.body.websites) { queryString += 'websites&'}
|
||||
res.redirect('/nonprofits/tell-us-your-name?' + encodeURIComponent(queryString));
|
||||
};
|
||||
|
||||
exports.whatDoesYourNonprofitDo = function(req, res) {
|
||||
res.render('nonprofits/what-does-your-nonprofit-do', {
|
||||
existingParams: req.params,
|
||||
title: 'What does your nonprofit do?',
|
||||
step: 6
|
||||
});
|
||||
};
|
||||
|
||||
exports.whatDoesYourNonprofitDoPost = function(req, res) {
|
||||
res.redirect('nonprofits/link-us-to-your-website?' + req.params);
|
||||
};
|
||||
|
||||
exports.linkUsToYourWebsite = function(req, res) {
|
||||
res.render('nonprofits/link-us-to-your-website', {
|
||||
title: 'Link us to your website',
|
||||
@ -86,10 +70,6 @@ exports.linkUsToYourWebsite = function(req, res) {
|
||||
});
|
||||
};
|
||||
|
||||
exports.linkUsToYourWebsitePost = function(req, res) {
|
||||
res.redirect('nonprofits/tell-us-your-email?' + req.params);
|
||||
};
|
||||
|
||||
exports.tellUsYourEmail = function(req, res) {
|
||||
res.render('nonprofits/tell-us-your-email', {
|
||||
title: 'Tell us your name',
|
||||
@ -97,10 +77,6 @@ exports.tellUsYourEmail = function(req, res) {
|
||||
});
|
||||
};
|
||||
|
||||
exports.tellUsYourEmailPost = function(req, res) {
|
||||
res.redirect('nonprofits/tell-us-your-name?' + req.params);
|
||||
};
|
||||
|
||||
exports.tellUsYourName = function(req, res) {
|
||||
res.render('nonprofits/tell-us-your-name', {
|
||||
title: 'Tell us your name',
|
||||
@ -108,9 +84,9 @@ exports.tellUsYourName = function(req, res) {
|
||||
});
|
||||
};
|
||||
|
||||
exports.tellUsYourNamePost = function(req, res) {
|
||||
};
|
||||
exports.finishApplication = function(req, res) {
|
||||
|
||||
};
|
||||
|
||||
exports.yourNonprofitProjectApplicationHasBeenSubmitted = function(req, res) {
|
||||
res.render('nonprofits/your-nonprofit-project-application-has-been-submitted', {
|
||||
|
Reference in New Issue
Block a user