diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-01-07 18:02:13 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-01-07 18:02:13 -0500 |
| commit | 5dd9742da846e8db863a951f1502d0edf5a3f90b (patch) | |
| tree | 28b8040118d942b83457b267b1ed11b01a7dfd98 /server/lib/views/staff.js | |
| parent | 9c6f8f8568d20d75eb22955dbf2752ea777e59f8 (diff) | |
forms for editing plans
Diffstat (limited to 'server/lib/views/staff.js')
| -rw-r--r-- | server/lib/views/staff.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/server/lib/views/staff.js b/server/lib/views/staff.js index 49f492b..c3739e9 100644 --- a/server/lib/views/staff.js +++ b/server/lib/views/staff.js @@ -4,6 +4,8 @@ var User = require('../schemas/User'), Project = require('../schemas/Project'), Media = require('../schemas/Media'), Collaborator = require('../schemas/Collaborator'), + Plan = require('../schemas/Plan'), + Subscription = require('../schemas/Subscription'), config = require('../../../config'), middleware = require('../middleware'), util = require('../util'), @@ -540,6 +542,26 @@ var staff = module.exports = { res.render('staff/media/show_404') } }, + }, + + plans: { + index: function(req, res){ + res.locals.fields = ( + "monthly_price yearly_price basic_layout_monthly_price basic_layout_yearly_price " + + "pro_layout_monthly_price pro_layout_yearly_price " + + "basic_layout_limit pro_layout_limit stock_project_limit basic_project_limit pro_project_limit" + ).split(" ") + + res.locals.permissions = "basic_editor pro_editor solids collaborators no_logo".split(" ") + + res.render('staff/plans/index') + }, + new: function(req, res){ + res.render('staff/plans/new') + }, + edit: function(req, res){ + res.render('staff/plans/edit') + }, } } |
