diff --git a/templates/js/app.js b/templates/js/app.js
index 3a9b514..4511b58 100644
--- a/templates/js/app.js
+++ b/templates/js/app.js
@@ -45,6 +45,10 @@ app.config(['$routeProvider', '$locationProvider',
.when('/tasks', {
templateUrl: 'templates/views/tasks.html',
controller: 'tasksController'
+ })
+ .when('/tasks/new', {
+ templateUrl: 'templates/views/newTask.html',
+ controller: 'newTasksController'
});
}
]);
diff --git a/templates/js/controllers/newTasksController.js b/templates/js/controllers/newTasksController.js
new file mode 100644
index 0000000..3766a2f
--- /dev/null
+++ b/templates/js/controllers/newTasksController.js
@@ -0,0 +1,23 @@
+angular.module('SeHub').controller('newTasksController', ['$scope',
+ function($scope) {
+
+
+
+ $scope.componentTypes = [{
+ "type": "textbox"
+ }, {
+ "type": "textarea"
+ }, {
+ "type": "checkbox"
+ }];
+
+
+
+ $scope.task = [];
+
+ $scope.addComponent = function(){
+ $scope.task.push($scope.newComp);
+ $scope.newComp = {};
+ }
+ }
+]);
\ No newline at end of file
diff --git a/templates/views/index.html b/templates/views/index.html
index f1fef9e..9599164 100644
--- a/templates/views/index.html
+++ b/templates/views/index.html
@@ -100,6 +100,7 @@
+