From 664e5459c3016cf0b73de7cc7fa8d4b1a899c1a6 Mon Sep 17 00:00:00 2001 From: Lim Han Date: Wed, 21 Jan 2015 23:25:33 +0800 Subject: [PATCH] LH :: Updated controllers to include pets and about page --- .../components/about/AboutController.js | 10 +++++ src/main/webapp/components/about/about.html | 1 + .../webapp/components/menu/MenuController.js | 8 ++-- .../webapp/components/pets/PetController.js | 10 +++++ src/main/webapp/components/pets/pets.html | 44 +++++++++++++++++++ src/main/webapp/index.html | 10 +++-- src/main/webapp/js/app.js | 12 ++--- 7 files changed, 82 insertions(+), 13 deletions(-) create mode 100644 src/main/webapp/components/about/AboutController.js create mode 100644 src/main/webapp/components/about/about.html create mode 100644 src/main/webapp/components/pets/PetController.js create mode 100644 src/main/webapp/components/pets/pets.html diff --git a/src/main/webapp/components/about/AboutController.js b/src/main/webapp/components/about/AboutController.js new file mode 100644 index 000000000..6fd40a82e --- /dev/null +++ b/src/main/webapp/components/about/AboutController.js @@ -0,0 +1,10 @@ +var AboutController = function($scope, $rootScope, $sce, $timeout, $location, + $route, $interval, $cookieStore, $window) { + + $scope.$route = $route; + $scope.$location = $location; +}; + +var AboutControllerDeclaration = [ '$scope', '$rootScope', '$sce', '$timeout', + '$location', '$route', '$interval', '$cookieStore', '$window', + AboutController ]; \ No newline at end of file diff --git a/src/main/webapp/components/about/about.html b/src/main/webapp/components/about/about.html new file mode 100644 index 000000000..f90e1678e --- /dev/null +++ b/src/main/webapp/components/about/about.html @@ -0,0 +1 @@ +
This is the about page
\ No newline at end of file diff --git a/src/main/webapp/components/menu/MenuController.js b/src/main/webapp/components/menu/MenuController.js index 1e9eac5d1..9158db416 100644 --- a/src/main/webapp/components/menu/MenuController.js +++ b/src/main/webapp/components/menu/MenuController.js @@ -10,16 +10,16 @@ var MenuController = function($scope, $rootScope, $sce, $timeout, $location, 'url' : '#services', 'font' : 'fa fa-eyedropper' }, { - 'name' : 'Vets', - 'url' : '#vets', + 'name' : 'Pets', + 'url' : '#pets', 'font' : 'fa fa-paw' }, { 'name' : 'Veterinarians', 'url' : '#veterinarians', 'font' : 'fa fa-user' }, { - 'name' : 'Help', - 'url' : '#help', + 'name' : 'About', + 'url' : '#about', 'font' : 'fa fa-question' } ]; $scope.$route = $route; diff --git a/src/main/webapp/components/pets/PetController.js b/src/main/webapp/components/pets/PetController.js new file mode 100644 index 000000000..56d95feba --- /dev/null +++ b/src/main/webapp/components/pets/PetController.js @@ -0,0 +1,10 @@ +var PetController = function($scope, $rootScope, $sce, $timeout, $location, + $route, $interval, $cookieStore, $window) { + + $scope.$route = $route; + $scope.$location = $location; +}; + +var PetControllerDeclaration = [ '$scope', '$rootScope', '$sce', '$timeout', + '$location', '$route', '$interval', '$cookieStore', '$window', + PetController ]; \ No newline at end of file diff --git a/src/main/webapp/components/pets/pets.html b/src/main/webapp/components/pets/pets.html new file mode 100644 index 000000000..5c12c70f8 --- /dev/null +++ b/src/main/webapp/components/pets/pets.html @@ -0,0 +1,44 @@ +
+
+
+
+
+
+ Pets +
+ +
+
+
+ + + + + + + +
Pet
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
\ No newline at end of file diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 9a051419c..fc166a302 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -1,5 +1,5 @@ - + Vet Clinic @@ -82,12 +82,12 @@ -
+