Commit a807035995931be6bd39a9785b62a0fdaf8f24cf

Authored by Rishav
1 parent cf2b349837
Exists in master

FBO department functionality, and update airport loader on every csv when uploaded

1 1
2 <!DOCTYPE html> 2 <!DOCTYPE html>
3 <html ng-app="acuefuel"> 3 <html ng-app="acuefuel">
4 4
5 <head> 5 <head>
6 6
7 <meta charset="utf-8"> 7 <meta charset="utf-8">
8 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 8 <meta name="viewport" content="width=device-width, initial-scale=1.0">
9 9
10 <!-- Page title set in pageTitle directive --> 10 <!-- Page title set in pageTitle directive -->
11 <title page-title></title> 11 <title page-title></title>
12 12
13 <!-- Google Open Sans --> 13 <!-- Google Open Sans -->
14 <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'> 14 <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>
15 15
16 <!-- build:css(.) styles/vendor.css --> 16 <!-- build:css(.) styles/vendor.css -->
17 <!-- bower:css --> 17 <!-- bower:css -->
18 <!-- Font awesome --> 18 <!-- Font awesome -->
19 <link href="bower_components/fontawesome/css/font-awesome.min.css" rel="stylesheet"> 19 <link href="bower_components/fontawesome/css/font-awesome.min.css" rel="stylesheet">
20 20
21 <!-- Bootstrap --> 21 <!-- Bootstrap -->
22 <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> 22 <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
23 <link href="styles/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"> 23 <link href="styles/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css" rel="stylesheet">
24 <link href="bower_components/jqGrid/css/ui.jqgrid.css" rel="stylesheet"> 24 <link href="bower_components/jqGrid/css/ui.jqgrid.css" rel="stylesheet">
25 <link rel="stylesheet" href="bower_components/angular-loading-bar/build/loading-bar.min.css" type="text/css"> 25 <link rel="stylesheet" href="bower_components/angular-loading-bar/build/loading-bar.min.css" type="text/css">
26 26
27 <!-- Toastr --> 27 <!-- Toastr -->
28 <link href="bower_components/toastr/toastr.min.css" rel="stylesheet"> 28 <link href="bower_components/toastr/toastr.min.css" rel="stylesheet">
29 29
30 <!-- Main Acuefuel CSS files --> 30 <!-- Main Acuefuel CSS files -->
31 <!-- endbower --> 31 <!-- endbower -->
32 <!-- endbuild --> 32 <!-- endbuild -->
33 33
34 <!-- build:css({.tmp,app}) styles/style.css --> 34 <!-- build:css({.tmp,app}) styles/style.css -->
35 <link href="styles/animate.css" rel="stylesheet"> 35 <link href="styles/animate.css" rel="stylesheet">
36 <link href="styles/style.css" rel="stylesheet"> 36 <link href="styles/style.css" rel="stylesheet">
37 <link rel="stylesheet" type="text/css" href="plugins/iCheck/custom.css"> 37 <link rel="stylesheet" type="text/css" href="plugins/iCheck/custom.css">
38 <link rel="stylesheet" type="text/css" href="plugins/dataTables/datatables.min.css"> 38 <link rel="stylesheet" type="text/css" href="plugins/dataTables/datatables.min.css">
39 <!-- endbuild --> 39 <!-- endbuild -->
40 40
41 41
42 42
43 </head> 43 </head>
44 44
45 <!-- ControllerAs syntax --> 45 <!-- ControllerAs syntax -->
46 <!-- Main controller with serveral data used in Acuefuel theme on diferent view --> 46 <!-- Main controller with serveral data used in Acuefuel theme on diferent view -->
47 <body> 47 <body>
48 48
49 <!-- Main view --> 49 <!-- Main view -->
50 <div ui-view></div> 50 <div ui-view></div>
51 51
52 52
53 <!-- build:js(.) scripts/vendor.js --> 53 <!-- build:js(.) scripts/vendor.js -->
54 54
55 <!-- jQuery and Bootstrap --> 55 <!-- jQuery and Bootstrap -->
56 <script src="bower_components/jquery/dist/jquery.min.js"></script> 56 <script src="bower_components/jquery/dist/jquery.min.js"></script>
57 <script src="bower_components/jquery-ui/jquery-ui.min.js"></script> 57 <script src="bower_components/jquery-ui/jquery-ui.min.js"></script>
58 <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script> 58 <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
59 59
60 <!-- MetsiMenu --> 60 <!-- MetsiMenu -->
61 <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script> 61 <script src="bower_components/metisMenu/dist/metisMenu.min.js"></script>
62 62
63 <!-- SlimScroll --> 63 <!-- SlimScroll -->
64 <script src="bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script> 64 <script src="bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
65 65
66 <!-- inspinia --> 66 <!-- inspinia -->
67 <script src="scripts/inspinia.js"></script> 67 <script src="scripts/inspinia.js"></script>
68 68
69 <!-- Peace JS --> 69 <!-- Peace JS -->
70 <script src="bower_components/pace/pace.min.js"></script> 70 <script src="bower_components/pace/pace.min.js"></script>
71 71
72 <!-- Angular scripts--> 72 <!-- Angular scripts-->
73 <script src="bower_components/angular/angular.min.js"></script> 73 <script src="bower_components/angular/angular.min.js"></script>
74 <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script> 74 <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script>
75 <script src="bower_components/angular-cookies/angular-cookies.min.js"></script> 75 <script src="bower_components/angular-cookies/angular-cookies.min.js"></script>
76 <script src="bower_components/angular-resource/angular-resource.min.js"></script> 76 <script src="bower_components/angular-resource/angular-resource.min.js"></script>
77 <script src="bower_components/angular-animate/angular-animate.min.js"></script> 77 <script src="bower_components/angular-animate/angular-animate.min.js"></script>
78 <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> 78 <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
79 <script src="bower_components/jqGrid/js/i18n/grid.locale-en.js"></script> 79 <script src="bower_components/jqGrid/js/i18n/grid.locale-en.js"></script>
80 <script src="bower_components/jqGrid/js/jquery.jqGrid.min.js"></script> 80 <script src="bower_components/jqGrid/js/jquery.jqGrid.min.js"></script>
81 <script src="bower_components/ng-file-upload/ng-file-upload-shim.min.js"></script> 81 <script src="bower_components/ng-file-upload/ng-file-upload-shim.min.js"></script>
82 <script src="bower_components/ng-file-upload/ng-file-upload.min.js"></script> 82 <script src="bower_components/ng-file-upload/ng-file-upload.min.js"></script>
83 <script src="bower_components/angular-loading-bar/build/loading-bar.min.js"></script> 83 <script src="bower_components/angular-loading-bar/build/loading-bar.min.js"></script>
84 84
85 85
86 <!-- Toastr scripts--> 86 <!-- Toastr scripts-->
87 <script src="bower_components/toastr/toastr.min.js"></script> 87 <script src="bower_components/toastr/toastr.min.js"></script>
88 88
89 <!-- Angular Dependiences --> 89 <!-- Angular Dependiences -->
90 <!-- --> 90 <!-- -->
91 <!-- --> 91 <!-- -->
92 <!-- --> 92 <!-- -->
93 93
94 <!-- endbuild --> 94 <!-- endbuild -->
95 95
96 <!-- build:js({.tmp,app}) scripts/scripts.js --> 96 <!-- build:js({.tmp,app}) scripts/scripts.js -->
97 <!-- Custom and plugin javascript --> 97 <!-- Custom and plugin javascript -->
98 98
99 <script src="plugins/iCheck/icheck.min.js"></script> 99 <script src="plugins/iCheck/icheck.min.js"></script>
100 <script src="plugins/dataTables/datatables.min.js"></script> 100 <script src="plugins/dataTables/datatables.min.js"></script>
101 101
102 <!-- Anglar App Script --> 102 <!-- Anglar App Script -->
103 <script src="scripts/app.js"></script> 103 <script src="scripts/app.js"></script>
104 <script src="scripts/constant.js"></script> 104 <script src="scripts/constant.js"></script>
105 <script src="scripts/config.js"></script> 105 <script src="scripts/config.js"></script>
106 <script src="scripts/directives.js"></script> 106 <script src="scripts/directives.js"></script>
107 <script src="scripts/controllers.js"></script> 107 <script src="scripts/controllers.js"></script>
108 <script src="views/fbo-admin/dashboard.controller.js"></script> 108 <script src="views/fbo-admin/dashboard.controller.js"></script>
109 <script src="views/fbo-admin/dashboard.service.js"></script> 109 <script src="views/fbo-admin/dashboard.service.js"></script>
110 <script src="views/fbo-flight/flightDept.controller.js"></script> 110 <script src="views/fbo-flight/flightDept.controller.js"></script>
111 <script src="views/fbo-flight/flightDeptService.js"></script> 111 <script src="views/fbo-flight/flightDeptService.js"></script>
112 <script src="views/update-airports/updateAirportController.js"></script> 112 <script src="views/update-airports/updateAirportController.js"></script>
113 <script src="views/update-airports/updateAirportService.js"></script> 113 <script src="views/update-airports/updateAirportService.js"></script>
114 <script src="views/login/login.service.js"></script> 114 <script src="views/login/login.service.js"></script>
115 <script src="views/login/login.controller.js"></script> 115 <script src="views/login/login.controller.js"></script>
116 <script src="views/updateAllFBO/updateAllFBO.controller.js"></script> 116 <script src="views/updateAllFBO/updateAllFBO.controller.js"></script>
117 <script src="views/updateAllFBO/updateAllFBO.service.js"></script> 117 <script src="views/updateAllFBO/updateAllFBO.service.js"></script>
118 <script src="views/fbo-Clients/fboClient.controller.js"></script> 118 <script src="views/fbo-Clients/fboClient.controller.js"></script>
119 <script src="views/fbo-Clients/fboClient.service.js"></script> 119 <script src="views/fbo-Clients/fboClient.service.js"></script>
120 <script src="views/updateFBODept/updateFBODept.controller.js"></script>
121 <script src="views/updateFBODept/updateFBODept.service.js"></script>
120 <!-- endbuild --> 122 <!-- endbuild -->
121 123
122 </body> 124 </body>
123 </html> 125 </html>
124 126
app/scripts/config.js
1 /** 1 /**
2 * Acuefuel - Responsive Admin Theme 2 * Acuefuel - Responsive Admin Theme
3 * 3 *
4 * Acuefuel theme use AngularUI Router to manage routing and views 4 * Acuefuel theme use AngularUI Router to manage routing and views
5 * Each view are defined as state. 5 * Each view are defined as state.
6 * Initial there are written stat for all view in theme. 6 * Initial there are written stat for all view in theme.
7 * 7 *
8 */ 8 */
9 function config($stateProvider, $urlRouterProvider) { 9 function config($stateProvider, $urlRouterProvider) {
10 $urlRouterProvider.otherwise("/login"); 10 $urlRouterProvider.otherwise("/login");
11 11
12 $stateProvider 12 $stateProvider
13 13
14 .state('login', { 14 .state('login', {
15 //abstract: true, 15 //abstract: true,
16 url: "/login", 16 url: "/login",
17 templateUrl: "views/login/login.html", 17 templateUrl: "views/login/login.html",
18 controller: 'LoginController' 18 controller: 'LoginController'
19 }) 19 })
20 20
21 .state('index', { 21 .state('index', {
22 abstract: true, 22 abstract: true,
23 url: "/index", 23 url: "/index",
24 templateUrl: "views/common/content.html", 24 templateUrl: "views/common/content.html",
25 }) 25 })
26 .state('index.dashboard', { 26 .state('index.dashboard', {
27 url: "/dashboard", 27 url: "/dashboard",
28 templateUrl: "views/fbo-admin/dashboard.html", 28 templateUrl: "views/fbo-admin/dashboard.html",
29 controller: 'DashboardController' 29 controller: 'DashboardController'
30 }) 30 })
31 .state('index.flight', { 31 .state('index.flight', {
32 url: "/flight", 32 url: "/flight",
33 templateUrl: "views/fbo-flight/flight.html", 33 templateUrl: "views/fbo-flight/flight.html",
34 controller: 'FlightDeptController' 34 controller: 'FlightDeptController'
35 }) 35 })
36 .state('index.updateAirports', { 36 .state('index.updateAirports', {
37 url: "/updateAirports", 37 url: "/updateAirports",
38 templateUrl: "views/update-airports/update-airports.html", 38 templateUrl: "views/update-airports/update-airports.html",
39 controller: 'updateAirportController' 39 controller: 'updateAirportController'
40 }) 40 })
41 .state('index.minor', { 41 .state('index.minor', {
42 url: "/minor", 42 url: "/minor",
43 templateUrl: "views/minor.html", 43 templateUrl: "views/minor.html",
44 data: { pageTitle: 'Example view' } 44 data: { pageTitle: 'Example view' }
45 }) 45 })
46 .state('index.updateFBO', { 46 .state('index.updateFBO', {
47 url: "/updateFBO/:id", 47 url: "/updateFBO/:id",
48 templateUrl: "views/updateAllFBO/updateAllFBO.html", 48 templateUrl: "views/updateAllFBO/updateAllFBO.html",
49 controller: 'updateAllFBOController' 49 controller: 'updateAllFBOController'
50 }) 50 })
51 .state('index.updateFBODept', {
52 url: "/updateFBODept/:id",
53 templateUrl: "views/updateFBODept/updateFBODept.html",
54 controller: 'updateFBODeptController'
55 })
51 .state('index.fboClients', { 56 .state('index.fboClients', {
52 url: "/fboClients", 57 url: "/fboClients",
53 templateUrl: "views/fbo-Clients/fboClients.html", 58 templateUrl: "views/fbo-Clients/fboClients.html",
54 controller: 'fboClientsController' 59 controller: 'fboClientsController'
55 }) 60 })
56 } 61 }
57 angular 62 angular
58 .module('acuefuel') 63 .module('acuefuel')
59 .config(config) 64 .config(config)
60 .run(function($rootScope, $state) { 65 .run(function($rootScope, $state) {
61 $rootScope.$state = $state; 66 $rootScope.$state = $state;
62 }); 67 });
app/scripts/controllers.js
1 /** 1 /**
2 * acuefuel - Responsive Admin Theme 2 * acuefuel - Responsive Admin Theme
3 * 3 *
4 */ 4 */
5 5
6 /** 6 /**
7 * MainCtrl - controller 7 * MainCtrl - controller
8 */ 8 */
9 function MainCtrl($scope, $location) { 9 function MainCtrl($scope, $location, LoginService) {
10 10
11 $scope.userName = 'Dylan Goodwin'; 11 $scope.userName = 'Dylan Goodwin';
12 $scope.helloText = 'Welcome in SeedProject'; 12 $scope.helloText = 'Welcome in SeedProject';
13 $scope.descriptionText = 'It is an application skeleton for a typical AngularJS web app. You can use it to quickly bootstrap your angular webapp projects and dev environment for these projects.'; 13 $scope.descriptionText = 'It is an application skeleton for a typical AngularJS web app. You can use it to quickly bootstrap your angular webapp projects and dev environment for these projects.';
14 14
15 $scope.logout = function(){
16 console.log("Called")
17 LoginService.logout();
18 }
15 }; 19 };
16 20
17 21
18 angular 22 angular
19 .module('acuefuel') 23 .module('acuefuel')
20 .controller('MainCtrl', MainCtrl) 24 .controller('MainCtrl', MainCtrl)
app/views/common/topnavbar.html
1 <div class="row border-bottom"> 1 <div class="row border-bottom">
2 <!-- <nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0"> 2 <!-- <nav class="navbar navbar-static-top white-bg" role="navigation" style="margin-bottom: 0">
3 <div class="navbar-header"> 3 <div class="navbar-header">
4 <span minimaliza-sidebar></span> 4 <span minimaliza-sidebar></span>
5 <h1 style="font-weight: 500;margin-left: 10px;margin-top: 12px;float: left;">FBO Admin Conductor</h1> 5 <h1 style="font-weight: 500;margin-left: 10px;margin-top: 12px;float: left;">FBO Admin Conductor</h1>
6 <form role="search" class="navbar-form-custom" method="post" action=""> 6 <form role="search" class="navbar-form-custom" method="post" action="">
7 <div class="form-group"> 7 <div class="form-group">
8 <input type="text" placeholder="Search for something..." class="form-control" name="top-search" id="top-search"> 8 <input type="text" placeholder="Search for something..." class="form-control" name="top-search" id="top-search">
9 </div> 9 </div>
10 </form> 10 </form>
11 </div> 11 </div>
12 <ul class="nav navbar-top-links navbar-right"> 12 <ul class="nav navbar-top-links navbar-right">
13 <li> 13 <li>
14 <a href=""> 14 <a href="">
15 <i class="fa fa-sign-out"></i> Log out 15 <i class="fa fa-sign-out"></i> Log out
16 </a> 16 </a>
17 </li> 17 </li>
18 </ul> 18 </ul>
19 </nav> --> 19 </nav> -->
20 <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0"> 20 <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0" ng-controller="MainCtrl">
21 <div class="navbar-header"> 21 <div class="navbar-header">
22 <span minimaliza-sidebar></span> 22 <span minimaliza-sidebar></span>
23 <h1 style="font-weight: 500;margin-left: 10px;margin-top: 12px;float: left;">FBO Admin Conductor</h1> 23 <h1 style="font-weight: 500;margin-left: 10px;margin-top: 12px;float: left;">FBO Admin Conductor</h1>
24 </div> 24 </div>
25 <ul class="nav navbar-top-links navbar-right"> 25 <ul class="nav navbar-top-links navbar-right">
26 <li> 26 <li>
27 <span class="m-r-sm text-muted welcome-message">Welcome to Acufuel Elite Admin</span> 27 <span class="m-r-sm text-muted welcome-message">Welcome to Acufuel Elite Admin</span>
28 </li> 28 </li>
29 <li class="dropdown"> 29 <li class="dropdown">
30 <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#"> 30 <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
31 <i class="fa fa-cog"></i> <span class="label label-warning"></span> 31 <i class="fa fa-cog"></i> <span class="label label-warning"></span>
32 </a> 32 </a>
33 <!-- <ul class="dropdown-menu dropdown-messages"> 33 <!-- <ul class="dropdown-menu dropdown-messages">
34 <li> 34 <li>
35 <div class="dropdown-messages-box"> 35 <div class="dropdown-messages-box">
36 <a href="profile.html" class="pull-left"> 36 <a href="profile.html" class="pull-left">
37 <img alt="image" class="img-circle" src="img/a7.jpg"> 37 <img alt="image" class="img-circle" src="img/a7.jpg">
38 </a> 38 </a>
39 <div class="media-body"> 39 <div class="media-body">
40 <small class="pull-right">46h ago</small> 40 <small class="pull-right">46h ago</small>
41 <strong>Mike Loreipsum</strong> started following <strong>Monica Smith</strong>. <br> 41 <strong>Mike Loreipsum</strong> started following <strong>Monica Smith</strong>. <br>
42 <small class="text-muted">3 days ago at 7:58 pm - 10.06.2014</small> 42 <small class="text-muted">3 days ago at 7:58 pm - 10.06.2014</small>
43 </div> 43 </div>
44 </div> 44 </div>
45 </li> 45 </li>
46 <li class="divider"></li> 46 <li class="divider"></li>
47 <li> 47 <li>
48 <div class="dropdown-messages-box"> 48 <div class="dropdown-messages-box">
49 <a href="profile.html" class="pull-left"> 49 <a href="profile.html" class="pull-left">
50 <img alt="image" class="img-circle" src="img/a4.jpg"> 50 <img alt="image" class="img-circle" src="img/a4.jpg">
51 </a> 51 </a>
52 <div class="media-body "> 52 <div class="media-body ">
53 <small class="pull-right text-navy">5h ago</small> 53 <small class="pull-right text-navy">5h ago</small>
54 <strong>Chris Johnatan Overtunk</strong> started following <strong>Monica Smith</strong>. <br> 54 <strong>Chris Johnatan Overtunk</strong> started following <strong>Monica Smith</strong>. <br>
55 <small class="text-muted">Yesterday 1:21 pm - 11.06.2014</small> 55 <small class="text-muted">Yesterday 1:21 pm - 11.06.2014</small>
56 </div> 56 </div>
57 </div> 57 </div>
58 </li> 58 </li>
59 <li class="divider"></li> 59 <li class="divider"></li>
60 <li> 60 <li>
61 <div class="dropdown-messages-box"> 61 <div class="dropdown-messages-box">
62 <a href="profile.html" class="pull-left"> 62 <a href="profile.html" class="pull-left">
63 <img alt="image" class="img-circle" src="img/profile.jpg"> 63 <img alt="image" class="img-circle" src="img/profile.jpg">
64 </a> 64 </a>
65 <div class="media-body "> 65 <div class="media-body ">
66 <small class="pull-right">23h ago</small> 66 <small class="pull-right">23h ago</small>
67 <strong>Monica Smith</strong> love <strong>Kim Smith</strong>. <br> 67 <strong>Monica Smith</strong> love <strong>Kim Smith</strong>. <br>
68 <small class="text-muted">2 days ago at 2:30 am - 11.06.2014</small> 68 <small class="text-muted">2 days ago at 2:30 am - 11.06.2014</small>
69 </div> 69 </div>
70 </div> 70 </div>
71 </li> 71 </li>
72 <li class="divider"></li> 72 <li class="divider"></li>
73 <li> 73 <li>
74 <div class="text-center link-block"> 74 <div class="text-center link-block">
75 <a href="mailbox.html"> 75 <a href="mailbox.html">
76 <i class="fa fa-envelope"></i> <strong>Read All Messages</strong> 76 <i class="fa fa-envelope"></i> <strong>Read All Messages</strong>
77 </a> 77 </a>
78 </div> 78 </div>
79 </li> 79 </li>
80 </ul> --> 80 </ul> -->
81 </li> 81 </li>
82 <li class="dropdown"> 82 <li class="dropdown">
83 <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#"> 83 <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
84 <i class="fa fa-bell"></i> <span class="label label-primary">8</span> 84 <i class="fa fa-bell"></i> <span class="label label-primary">8</span>
85 </a> 85 </a>
86 <ul class="dropdown-menu dropdown-alerts"> 86 <ul class="dropdown-menu dropdown-alerts">
87 <li> 87 <li>
88 <a href="mailbox.html"> 88 <a href="mailbox.html">
89 <div> 89 <div>
90 <i class="fa fa-envelope fa-fw"></i> You have 16 messages 90 <i class="fa fa-envelope fa-fw"></i> You have 16 messages
91 <span class="pull-right text-muted small">4 minutes ago</span> 91 <span class="pull-right text-muted small">4 minutes ago</span>
92 </div> 92 </div>
93 </a> 93 </a>
94 </li> 94 </li>
95 <li class="divider"></li> 95 <li class="divider"></li>
96 <li> 96 <li>
97 <a href="profile.html"> 97 <a href="profile.html">
98 <div> 98 <div>
99 <i class="fa fa-twitter fa-fw"></i> 3 New Followers 99 <i class="fa fa-twitter fa-fw"></i> 3 New Followers
100 <span class="pull-right text-muted small">12 minutes ago</span> 100 <span class="pull-right text-muted small">12 minutes ago</span>
101 </div> 101 </div>
102 </a> 102 </a>
103 </li> 103 </li>
104 <li class="divider"></li> 104 <li class="divider"></li>
105 <li> 105 <li>
106 <a href="grid_options.html"> 106 <a href="grid_options.html">
107 <div> 107 <div>
108 <i class="fa fa-upload fa-fw"></i> Server Rebooted 108 <i class="fa fa-upload fa-fw"></i> Server Rebooted
109 <span class="pull-right text-muted small">4 minutes ago</span> 109 <span class="pull-right text-muted small">4 minutes ago</span>
110 </div> 110 </div>
111 </a> 111 </a>
112 </li> 112 </li>
113 <li class="divider"></li> 113 <li class="divider"></li>
114 <li> 114 <li>
115 <div class="text-center link-block"> 115 <div class="text-center link-block">
116 <a href="notifications.html"> 116 <a href="notifications.html">
117 <strong>See All Alerts</strong> 117 <strong>See All Alerts</strong>
118 <i class="fa fa-angle-right"></i> 118 <i class="fa fa-angle-right"></i>
119 </a> 119 </a>
120 </div> 120 </div>
121 </li> 121 </li>
122 </ul> 122 </ul>
123 </li> 123 </li>
124 124
125 125
126 <li> 126 <li>
127 <a href="login.html"> 127 <a ng-click="logout()">
128 <i class="fa fa-sign-out"></i> Log out 128 <i class="fa fa-sign-out"></i> Log out
129 </a> 129 </a>
130 </li> 130 </li>
131 </ul> 131 </ul>
132 </nav> 132 </nav>
133 </div> 133 </div>
app/views/fbo-Clients/fboClients.html
1 <div class="row wrapper border-bottom white-bg page-heading"> 1 <div class="row wrapper border-bottom white-bg page-heading">
2 <div class="col-lg-10"> 2 <div class="col-lg-10">
3 <h2>FBO Clients</h2> 3 <h2>FBO Clients</h2>
4 <!-- <ol class="breadcrumb"> 4 <!-- <ol class="breadcrumb">
5 <li> 5 <li>
6 <a href="index.dashboard">Home</a> 6 <a href="index.dashboard">Home</a>
7 </li> 7 </li>
8 <li class="active"> 8 <li class="active">
9 <strong>Clients</strong> 9 <strong>Clients</strong>
10 </li> 10 </li>
11 </ol> --> 11 </ol> -->
12 </div> 12 </div>
13 <div class="col-lg-2"> 13 <div class="col-lg-2">
14 </div> 14 </div>
15 </div> 15 </div>
16 <div class="wrapper wrapper-content animated fadeInRight"> 16 <div class="wrapper wrapper-content animated fadeInRight">
17 <div class="row"> 17 <div class="row">
18 <div class="col-sm-8"> 18 <div class="col-sm-8">
19 <div class="ibox"> 19 <div class="ibox">
20 <div class="ibox-content"> 20 <div class="ibox-content">
21 <span class="text-muted small pull-right"></span> 21 <span class="text-muted small pull-right"></span>
22 <h2>Clients</h2> 22 <h2>Clients</h2>
23 <!-- <p> 23 <!-- <p>
24 All clients need to be verified before you can send email and set a project. 24 All clients need to be verified before you can send email and set a project.
25 </p> --> 25 </p> -->
26 <div class="input-group"> 26 <div class="input-group">
27 <input type="text" placeholder="Search client " class="input form-control"> 27 <input type="text" placeholder="Search client " class="input form-control">
28 <span class="input-group-btn"> 28 <span class="input-group-btn">
29 <button type="button" class="btn btn btn-primary"> <i class="fa fa-search"></i> Search</button> 29 <button type="button" class="btn btn btn-primary"> <i class="fa fa-search"></i> Search</button>
30 </span> 30 </span>
31 </div> 31 </div>
32 <div class="clients-list"> 32 <div class="clients-list">
33 <ul class="nav nav-tabs"> 33 <ul class="nav nav-tabs">
34 <span class="pull-right small text-muted">{{clientLength}} Clients</span> 34 <span class="pull-right small text-muted">{{clientLength}} Clients</span>
35 <li class="active customTab1"><a data-toggle="tab" ng-click="fboAdmin()"><i class="fa fa-user"></i> FBO Clients</a></li> 35 <li class="active customTab1"><a data-toggle="tab" ng-click="fboAdmin()"><i class="fa fa-user"></i> FBO Clients</a></li>
36 <li class="customTab2"><a data-toggle="tab" ng-click="fboDept()"><i class="fa fa-briefcase"></i> FBO Department Clients</a></li> 36 <li class="customTab2"><a data-toggle="tab" ng-click="fboDept()"><i class="fa fa-briefcase"></i> FBO Department Clients</a></li>
37 </ul> 37 </ul>
38 <div class="tab-content"> 38 <div class="tab-content">
39 <div id="tab-1" class="tab-pane"> 39 <div id="tab-1" class="tab-pane">
40 <div class="full-height-scroll"> 40 <div class="full-height-scroll">
41 <div class="table-responsive"> 41 <div class="table-responsive">
42 <table class="table table-striped table-hover"> 42 <table class="table table-striped table-hover">
43 <tbody> 43 <tbody>
44 <tr ng-repeat="client in fboClient" ui-sref="index.updateFBO({id: client.user.id})" style="cursor: pointer;"> 44 <tr ng-repeat="client in fboClient" ui-sref="index.updateFBO({id: client.user.id})" style="cursor: pointer;">
45 <td class="client-link">Anthony Jackson</td> 45 <td class="client-link">Anthony Jackson</td>
46 <td> {{client.user.firstName}}</td> 46 <td> {{client.user.firstName}}</td>
47 <td><i class="fa fa-flag"></i> {{client.user.lastName}}</td> 47 <td><i class="fa fa-flag"></i> {{client.user.lastName}}</td>
48 <td class="client-status"><span class="label label-primary">{{client.user.account.user.status}}</span></td> 48 <td class="client-status"><span class="label label-primary">{{client.user.account.user.status}}</span></td>
49 </tr> 49 </tr>
50 50
51 </tbody> 51 </tbody>
52 </table> 52 </table>
53 </div> 53 </div>
54 </div> 54 </div>
55 </div> 55 </div>
56 <div id="tab-2" class="tab-pane"> 56 <div id="tab-2" class="tab-pane">
57 <div class="full-height-scroll"> 57 <div class="full-height-scroll">
58 <div class="table-responsive"> 58 <div class="table-responsive">
59 <table class="table table-striped table-hover"> 59 <table class="table table-striped table-hover">
60 <tbody> 60 <tbody>
61 <tr ng-repeat="dept in fboDeptList"> 61 <tr ng-repeat="dept in fboDeptList" ui-sref="index.updateFBODept({id: dept.user.id})" style="cursor: pointer;">
62 <td><a data-toggle="tab" href="#company-1" class="client-link">Tellus Institute</a></td> 62 <td><a data-toggle="tab" href="#company-1" class="client-link">Tellus Institute</a></td>
63 <td>{{dept.user.firstName}}</td> 63 <td>{{dept.user.firstName}}</td>
64 <td><i class="fa fa-flag"></i> {{dept.user.lastName}}</td> 64 <td><i class="fa fa-flag"></i> {{dept.user.lastName}}</td>
65 <td class="client-status"><span class="label label-primary">{{dept.user.account.user.status}}</span></td> 65 <td class="client-status"><span class="label label-primary">{{dept.user.account.user.status}}</span></td>
66 </tr> 66 </tr>
67 </tbody> 67 </tbody>
68 </table> 68 </table>
69 </div> 69 </div>
70 </div> 70 </div>
71 </div> 71 </div>
72 </div> 72 </div>
73 </div> 73 </div>
74 </div> 74 </div>
75 </div> 75 </div>
76 </div> 76 </div>
77 </div> 77 </div>
78 </div> 78 </div>
app/views/login/login.service.js
1 (function() { 1 (function() {
2 'use strict'; 2 'use strict';
3 3
4 angular.module('acuefuel') 4 angular.module('acuefuel')
5 .service('LoginService', ['$rootScope', '$q', '$http', 'BE', '$state', LoginService]) 5 .service('LoginService', ['$rootScope', '$q', '$http', 'BE', '$state', LoginService])
6 6
7 function LoginService($rootScope, $q, $http, BE, $state) { 7 function LoginService($rootScope, $q, $http, BE, $state) {
8 8
9 this.loginUser = function(data) { 9 this.loginUser = function(data) {
10 10
11 var deferred = $q.defer(); 11 var deferred = $q.defer();
12 $http({ 12 $http({
13 method : 'POST', 13 method : 'POST',
14 url : BE.url +'/login', 14 url : BE.url +'/login',
15 headers : {'Content-Type': 'application/x-www-form-urlencoded'}, 15 headers : {'Content-Type': 'application/x-www-form-urlencoded'},
16 data : data 16 data : data
17 }) 17 })
18 .success(function(result) { 18 .success(function(result) {
19 deferred.resolve(result.data); 19 deferred.resolve(result.data);
20 }) 20 })
21 return deferred.promise; 21 return deferred.promise;
22 } 22 }
23 23
24 this.authenticate = function() { 24 this.authenticate = function() {
25 var deferred = $q.defer(); 25 var deferred = $q.defer();
26 $http({ 26 $http({
27 method : 'GET', 27 method : 'GET',
28 url : BE.url+'/user/authenticate', 28 url : BE.url+'/user/authenticate',
29 headers : {'Content-Type': 'application/x-www-form-urlencoded'} 29 headers : {'Content-Type': 'application/x-www-form-urlencoded'}
30 }).then(function (result){ 30 }).then(function (result){
31 console.log(result) 31 console.log(result)
32 if(result.data.user.admin == true){ 32 if(result.data.user.admin == true){
33 window.localStorage.setItem('loginId', result.data.id); 33 window.localStorage.setItem('loginId', result.data.id);
34 window.localStorage.setItem('loginData', JSON.stringify(result.data.userProfile)); 34 window.localStorage.setItem('loginData', JSON.stringify(result.data.userProfile));
35 $state.go('index.dashboard'); 35 $state.go('index.dashboard');
36 }else{ 36 }else{
37 localStorage.clear(); 37 localStorage.clear();
38 toastr.info("Unauthorized"); 38 toastr.info("Unauthorized");
39 } 39 }
40 deferred.resolve(result.data); 40 deferred.resolve(result.data);
41 },function (result){ 41 },function (result){
42 deferred.resolve(result.data); 42 deferred.resolve(result.data);
43 }); 43 });
44 return deferred.promise; 44 return deferred.promise;
45 } 45 }
46 46
47 this.setAuth = function(data) { 47 this.setAuth = function(data) {
48 localStorage.setItem('loginStatus', data); 48 localStorage.setItem('loginStatus', data);
49 } 49 }
50 50
51 this.logout = function(data) { 51 this.logout = function(data) {
52 52
53 var deferred = $q.defer(); 53 var deferred = $q.defer();
54 $http({ 54 $http({
55 method : 'POST', 55 method : 'POST',
56 url : BE.url +'/user/logout', 56 url : BE.url +'/user/logout',
57 headers : {'Content-Type': 'application/x-www-form-urlencoded'}, 57 headers : {'Content-Type': 'application/json'},
58 data : data 58 data : data
59 }) 59 })
60 .success(function(result) { 60 .success(function(result) {
61 deferred.resolve(result.data); 61 deferred.resolve(result.data);
62 }) 62 })
63 return deferred.promise; 63 return deferred.promise;
64 } 64 }
65 } 65 }
66 66
67 })(); 67 })();
app/views/update-airports/update-airports.html
1 </div> 1 </div>
2 <div class="row wrapper border-bottom white-bg page-heading"> 2 <div class="row wrapper border-bottom white-bg page-heading">
3 <div class="col-lg-8"> 3 <div class="col-lg-8">
4 <h2>Acukwik DropZone</h2> 4 <h2>Acukwik DropZone</h2>
5 </div> 5 </div>
6 </div> 6 </div>
7 </div> 7 </div>
8 <div class="wrapper wrapper-content animated fadeInRight"> 8 <div class="wrapper wrapper-content animated fadeInRight">
9 <div class="row"> 9 <div class="row">
10 <div class="col-lg-7"> 10 <div class="col-lg-7">
11 <div class="ibox float-e-margins"> 11 <div class="ibox float-e-margins">
12 <div> 12 <div>
13 <table class="table table-bordered "> 13 <table class="table table-bordered ">
14 <thead> 14 <thead>
15 <tr class="grad"> 15 <tr class="grad">
16 <th style="background-color: transparent;" colspan="3"> 16 <th style="background-color: transparent;" colspan="3">
17 <i class="fa fa-list" aria-hidden="true"></i> 17 <i class="fa fa-list" aria-hidden="true"></i>
18 <span style="font-size: 15px;font-weight: initial;margin-left: 5px;">Update Airport Data</span> 18 <span style="font-size: 15px;font-weight: initial;margin-left: 5px;">Update Airport Data</span>
19 </th> 19 </th>
20 </tr> 20 </tr>
21 <tr class="grad"> 21 <tr class="grad">
22 <th style="background-color: transparent;">Table</th> 22 <th style="background-color: transparent;">Table</th>
23 <th style="background-color: transparent;">Drop Zone</th> 23 <th style="background-color: transparent;">Drop Zone</th>
24 <th style="background-color: transparent;">Updated</th> 24 <th style="background-color: transparent;">Updated</th>
25 </tr> 25 </tr>
26 </thead> 26 </thead>
27 <tbody> 27 <tbody>
28 <tr style="background: #f9f9f9;"> 28 <tr style="background: #f9f9f9;">
29 <td>Airports</td> 29 <td>Airports</td>
30 <td> 30 <td>
31 <form class="dropzone12 dz-clickable" id="dropzoneForm" style="cursor: pointer;"> 31 <form class="dropzone12 dz-clickable" id="dropzoneForm" style="cursor: pointer;" ng-show="showAirports">
32 <div ngf-drop="importAirportData($files)" class="drop-box" ngf-drag-over-class="'dragover'" ngf-multiple="true" ngf-pattern=""> 32 <div ngf-drop="importAirportData($files)" class="drop-box" ngf-drag-over-class="'dragover'" ngf-multiple="true" ngf-pattern="">
33 <div class="dz-default dz-message drop-box" ngf-select="importAirportData($file)" ng-model="picFile"> 33 <div class="dz-default dz-message drop-box" ngf-select="importAirportData($file)" ng-model="picFile">
34 <p class="dpFiles"><i style="color: red;margin-right: 5px;" class="fa fa-caret-right" aria-hidden="true"></i><span ng-show="dropName">Drop files here or click to upload (Or Click)</span><span ng-hide="dropName">{{selectedFile.name}}</span><br></p> 34 <p class="dpFiles"><i style="color: red;margin-right: 5px;" class="fa fa-caret-right" aria-hidden="true"></i><span ng-show="dropName">Drop files here or click to upload (Or Click)</span><span ng-hide="dropName">{{selectedFile.name}}</span><br></p>
35 </div> 35 </div>
36 </div> 36 </div>
37 </form> 37 </form>
38 <div class="spinner" ng-hide="showAirports" style="margin: 0px auto 0;">
39 <div class="bounce1"></div>
40 <div class="bounce2"></div>
41 <div class="bounce3"></div>
42 </div>
38 </td> 43 </td>
39 <td>{{newDate}}</td> 44 <td>{{newDate}}</td>
40 </tr> 45 </tr>
41 <tr style="background: #fff;"> 46 <tr style="background: #fff;">
42 <td>Countries</td> 47 <td>Countries</td>
43 <td> 48 <td>
44 <form class="dropzone12 dz-clickable" id="dropzoneForm" style="cursor: pointer;"> 49 <form class="dropzone12 dz-clickable" id="dropzoneForm" style="cursor: pointer;" ng-show="showCountries">
45 <div ngf-drop="importCountryData($files)" class="drop-box" ngf-drag-over-class="'dragover'" ngf-multiple="true" ngf-pattern=""> 50 <div ngf-drop="importCountryData($files)" class="drop-box" ngf-drag-over-class="'dragover'" ngf-multiple="true" ngf-pattern="">
46 <div class="dz-default dz-message drop-box" ngf-select="importCountryData($file)" ng-model="countryFile"> 51 <div class="dz-default dz-message drop-box" ngf-select="importCountryData($file)" ng-model="countryFile">
47 <p class="dpFiles"><i style="color: red;margin-right: 5px;" class="fa fa-caret-right" aria-hidden="true"></i><span ng-show="countryName">Drop files here or click to upload (Or Click)</span><span ng-hide="countryName">{{selectedCountry.name}}</span><br></p> 52 <p class="dpFiles"><i style="color: red;margin-right: 5px;" class="fa fa-caret-right" aria-hidden="true"></i><span ng-show="countryName">Drop files here or click to upload (Or Click)</span><span ng-hide="countryName">{{selectedCountry.name}}</span><br></p>
48 </div> 53 </div>
49 </div> 54 </div>
50 </form> 55 </form>
56 <div class="spinner" ng-hide="showCountries" style="margin: 0px auto 0;">
57 <div class="bounce1"></div>
58 <div class="bounce2"></div>
59 <div class="bounce3"></div>
60 </div>
51 </td> 61 </td>
52 <td>{{newDate}}</td> 62 <td>{{newDate}}</td>
53 </tr> 63 </tr>
54 <tr style="background: #f9f9f9;"> 64 <tr style="background: #f9f9f9;">
55 <td>FBOHandlerDetail</td> 65 <td>FBOHandlerDetail</td>
56 <td> 66 <td>
57 <form class="dropzone12 dz-clickable" id="dropzoneForm" style="cursor: pointer;"> 67 <form class="dropzone12 dz-clickable" id="dropzoneForm" style="cursor: pointer;" ng-show="fboHandlerDetail">
58 <div ngf-drop="importFboHandler($files)" class="drop-box" ngf-drag-over-class="'dragover'" ngf-multiple="true" ngf-pattern=""> 68 <div ngf-drop="importFboHandler($files)" class="drop-box" ngf-drag-over-class="'dragover'" ngf-multiple="true" ngf-pattern="">
59 <div class="dz-default dz-message drop-box" ngf-select="importFboHandler($file)" ng-model="FBOFile"> 69 <div class="dz-default dz-message drop-box" ngf-select="importFboHandler($file)" ng-model="FBOFile">
60 <p class="dpFiles"><i style="color: red;margin-right: 5px;" class="fa fa-caret-right" aria-hidden="true"></i><span ng-show="fboHandlerName">Drop files here or click to upload (Or Click)</span><span ng-hide="fboHandlerName">{{selectedFBO.name}}</span><br></p> 70 <p class="dpFiles"><i style="color: red;margin-right: 5px;" class="fa fa-caret-right" aria-hidden="true"></i><span ng-show="fboHandlerName">Drop files here or click to upload (Or Click)</span><span ng-hide="fboHandlerName">{{selectedFBO.name}}</span><br></p>
61 </div> 71 </div>
62 </div> 72 </div>
63 </form> 73 </form>
74 <div class="spinner" ng-hide="fboHandlerDetail" style="margin: 0px auto 0;">
75 <div class="bounce1"></div>
76 <div class="bounce2"></div>
77 <div class="bounce3"></div>
78 </div>
64 </td> 79 </td>
65 <td>{{newDate}}</td> 80 <td>{{newDate}}</td>
66 </tr> 81 </tr>
67 <tr style="background: #fff;"> 82 <tr style="background: #fff;">
68 <td>SubdivisionStates</td> 83 <td>SubdivisionStates</td>
69 <td> 84 <td>
70 <form class="dropzone12 dz-clickable" id="dropzoneForm" style="cursor: pointer;"> 85 <form class="dropzone12 dz-clickable" id="dropzoneForm" style="cursor: pointer;" ng-show="subDivState">
71 <div ngf-drop="importsubDivisionData($files)" class="drop-box" ngf-drag-over-class="'dragover'" ngf-multiple="true" ngf-pattern=""> 86 <div ngf-drop="importsubDivisionData($files)" class="drop-box" ngf-drag-over-class="'dragover'" ngf-multiple="true" ngf-pattern="">
72 <div class="dz-default dz-message drop-box" ngf-select="importsubDivisionData($file)" ng-model="stateFile"> 87 <div class="dz-default dz-message drop-box" ngf-select="importsubDivisionData($file)" ng-model="stateFile">
73 <p class="dpFiles"><i style="color: red;margin-right: 5px;" class="fa fa-caret-right" aria-hidden="true"></i><span ng-show="subDivisionName">Drop files here or click to upload (Or Click)</span><span ng-hide="subDivisionName">{{selectedState.name}}</span><br></p> 88 <p class="dpFiles"><i style="color: red;margin-right: 5px;" class="fa fa-caret-right" aria-hidden="true"></i><span ng-show="subDivisionName">Drop files here or click to upload (Or Click)</span><span ng-hide="subDivisionName">{{selectedState.name}}</span><br></p>
74 </div> 89 </div>
75 </div> 90 </div>
76 </form> 91 </form>
92 <div class="spinner" ng-hide="subDivState" style="margin: 0px auto 0;">
93 <div class="bounce1"></div>
94 <div class="bounce2"></div>
95 <div class="bounce3"></div>
96 </div>
77 </td> 97 </td>
78 <td>{{newDate}}</td> 98 <td>{{newDate}}</td>
79 </tr> 99 </tr>
80 <tr style="background: #f9f9f9;"> 100 <tr style="background: #f9f9f9;">
81 <td>SupplierDetail</td> 101 <td>SupplierDetail</td>
82 <td> 102 <td>
83 <form class="dropzone12 dz-clickable" id="dropzoneForm" style="cursor: pointer;"> 103 <form class="dropzone12 dz-clickable" id="dropzoneForm" style="cursor: pointer;" ng-show="suppDetail">
84 <div ngf-drop="importSuppluerDetail($files)" class="drop-box" ngf-drag-over-class="'dragover'" ngf-multiple="true" ngf-pattern=""> 104 <div ngf-drop="importSuppluerDetail($files)" class="drop-box" ngf-drag-over-class="'dragover'" ngf-multiple="true" ngf-pattern="">
85 <div class="dz-default dz-message drop-box" ngf-select="importSuppluerDetail($file)"> 105 <div class="dz-default dz-message drop-box" ngf-select="importSuppluerDetail($file)">
86 <p class="dpFiles"><i style="color: red;margin-right: 5px;" class="fa fa-caret-right" aria-hidden="true"></i><span ng-show="supplierName">Drop files here or click to upload (Or Click)</span><span ng-hide="supplierName">{{selectedSuplier.name}}</span><br></p> 106 <p class="dpFiles"><i style="color: red;margin-right: 5px;" class="fa fa-caret-right" aria-hidden="true"></i><span ng-show="supplierName">Drop files here or click to upload (Or Click)</span><span ng-hide="supplierName">{{selectedSuplier.name}}</span><br></p>
87 </div> 107 </div>
88 </div> 108 </div>
89 </form> 109 </form>
110 <div class="spinner" ng-hide="suppDetail" style="margin: 0px auto 0;">
111 <div class="bounce1"></div>
112 <div class="bounce2"></div>
113 <div class="bounce3"></div>
114 </div>
90 </td> 115 </td>
91 <td>{{newDate}}</td> 116 <td>{{newDate}}</td>
92 </tr> 117 </tr>
93 </tbody> 118 </tbody>
94 </table> 119 </table>
95 120
96 </div> 121 </div>
97 </div> 122 </div>
98 </div> 123 </div>
99 </div> 124 </div>
100 </div>
app/views/update-airports/updateAirportController.js
1 'use strict'; 1 'use strict';
2 2
3 angular.module('acuefuel') 3 angular.module('acuefuel')
4 4
5 .controller('updateAirportController', function ($scope, UpdateAirportService) { 5 .controller('updateAirportController', function ($scope, UpdateAirportService) {
6 $scope.dropName = true; 6 $scope.dropName = true;
7 $scope.supplierName = true; 7 $scope.supplierName = true;
8 $scope.countryName = true; 8 $scope.countryName = true;
9 $scope.subDivisionName = true; 9 $scope.subDivisionName = true;
10 $scope.fboHandlerName = true; 10 $scope.fboHandlerName = true;
11 $scope.myLoader = false; 11 $scope.showAirports = true;
12 $scope.showCountries = true;
13 $scope.fboHandlerDetail = true;
14 $scope.subDivState = true;
15 $scope.suppDetail = true;
12 16
13 // Showing Date 17 // Showing Date
14 var today = new Date(); 18 var today = new Date();
15 var dd = today.getDate(); 19 var dd = today.getDate();
16 var mm = today.getMonth()+1; 20 var mm = today.getMonth()+1;
17 var yyyy = today.getFullYear(); 21 var yyyy = today.getFullYear();
18 if(dd < 10){ 22 if(dd < 10){
19 dd='0'+dd; 23 dd='0'+dd;
20 } 24 }
21 if(mm < 10){ 25 if(mm < 10){
22 mm='0'+mm; 26 mm='0'+mm;
23 } 27 }
24 $scope.newDate = dd + '/' + mm + '/' + yyyy; 28 $scope.newDate = dd + '/' + mm + '/' + yyyy;
25 29
26 //Import Airport Data 30 //Import Airport Data
27 $scope.data = {}; 31 $scope.data = {};
28 $scope.importAirportData = function(fileName) { 32 $scope.importAirportData = function(fileName) {
29 $scope.myLoader = true; 33 $scope.showAirports = false;
30 console.log(fileName) 34 console.log(fileName)
31 if(fileName.name != undefined){ 35 if(fileName.name != undefined){
32 $scope.dropName = false; 36 $scope.dropName = false;
33 $scope.selectedFile = fileName; 37 $scope.selectedFile = fileName;
34 $scope.data.airportFile = $scope.selectedFile; 38 $scope.data.airportFile = $scope.selectedFile;
35 }else if(fileName instanceof Array){ 39 }else if(fileName instanceof Array){
36 $scope.dropName = false; 40 $scope.dropName = false;
37 $scope.selectedFile = fileName[0]; 41 $scope.selectedFile = fileName[0];
38 $scope.data.airportFile = $scope.selectedFile; 42 $scope.data.airportFile = $scope.selectedFile;
39 } 43 }
40 var fileCheck = $scope.data.airportFile.name.split('.')[1]; 44 var fileCheck = $scope.data.airportFile.name.split('.')[1];
41 console.log(fileCheck) 45 console.log(fileCheck)
42 if(fileCheck == 'csv'){ 46 if(fileCheck == 'csv'){
43 UpdateAirportService.updateAirportData($scope.data).then(function(result) { 47 UpdateAirportService.updateAirportData($scope.data).then(function(result) {
44 $scope.myLoader = false; 48 $scope.showAirports = true;
45 console.log(result) 49 console.log(result)
46 toastr.success('Copied', { 50 toastr.success('Copied', {
47 closeButton: true 51 closeButton: true
48 }) 52 })
49 }) 53 })
50 }else { 54 }else {
55 $scope.showAirports = true;
51 $scope.dropName = true; 56 $scope.dropName = true;
52 toastr.error('Please select only csv file', { 57 toastr.error('Please select only csv file', {
53 closeButton: true 58 closeButton: true
54 }) 59 })
55 } 60 }
56 61
57 } 62 }
58 63
59 //Import Supplier Detail Data 64 //Import Supplier Detail Data
60 $scope.supplierData = {}; 65 $scope.supplierData = {};
61 $scope.importSuppluerDetail = function(fileName){ 66 $scope.importSuppluerDetail = function(fileName){
62 $scope.myLoader = true; 67 $scope.suppDetail = false;
63 console.log(fileName) 68 console.log(fileName)
64 if(fileName.name != undefined){ 69 if(fileName.name != undefined){
65 $scope.supplierName = false; 70 $scope.supplierName = false;
66 $scope.selectedSuplier = fileName; 71 $scope.selectedSuplier = fileName;
67 $scope.supplierData.supplierDetailFile = $scope.selectedSuplier; 72 $scope.supplierData.supplierDetailFile = $scope.selectedSuplier;
68 }else if(fileName instanceof Array){ 73 }else if(fileName instanceof Array){
69 $scope.supplierName = false; 74 $scope.supplierName = false;
70 $scope.selectedSuplier = fileName[0]; 75 $scope.selectedSuplier = fileName[0];
71 $scope.supplierData.supplierDetailFile = $scope.selectedSuplier; 76 $scope.supplierData.supplierDetailFile = $scope.selectedSuplier;
72 } 77 }
73 var fileCheck = $scope.supplierData.supplierDetailFile.name.split('.')[1]; 78 var fileCheck = $scope.supplierData.supplierDetailFile.name.split('.')[1];
74 console.log(fileCheck) 79 console.log(fileCheck)
75 if(fileCheck == 'csv'){ 80 if(fileCheck == 'csv'){
76 UpdateAirportService.updateSupplierDetail($scope.supplierData).then(function(result) { 81 UpdateAirportService.updateSupplierDetail($scope.supplierData).then(function(result) {
77 console.log(result) 82 console.log(result)
78 $scope.myLoader = false; 83 $scope.suppDetail = true;
79 toastr.success('File Upload Successfully', { 84 toastr.success('File Upload Successfully', {
80 closeButton: true 85 closeButton: true
81 }) 86 })
82 }) 87 })
83 }else { 88 }else {
84 $scope.myLoader = false; 89 $scope.suppDetail = true;
85 $scope.supplierName = true; 90 $scope.supplierName = true;
86 toastr.error('Please select only csv file', { 91 toastr.error('Please select only csv file', {
87 closeButton: true 92 closeButton: true
88 }) 93 })
89 } 94 }
90 } 95 }
91 96
92 //Import Countries Data 97 //Import Countries Data
93 $scope.countryData = {}; 98 $scope.countryData = {};
94 $scope.importCountryData = function(fileName){ 99 $scope.importCountryData = function(fileName){
95 $scope.myLoader = true; 100 $scope.showCountries = false;
96 console.log(fileName) 101 console.log(fileName)
97 if(fileName.name != undefined){ 102 if(fileName.name != undefined){
98 $scope.countryName = false; 103 $scope.countryName = false;
99 $scope.selectedCountry = fileName; 104 $scope.selectedCountry = fileName;
100 $scope.countryData.countrieFile = $scope.selectedCountry; 105 $scope.countryData.countrieFile = $scope.selectedCountry;
101 }else if(fileName instanceof Array){ 106 }else if(fileName instanceof Array){
102 $scope.countryName = false; 107 $scope.countryName = false;
103 $scope.selectedCountry = fileName[0]; 108 $scope.selectedCountry = fileName[0];
104 $scope.countryData.countrieFile = $scope.selectedCountry; 109 $scope.countryData.countrieFile = $scope.selectedCountry;
105 } 110 }
106 var fileCheck = $scope.countryData.countrieFile.name.split('.')[1]; 111 var fileCheck = $scope.countryData.countrieFile.name.split('.')[1];
107 console.log(fileCheck) 112 console.log(fileCheck)
108 if(fileCheck == 'csv'){ 113 if(fileCheck == 'csv'){
109 UpdateAirportService.updateCountries($scope.countryData).then(function(result) { 114 UpdateAirportService.updateCountries($scope.countryData).then(function(result) {
110 console.log(result) 115 console.log(result)
111 $scope.myLoader = false; 116 $scope.showCountries = true;
112 toastr.success('File Upload Successfully', { 117 toastr.success('File Upload Successfully', {
113 closeButton: true 118 closeButton: true
114 }) 119 })
115 }) 120 })
116 }else { 121 }else {
117 $scope.myLoader = false; 122 $scope.showCountries = true;
118 $scope.countryName = true; 123 $scope.countryName = true;
119 toastr.error('Please select only csv file', { 124 toastr.error('Please select only csv file', {
120 closeButton: true 125 closeButton: true
121 }) 126 })
122 } 127 }
123 } 128 }
124 129
125 //Import Sub Divison State Data 130 //Import Sub Divison State Data
126 $scope.subDivisionData = {}; 131 $scope.subDivisionData = {};
127 $scope.importsubDivisionData = function(fileName){ 132 $scope.importsubDivisionData = function(fileName){
128 $scope.myLoader = true; 133 $scope.subDivState = false;
129 console.log(fileName) 134 console.log(fileName)
130 if(fileName.name != undefined){ 135 if(fileName.name != undefined){
131 $scope.subDivisionName = false; 136 $scope.subDivisionName = false;
132 $scope.selectedState = fileName; 137 $scope.selectedState = fileName;
133 $scope.subDivisionData.subDivisionStateFile = $scope.selectedState; 138 $scope.subDivisionData.subDivisionStateFile = $scope.selectedState;
134 }else if(fileName instanceof Array){ 139 }else if(fileName instanceof Array){
135 $scope.subDivisionName = false; 140 $scope.subDivisionName = false;
136 $scope.selectedState = fileName[0]; 141 $scope.selectedState = fileName[0];
137 $scope.subDivisionData.subDivisionStateFile = $scope.selectedState; 142 $scope.subDivisionData.subDivisionStateFile = $scope.selectedState;
138 } 143 }
139 var fileCheck = $scope.subDivisionData.subDivisionStateFile.name.split('.')[1]; 144 var fileCheck = $scope.subDivisionData.subDivisionStateFile.name.split('.')[1];
140 console.log(fileCheck) 145 console.log(fileCheck)
141 if(fileCheck == 'csv'){ 146 if(fileCheck == 'csv'){
142 UpdateAirportService.updateSubDivisionState($scope.subDivisionData).then(function(result) { 147 UpdateAirportService.updateSubDivisionState($scope.subDivisionData).then(function(result) {
143 console.log(result) 148 console.log(result)
144 $scope.myLoader = false; 149 $scope.subDivState = true;
145 toastr.success('File Upload Successfully', { 150 toastr.success('File Upload Successfully', {
146 closeButton: true 151 closeButton: true
147 }) 152 })
148 }) 153 })
149 }else { 154 }else {
150 $scope.myLoader = false; 155 $scope.subDivState = true;
151 $scope.subDivisionName = true; 156 $scope.subDivisionName = true;
152 toastr.error('Please select only csv file', { 157 toastr.error('Please select only csv file', {
153 closeButton: true 158 closeButton: true
154 }) 159 })
155 } 160 }
156 } 161 }
157 162
158 //Import FBO Handler Data 163 //Import FBO Handler Data
159 $scope.fboHandlerData = {}; 164 $scope.fboHandlerData = {};
160 $scope.importFboHandler = function(fileName){ 165 $scope.importFboHandler = function(fileName){
161 $scope.myLoader = true; 166 $scope.fboHandlerDetail = false;
162 console.log(fileName) 167 console.log(fileName)
163 if(fileName.name != undefined){ 168 if(fileName.name != undefined){
164 $scope.fboHandlerName = false; 169 $scope.fboHandlerName = false;
165 $scope.selectedFBO = fileName; 170 $scope.selectedFBO = fileName;
166 $scope.fboHandlerData.FBOHandlerFile = $scope.selectedFBO; 171 $scope.fboHandlerData.FBOHandlerFile = $scope.selectedFBO;
167 }else if(fileName instanceof Array){ 172 }else if(fileName instanceof Array){
168 $scope.fboHandlerName = false; 173 $scope.fboHandlerName = false;
169 $scope.selectedFBO = fileName[0]; 174 $scope.selectedFBO = fileName[0];
170 $scope.fboHandlerData.FBOHandlerFile = $scope.selectedFBO; 175 $scope.fboHandlerData.FBOHandlerFile = $scope.selectedFBO;
171 } 176 }
172 var fileCheck = $scope.fboHandlerData.FBOHandlerFile.name.split('.')[1]; 177 var fileCheck = $scope.fboHandlerData.FBOHandlerFile.name.split('.')[1];
173 console.log(fileCheck) 178 console.log(fileCheck)
174 if(fileCheck == 'csv'){ 179 if(fileCheck == 'csv'){
175 UpdateAirportService.updateFBOHandler($scope.fboHandlerData).then(function(result) { 180 UpdateAirportService.updateFBOHandler($scope.fboHandlerData).then(function(result) {
176 console.log(result) 181 console.log(result)
177 $scope.myLoader = false; 182 $scope.fboHandlerDetail = true;
178 toastr.success('File Upload Successfully', { 183 toastr.success('File Upload Successfully', {
179 closeButton: true 184 closeButton: true
180 }) 185 })
181 }) 186 })
182 }else { 187 }else {
183 $scope.myLoader = false; 188 $scope.fboHandlerDetail = true;
184 $scope.fboHandlerName = true; 189 $scope.fboHandlerName = true;
185 toastr.error('Please select only csv file', { 190 toastr.error('Please select only csv file', {
186 closeButton: true 191 closeButton: true
187 }) 192 })
188 } 193 }
189 } 194 }
190 195
191 }) 196 })
app/views/updateFBODept/updateFBODept.controller.js
File was created 1 'use strict';
2
3 //Load controller
4 angular.module('acuefuel')
5
6 .controller('updateFBODeptController', function($scope, $stateParams, UpdateAllFBODept) {
7
8 var userProfileID = $stateParams.id;
9 UpdateAllFBODept.getALlFBOData(userProfileID).then(function(result) {
10 console.log(result)
11 $scope.user = result;
12 UpdateAllFBODept.getNotes(userProfileID).then(function(response) {
13 $scope.user.clientNote = response[0].notes
14 })
15 // $scope.feature = result.accountFeatureControl;
16 // console.log($scope.feature,"dsdsdsds")
17 if($scope.user.account.user.status == 'ACTIVE'){
18 $scope.status = true;
19 }else {
20 $scope.status = false;
21 }
22 })
23
24 });
app/views/updateFBODept/updateFBODept.html
File was created 1 </div>
2 <div class="row wrapper border-bottom white-bg page-heading">
3 <div class="col-lg-8">
4 <h2>Tellus Institute</h2>
5 </div>
6 <div class="col-lg-4" style="margin-top: 20px; text-align: right;">
7 <button type="button" class="btn btn-default btn-sm">Cancel</button>
8 <button type="button" class="btn btn-primary btn-sm" ng-click="userData()">Save Changes</button>
9 </div>
10 </div>
11 </div>
12 <div class="wrapper wrapper-content animated fadeInRight">
13 <div class="row">
14 <div class="col-lg-7">
15 <div class="ibox float-e-margins">
16 <div class="ibox-title">
17 <div class="pull-left">
18 <h5>Contact Information</h5>
19 </div>
20 <div class="pull-right my-toggle-switch">
21 <div class="switch">
22 <div class="onoffswitch">
23 <input type="checkbox" ng-checked="status === true" ng-model="status" ng-init="status = true" class="onoffswitch-checkbox" id="example1">
24 <label class="onoffswitch-label" for="example1">
25 <span class="onoffswitch-inner"></span>
26 <span class="onoffswitch-switch"></span>
27 </label>
28 </div>
29 </div>
30 </div>
31 <div class="clearfix"></div>
32 </div>
33 <div class="ibox-content">
34 <div class="row">
35 <form role="form">
36 <div class="col-sm-6 b-r">
37 <div class="form-group"><label>Username</label> <input type="email" placeholder="Email Username" ng-model="user.email" class="form-control"></div>
38 <div class="form-group"><label>First Name</label> <input type="text" placeholder="First Name" ng-model="user.firstName" class="form-control"></div>
39 <div class="form-group"><label>Last Name</label> <input type="text" placeholder="Last Name" ng-model="user.lastName" class="form-control"></div>
40 <!-- <div>
41 <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="submit"><strong>Log in</strong></button>
42 <label> <input type="checkbox" class="i-checks"> Remember me </label>
43 </div> -->
44
45 </div>
46 <div class="col-sm-6">
47 <div class="form-group"><label>Password</label> <input type="password" ng-model="user.password" placeholder="Password" class="form-control"></div>
48 <div class="form-group"><label>Phone</label> <input type="tel" ng-model="user.phone" placeholder="Phone" class="form-control"></div>
49 <div class="form-group"><label>Mobile</label> <input type="tel" ng-model="user.mobile" placeholder="Mobile" class="form-control"></div>
50 </div>
51 </form>
52 </div>
53 </div>
54 </div>
55 </div>
56 <div class="col-lg-5">
57 <div class="ibox float-e-margins">
58 <div class="ibox-title">
59 <h5>Client Notes</h5>
60
61 </div>
62 <div class="ibox-content">
63 <div class="row">
64 <form role="form">
65 <textarea class="form-control" rows="10" ng-model="user.clientNote" id="comment"></textarea>
66 </form>
67 </div>
68 </div>
69
70 </div>
71 </div>
72 </div>
73 </div>
74
75 <div>
76 <div class="row">
77 <div class="col-lg-7">
78 <div class="ibox float-e-margins">
79 <div class="ibox-title">
80 <div>
81 <h3 style="float: left;">Aircraft List</h3>
82 </div>
83 <div class="pull-right">
84 <button type="button" class="btn btn-success color-success" style="background-color: #4caf50;">+ Add</button>
85 </div>
86 <div class="clearfix"></div>
87 </div>
88 <div class="content">
89 <div class="table-responsive">
90 <table class="table table-bordered table-hover table-striped">
91 <thead>
92 <tr>
93 <th>Tail</th>
94 <th>Make</th>
95 <th>Model</th>
96 <th>Size</th>
97 <th>Margin</th>
98 </tr>
99 </thead>
100 <tbody>
101 <tr>
102 <td>
103 <input type="text" style="width:100px;" class="form-control">
104 </td>
105 <td>
106 <select class="form-control" style="height:31px;">
107 <option>Margin1</option>
108 <option>Margin2</option>
109 </select>
110 </td>
111 <td>
112 <select class="form-control" style="height:31px;">
113 <option>Margin1</option>
114 <option>Margin2</option>
115 </select>
116 </td>
117 <td>
118 <select class="form-control" style="height:31px;">
119 <option>Margin1</option>
120 <option>Margin2</option>
121 </select>
122 </td>
123 <td>
124 <select class="form-control" style="height:31px;">
125 <option>Margin1</option>
126 <option>Margin2</option>
127 </select>
128 </td>
129 </tr>
130 <tr>
131 <td>
132 <input type="text" style="width:100px;" class="form-control">
133 </td>
134 <td>
135 <select class="form-control" style="height:31px;">
136 <option>Margin1</option>
137 <option>Margin2</option>
138 </select>
139 </td>
140 <td>
141 <select class="form-control" style="height:31px;">
142 <option>Margin1</option>
143 <option>Margin2</option>
144 </select>
145 </td>
146 <td>
147 <select class="form-control" style="height:31px;">
148 <option>Margin1</option>
149 <option>Margin2</option>
150 </select>
151 </td>
152 <td>
153 <select class="form-control" style="height:31px;">
154 <option>Margin1</option>
155 <option>Margin2</option>
156 </select>
157 </td>
158 </tr>
159 <tr>
160 <td>
161 <input type="text" style="width:100px;" class="form-control">
162 </td>
163 <td>
164 <select class="form-control" style="height:31px;">
165 <option>Margin1</option>
166 <option>Margin2</option>
167 </select>
168 </td>
169 <td>
170 <select class="form-control" style="height:31px;">
171 <option>Margin1</option>
172 <option>Margin2</option>
173 </select>
174 </td>
175 <td>
176 <select class="form-control" style="height:31px;">
177 <option>Margin1</option>
178 <option>Margin2</option>
179 </select>
180 </td>
181 <td>
182 <select class="form-control" style="height:31px;">
183 <option>Margin1</option>
184 <option>Margin2</option>
185 </select>
186 </td>
187 </tr>
188 <tr>
189 <td>
190 <input type="text" style="width:100px;" class="form-control">
191 </td>
192 <td>
193 <select class="form-control" style="height:31px;">
194 <option>Margin1</option>
195 <option>Margin2</option>
196 </select>
197 </td>
198 <td>
199 <select class="form-control" style="height:31px;">
200 <option>Margin1</option>
201 <option>Margin2</option>
202 </select>
203 </td>
204 <td>
205 <select class="form-control" style="height:31px;">
206 <option>Margin1</option>
207 <option>Margin2</option>
208 </select>
209 </td>
210 <td>
211 <select class="form-control" style="height:31px;">
212 <option>Margin1</option>
213 <option>Margin2</option>
214 </select>
215 </td>
216 </tr>
217 <tr>
218 <td>
219 <input type="text" style="width:100px;" class="form-control">
220 </td>
221 <td>
222 <select class="form-control" style="height:31px;">
223 <option>Margin1</option>
224 <option>Margin2</option>
225 </select>
226 </td>
227 <td>
228 <select class="form-control" style="height:31px;">
229 <option>Margin1</option>
230 <option>Margin2</option>
231 </select>
232 </td>
233 <td>
234 <select class="form-control" style="height:31px;">
235 <option>Margin1</option>
236 <option>Margin2</option>
237 </select>
238 </td>
239 <td>
240 <select class="form-control" style="height:31px;">
241 <option>Margin1</option>
242 <option>Margin2</option>
243 </select>
244 </td>
245 </tr>
246 </tbody>
247 </table>
248 </div>
249 <div class="clearfix"></div>
250 </div>
251 </div>
252 </div>
253 <div class="col-lg-5">
254 <div class="ibox float-e-margins">
255 <div class="ibox-title">
256 <h5>Account Authenticatio & Payment Method</h5>
257
258 </div>
259 <div class="ibox-content">
260 <div class="row">
261 <div class="container">
262 <div class="row">
263 <div class="col-xs-12 col-md-4">
264 <div class="panel panel-default credit-card-box">
265 <div class="panel-heading display-table" >
266 <div class="row display-tr" >
267 <h3 class="panel-title display-td" >Payment Details</h3>
268 <div class="display-td" >
269 <img class="img-responsive pull-right" src="http://i76.imgup.net/accepted_c22e0.png">
270 </div>
271 </div>
272 </div>
273 <div class="panel-body">
274 <form role="form" id="payment-form">
275 <div class="row">
276 <div class="col-xs-12">
277 <div class="form-group">
278 <label for="cardNumber">CARD NUMBER</label>
279 <div class="input-group">
280 <input type="number" ng-model="data.cardNumber" maxlength="16" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);" class="form-control" name="cardNumber" placeholder="Valid Card Number" autocomplete="cc-number" required autofocus>
281 <span class="input-group-addon"><i class="fa fa-credit-card"></i></span>
282 </div>
283 </div>
284 </div>
285 </div>
286 <div class="row">
287 <div class="col-xs-7 col-md-7">
288 <div class="form-group">
289 <label for="cardExpiry"><span class="hidden-xs">EXPIRATION</span><span class="visible-xs-inline">EXP</span> DATE</label>
290 <input type="text" ng-model="data.expiryDate" class="form-control" name="cardExpiry" placeholder="MM / YY" autocomplete="cc-exp"
291 required>
292 </div>
293 </div>
294 <div class="col-xs-5 col-md-5 pull-right">
295 <div class="form-group">
296 <label for="cardCVC">CVV CODE</label>
297 <input type="number" maxlength="3" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);" class="form-control" name="cardCVC" placeholder="CVC" autocomplete="cc-csc"
298 required>
299 </div>
300 </div>
301 </div>
302 <div class="row">
303 <div class="col-xs-12">
304 <div class="form-group">
305 <label for="name">Card Type</label>
306 <select class="form-control m-b" name="account" ng-model="data.cardType" style="margin-bottom: 0;">
307 <option value="creditCard" selected>Credit Card</option>
308 <option value="debitCard">Debit Card</option>
309 </select>
310 </div>
311 </div>
312 </div>
313 <div class="row">
314 <div class="col-xs-12">
315 <button class="btn btn-success btn-lg btn-block" type="submit" ng-click="addCard()">Add</button>
316 </div>
317 </div>
318 <div class="row" style="display:none;">
319 <div class="col-xs-12">
320 <p class="payment-errors"></p>
321 </div>
322 </div>
323 </form>
324 </div>
325 </div>
326 </div>
327 </div>
328 </div>
329 </div>
330 </div>
331 </div>
332 </div>
333 </div>
334 </div>
335 </div>
336 <script type="text/javascript" src="https://js.stripe.com/v2/"></script>
app/views/updateFBODept/updateFBODept.service.js
File was created 1 (function() {
2 'use strict';
3
4 angular.module('acuefuel')
5 .service('UpdateAllFBODept', ['$rootScope', '$q', '$http', 'BE', UpdateAllFBODept])
6
7 function UpdateAllFBODept($rootScope, $q, $http, BE) {
8
9 this.getALlFBOData = function(id) {
10
11 var deferred = $q.defer();
12 $http({
13 method : 'GET',
14 url : BE.url +'/account/user/'+id,
15 headers : {'Content-Type': 'application/json'},
16 })
17 .success(function(result) {
18 deferred.resolve(result);
19 })
20 return deferred.promise;
21 }
22
23 this.getNotes = function(id) {
24
25 var deferred = $q.defer();
26 $http({
27 method : 'GET',
28 url : BE.url +'/account/user/'+id + '/notes',
29 headers : {'Content-Type': 'application/json'},
30 })
31 .success(function(result) {
32 deferred.resolve(result);
33 })
34 return deferred.promise;
35 }
36
37 }
38
39 })();