Big commit

This commit is contained in:
Thomas FORGIONE
2015-07-29 11:04:38 +02:00
parent a914ed2a2d
commit c690accd4b
22 changed files with 238 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
module.exports.index = function(req, res) {
res.setHeader('Content-Type', 'text/html');
res.render('index.jade', res.locals, function(err, result) {
console.log(err);
res.send(result);
});
};

View File

@@ -0,0 +1,3 @@
module.exports = {
'/feedback': 'index',
};

View File

@@ -0,0 +1,24 @@
extends ../../../views/base.jade
mixin question(id, qu)
label(for="#{id}") #{qu}
input.form-control(name="answer#{id}", type="text", placeholder="Answer")
block extrahead
link(rel="stylesheet", href="/static/css/feedback.css")
block content
form.form-signin(method="POST", action='/feedback-target')
h2 Please give us your feedback
+question(1, "Did you have trouble to find the coins without the recommendations ?")
+question(2, "Did the recommendations helped you to find the coins ?")
+question(3, "Did the recommendations helped you to browser the scene ?")
+question(4, "Do you think recommendations can be helpful ?")
+question(5, "Which recommendation style do you prefer and why ?")
//-label(for='input1') Did you have trouble to find the coins during the first step ?
//-input#input1.form-control(name="input1", type="text", placeholder='Id')
button.btn.btn-lg.btn-primary.btn-block(type='submit') Submit