add status, turn hours into integer, create a directory view of all nonprofits

This commit is contained in:
Michael Q Larson
2015-04-08 14:36:05 -07:00
parent 61e07041a7
commit c02fafa6a9
6 changed files with 60 additions and 19 deletions

View File

@@ -12,6 +12,18 @@ exports.nonprofitsHome = function(req, res) {
});
};
exports.nonprofitsDirectory = function(req, res) {
Nonprofit.find({estimatedHours: { $gt: 0 } }, function(err, nonprofits) {
if (err) {
next(err);
}
res.render('nonprofits/directory', {
title: 'Nonprofits we help',
nonprofits: nonprofits
});
});
};
exports.areYouWithARegisteredNonprofit = function(req, res) {
res.render('nonprofits/are-you-with-a-registered-nonprofit', {
title: 'Are you with a with a registered nonprofit',
@@ -64,7 +76,7 @@ exports.linkUsToYourWebsite = function(req, res) {
exports.tellUsYourEmail = function(req, res) {
res.render('nonprofits/tell-us-your-email', {
title: 'Tell us your name',
title: 'Tell us your email',
step: 8
});
};
@@ -77,7 +89,10 @@ exports.tellUsYourName = function(req, res) {
};
exports.finishApplication = function(req, res) {
res.render('nonprofits/you-have-finished-your-application', {
title: "You have finished your application",
step: 10
});
};
exports.yourNonprofitProjectApplicationHasBeenSubmitted = function(req, res) {