-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from emmanuelnwankwo/admin-development
Admin development
- Loading branch information
Showing
28 changed files
with
1,015 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
SENDGRID_API_KEY=SG.ehhehghdhghhhghsjkdkdfdd | ||
ZOHO_PASS=Devalert1234$ | ||
ZOHO_USER=mail@devalert.me | ||
PAYSTACK_SECRET_KEY=sk_live_jsfjjfsjgjgjjgj | ||
STRIPE_SECRET_KEY=sk_test_noK4m98A2oTBitvmd7uxvWDM00wlz2mEOI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,81 @@ | ||
class Home { | ||
// Render homepage | ||
static index(req, res, next) { | ||
res.render('index', { title: 'Remote Job Alert' }); | ||
} | ||
// Render homepage | ||
static index(req, res, next) { | ||
res.render('index', { title: 'Remote Job Alert' }); | ||
} | ||
|
||
// Render about us page | ||
static aboutUs(req, res, next) { | ||
res.render("about"); | ||
} | ||
// Render about us page | ||
static aboutUs(req, res, next) { | ||
res.render('about'); | ||
} | ||
|
||
|
||
// Dashboard | ||
// Render dashboard page | ||
static dashboard(req, res, next) { | ||
res.render(''); | ||
} | ||
|
||
//User Pages | ||
// Render user-login page | ||
static userLogin(req, res, next) { | ||
res.render("user-login"); | ||
} | ||
// Render manage agents page | ||
static manageagents(req, res, next) { | ||
res.render('manage_agents'); | ||
} | ||
|
||
// Render user-signup page | ||
static userSignup(req, res, next) { | ||
res.render("user-signup"); | ||
} | ||
// Render manage subscribers page | ||
static managesubscribers(req, res, next) { | ||
res.render('manage_subscribers'); | ||
} | ||
|
||
// Render dashboard page | ||
static dashboard(req, res, next) { | ||
res.render(""); | ||
} | ||
//User Pages | ||
// Render user-login page | ||
static userLogin(req, res, next) { | ||
res.render('user-login'); | ||
} | ||
|
||
// Render manage agents page | ||
static manageagents(req, res, next) { | ||
res.render("manage_agents"); | ||
} | ||
// Render user-signup page | ||
static userSignup(req, res, next) { | ||
res.render('user-signup'); | ||
} | ||
|
||
// Render manage subscribers page | ||
static managesubscribers(req, res, next) { | ||
res.render("manage_subscribers"); | ||
} | ||
//Render contact details page | ||
static contactUs(req, res, next) { | ||
res.render("contact"); | ||
} | ||
//Render contact details page | ||
static contactUs(req, res, next) { | ||
res.render('contact'); | ||
} | ||
|
||
//Render FAQs page | ||
static faqs(req, res, next) { | ||
res.render("faqs"); | ||
} | ||
//Render Admin page | ||
static admin(req, res, next) { | ||
res.render("admin"); | ||
} | ||
//Render FAQs page | ||
static faqs(req, res, next) { | ||
res.render('faqs'); | ||
} | ||
//Render Admin page | ||
static admin(req, res, next) { | ||
res.render('admin'); | ||
} | ||
|
||
// Render job details page | ||
// TODO? | ||
static job_details(req, res, next){ | ||
res.render('job_details', { title : 'Job Details' }); | ||
} | ||
// Render job details page | ||
// TODO? | ||
static job_details(req, res, next) { | ||
res.render('job_details', { title: 'Job Details' }); | ||
} | ||
|
||
static managejobs(req, res, next){ | ||
res.render('manage_jobs', { title : 'Manage Jobs' }); | ||
} | ||
static managejobs(req, res, next) { | ||
res.render('manage_jobs', { title: 'Manage Jobs' }); | ||
} | ||
|
||
static get_summary(req, res, next){ | ||
res.render('get-summary', { title : 'Payment Summary', reference: req.query.reference }); | ||
} | ||
static get_applicant(req, res, next){ | ||
res.render('applicant', {title: 'Applicant Details'}); | ||
} | ||
static get_summary(req, res, next) { | ||
res.render('get-summary', { | ||
title: 'Payment Summary', | ||
reference: req.query.reference | ||
}); | ||
} | ||
static get_applicant(req, res, next) { | ||
res.render('applicant', { title: 'Applicant Details' }); | ||
} | ||
static unsubscribe(req, res, next) { | ||
const email = req.query.email || 'nomail'; | ||
res.render('unsubscribe', { title: 'unsubscribe', email }); | ||
} | ||
static unsubscribe_success(req, res, next) { | ||
res.render('unsubscribe_success', { title: 'unsubscribe success' }); | ||
} | ||
} | ||
|
||
module.exports = Home; | ||
module.exports = Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.