diff --git a/templates/js/controllers/tasksController.js b/templates/js/controllers/tasksController.js index 1642c3b..c40af18 100644 --- a/templates/js/controllers/tasksController.js +++ b/templates/js/controllers/tasksController.js @@ -1,32 +1,30 @@ angular.module('SeHub') -.controller('tasksController', ['$scope', '$cookies', '$cookieStore', '$window', '$location', '$mdToast', '$mdDialog', 'apiService', '$rootScope', function ($scope, $cookies, $cookieStore, $window, $location, $mdToast, $mdDialog, apiService ,$rootScope) -{ - $scope.lecturerTasks = []; - $rootScope.seToken = $cookies['com.sehub.www']; - var token = $rootScope.seToken; + .controller('tasksController', ['$scope', '$cookies', '$cookieStore', '$window', '$location', '$mdToast', + '$mdDialog', 'apiService', '$rootScope', + function($scope, $cookies, $cookieStore, $window, $location, $mdToast, $mdDialog, apiService, $rootScope) { + $scope.lecturerTasks = []; + $rootScope.seToken = $cookies['com.sehub.www']; + var token = $rootScope.seToken; - $scope.createTaskClicked = function() - { - $location.path("/tasks/new"); // Reference to 'newTask' page - } + $scope.createTaskClicked = function() { + $location.path("/tasks/new"); // Reference to 'newTask' page + } - $scope.displayTasks = function() - { - apiService.getAllFutureTasks(token).success(function(data) // Get all Tasks // TODO change to closest TASK - { - $scope.lecturerTasks = data; - console.log(data); - }).error(function(err) - { - console.log(err.message); - }); - } - $scope.gotoTask = function(taskId) - { - $location.path('/tasks/fill/' + taskId); - } + $scope.displayTasks = function() { + apiService.getAllFutureTasks(token).success(function(data) // Get all Tasks // TODO change to closest TASK + { + $scope.lecturerTasks = data; + console.log(data); + }).error(function(err) { + console.log(err.message); + }); + } + $scope.gotoTask = function(taskId) { + $location.path('/tasks/fill/' + taskId); + } - $scope.displayTasks(); // Calling tasks with task id + $scope.displayTasks(); // Calling tasks with task id -}]); \ No newline at end of file + } + ]); \ No newline at end of file diff --git a/templates/views/tasks.html b/templates/views/tasks.html index a405511..cac0a73 100644 --- a/templates/views/tasks.html +++ b/templates/views/tasks.html @@ -1,56 +1,97 @@ -
- -

Tasks

-
- - - - - - - - - - - -
Task NameDateGrade
-
-
- - -

Delayed

-

Delayed...

-
-
- - - - - {{task.title}} - + +

+ Tasks +

+
+ +
-
- -
-
-
- Create Task +
+ + + + +

Class Name Tasks

+ +
+
+
+
+

Personal

- - - -
+
+
+

Project

+
+
+
- -
-
- - - {{task.title}} - -
-
- -
- -
\ No newline at end of file + +
+
+
+
+

Task Name

+
+
+
+

+ Submitters +

+
+
+
+ | +
+
+
+

Task Name

+
+
+
+

+ Submitters +

+
+
+
+ +
+ +
+
+
+ +
+ Personal Task name +
+
+
3 / 70
+
+ +
+
+ | +
+
+ +
+ Project Task name +
+
+
3 / 70
+
+ +
+
+
+ + + + + + + + + + \ No newline at end of file