diff --git a/src/assets/scripts/app/index.js b/src/assets/scripts/app/index.js index 797426b..a0935ed 100644 --- a/src/assets/scripts/app/index.js +++ b/src/assets/scripts/app/index.js @@ -14,6 +14,7 @@ angular.module('NomitWisp', 'nwAdsDetails', 'nwProfile', 'nwSignup', + 'nwHistory', ngRoute ]) @@ -41,6 +42,10 @@ angular.module('NomitWisp', controller: 'SignupController', templateUrl: 'assets/scripts/signup/signup.html' }) + .when('/history', { + controller: 'HistoryController', + templateUrl: 'assets/scripts/history/history.html' + }) // .when('/users', { // controller: 'UsersController', // templateUrl: '' diff --git a/src/assets/scripts/history/history.controller.js b/src/assets/scripts/history/history.controller.js new file mode 100644 index 0000000..7919dea --- /dev/null +++ b/src/assets/scripts/history/history.controller.js @@ -0,0 +1,11 @@ +/** @ngInject */ +const HistoryController = ($scope, UserService) => { + $scope.$on('loadUserSuccess', function (event, user) { + $scope.user = user; + }); + // Service to fetch the history + + UserService.loadUser(); +} + +export default HistoryController; \ No newline at end of file diff --git a/src/assets/scripts/history/history.html b/src/assets/scripts/history/history.html new file mode 100644 index 0000000..34c00a1 --- /dev/null +++ b/src/assets/scripts/history/history.html @@ -0,0 +1,72 @@ +
+
+
+

+ History +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#PositionCompanyIndustrySubmission DateApplication Status
1Graphic Design InternSierra Delta CreativeDesign07 Jan 2019 +
+ ON +
+
2Barista InternBrunettiHospitality21 Jan 2019 +
+ OFF +
+
3Web Developer InternAgile TalentIT / Software Engineering23 Jan 2019 +
+ CLOSED +
+
4Kitchen Hand InternYarra River GrillHospitality25 Jan 2019 +
+ CANCELLED +
+
+
+
\ No newline at end of file diff --git a/src/assets/scripts/history/index.js b/src/assets/scripts/history/index.js new file mode 100644 index 0000000..58fdc44 --- /dev/null +++ b/src/assets/scripts/history/index.js @@ -0,0 +1,10 @@ +import angular from 'angular'; +import HistoryController from './history.controller'; +//import ProfileService from './profile.service'; + +angular.module('nwHistory', []) + .config(['$httpProvider', function($httpProvider) { + $httpProvider.defaults.withCredentials = true; + }]) + .controller(HistoryController.name, HistoryController) + //.factory(ProfileService.name, ProfileService); \ No newline at end of file diff --git a/src/assets/scripts/index.js b/src/assets/scripts/index.js index edb9c39..61d55b1 100755 --- a/src/assets/scripts/index.js +++ b/src/assets/scripts/index.js @@ -27,5 +27,6 @@ import './ads'; import './ads-details'; import './profile'; import './signup'; +import './history'; import './app'; \ No newline at end of file diff --git a/src/assets/scripts/nwSidebar/nwSidebar.html b/src/assets/scripts/nwSidebar/nwSidebar.html index 48d3f2f..085e7fa 100644 --- a/src/assets/scripts/nwSidebar/nwSidebar.html +++ b/src/assets/scripts/nwSidebar/nwSidebar.html @@ -274,8 +274,8 @@ -