From 8bd18c9078c55020ab46e915d1aadb977226f041 Mon Sep 17 00:00:00 2001 From: Rowan Manning Date: Mon, 11 Nov 2013 11:41:58 +0000 Subject: [PATCH] Add name field to "New URL" form --- route/new.js | 1 + view/new.html | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/route/new.js b/route/new.js index 1ea3c59..93481d1 100644 --- a/route/new.js +++ b/route/new.js @@ -22,6 +22,7 @@ function route (app) { app.express.post('/new', function (req, res) { var newTask = { + name: req.body.name, url: req.body.url, standard: req.body.standard, ignore: req.body.ignore || [] diff --git a/view/new.html b/view/new.html index 30c908c..33ef127 100644 --- a/view/new.html +++ b/view/new.html @@ -18,11 +18,20 @@ {{/error}} +
+
+
+ + +
+
+
+
- +