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 @@ -
+
diff --git a/src/main/webapp/js/app.js b/src/main/webapp/js/app.js index f7eee4714..84a2030aa 100644 --- a/src/main/webapp/js/app.js +++ b/src/main/webapp/js/app.js @@ -1,7 +1,6 @@ -var app = angular.module('xi-km', [ 'ui.bootstrap', 'ngRoute', 'ngCookies', +var app = angular.module('spring-petclinic', [ 'ui.bootstrap', 'ngRoute', 'ngCookies', 'ngAnimate', 'ngTagsInput', 'angularFileUpload' ]); - app.controller('MenuController', MenuControllerDeclaration); app.controller('LandingController', LandingControllerDeclaration); app.controller('VeterinarianController', VeterinarianControllerDeclaration); @@ -13,9 +12,12 @@ app.config([ '$routeProvider', function($routeProvider) { }).when('/veterinarians', { templateUrl : 'components/veterinarians/veterinarians.html', controller : 'VeterinarianController' - }).when('/help', { - templateUrl : 'components/help/help.html', - controller : 'HelpController' + }).when('/about', { + templateUrl : 'components/about/about.html', + controller : 'AboutController' + }).when('/pets', { + templateUrl : 'components/pets/pets.html', + controller : 'PetController' }).otherwise({ redirectTo : '/landing' });