From 27aa0c8aa78e4227bf20d13c5b85f9807e4c6fc0 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 7 May 2013 10:13:01 +0200 Subject: adding post-page for projects --- controllers/system.js | 7 +++++++ routes.js | 4 ++++ views/projectPost.ejs | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 views/projectPost.ejs diff --git a/controllers/system.js b/controllers/system.js index a5e8f46..ed7958d 100644 --- a/controllers/system.js +++ b/controllers/system.js @@ -113,6 +113,13 @@ exports.postProjectParticipants = function(req, res) { } +exports.projectPost = function(req, res) { + +} + +exports.postProjectPost = function(req, res) { + +} exports.newProject = function(req, res) { res.render('newproject', { title: 'Nytt prosjekt', loggedin: true }); diff --git a/routes.js b/routes.js index d597ae8..50d4cba 100644 --- a/routes.js +++ b/routes.js @@ -61,6 +61,10 @@ module.exports = function(app, passport, auth) { app.get('/project/:short', auth.requiresLogin, system.project); + app.get('/project/:short/post', auth.requiresLogin, system.projectPost); + + app.post('/project/:short/post', auth.requiresLogin, system.postProjectPost); + app.get('/project/:short/participants', auth.requiresLogin, system.projectParticipants); app.post('/project/:short/participants', auth.requiresLogin, system.postProjectParticipants); diff --git a/views/projectPost.ejs b/views/projectPost.ejs new file mode 100644 index 0000000..3af9c10 --- /dev/null +++ b/views/projectPost.ejs @@ -0,0 +1,55 @@ +<% include header %> + + + + <% include navbar %> + + +
+
+ + +
+
+ +

<%= title %>

+

Her kan du invitere venner til å delta i prosjektet ditt. Skriv inn eposadressene deres, en på hver linje, i tekstboksen under.

+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ +
+
+ + + + + + + +
+
+ + +<% include footer %> + + -- cgit v1.2.3