Commit 3cab9e8a3978f3a4d9aaf69365058d8e974bc340
1 parent
4bda5699a8
Exists in
master
implement view contact api
Showing
14 changed files
with
122 additions
and
328 deletions
Show diff stats
app/index.html
1 | <html ng-app="acufuel"> | 1 | <html ng-app="acufuel"> |
2 | <head lang="en"> | 2 | <head lang="en"> |
3 | <meta charset="utf-8"> | 3 | <meta charset="utf-8"> |
4 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 4 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
5 | <meta name="description" content=""> | 5 | <meta name="description" content=""> |
6 | <meta name="author" content=""> | 6 | <meta name="author" content=""> |
7 | <title>Acefuel</title> | 7 | <title>Acefuel</title> |
8 | <!-- styles --> | 8 | <!-- styles --> |
9 | <link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.10.0.custom.min.css"/> | 9 | <link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.10.0.custom.min.css"/> |
10 | <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"/> | 10 | <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"/> |
11 | <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css"/> | 11 | <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css"/> |
12 | <link rel="stylesheet" href="bower_components/bootstrap-toggle/css/bootstrap-toggle.min.css" /> | 12 | <link rel="stylesheet" href="bower_components/bootstrap-toggle/css/bootstrap-toggle.min.css" /> |
13 | <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.min.css"/> | 13 | <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.min.css"/> |
14 | <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.print.min.css"/> | 14 | <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.print.min.css"/> |
15 | <link rel="stylesheet" href="bower_components/toastr/toastr.min.css"/> | 15 | <link rel="stylesheet" href="bower_components/toastr/toastr.min.css"/> |
16 | <link rel="stylesheet" href="bower_components/angular-bootstrap/ui-bootstrap-csp.css"/> | 16 | <link rel="stylesheet" href="bower_components/angular-bootstrap/ui-bootstrap-csp.css"/> |
17 | <link href="bower_components/jqGrid/css/ui.jqgrid.css" rel="stylesheet"> | 17 | <link href="bower_components/jqGrid/css/ui.jqgrid.css" rel="stylesheet"> |
18 | <link href="bower_components/angular-xeditable/dist/css/xeditable.css" rel="stylesheet"> | 18 | <link href="bower_components/angular-xeditable/dist/css/xeditable.css" rel="stylesheet"> |
19 | 19 | ||
20 | 20 | ||
21 | <link rel="stylesheet" href="css/main.css"/> | 21 | <link rel="stylesheet" href="css/main.css"/> |
22 | <link rel="stylesheet" href="css/base-admin-3.css"/> | 22 | <link rel="stylesheet" href="css/base-admin-3.css"/> |
23 | <link rel="stylesheet" href="css/base-admin-3-responsive.css"/> | 23 | <link rel="stylesheet" href="css/base-admin-3-responsive.css"/> |
24 | <link rel="stylesheet" href="css/custom.css"/> | 24 | <link rel="stylesheet" href="css/custom.css"/> |
25 | 25 | ||
26 | <link href="css/bootstrap-responsive.min.css" rel="stylesheet"> | 26 | <link href="css/bootstrap-responsive.min.css" rel="stylesheet"> |
27 | <link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600" rel="stylesheet"> | 27 | <link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600" rel="stylesheet"> |
28 | <link href="js/plugins/cirque/cirque.css" rel="stylesheet"> | 28 | <link href="js/plugins/cirque/cirque.css" rel="stylesheet"> |
29 | 29 | ||
30 | <link href="css/pages/dashboard.css" rel="stylesheet"> | 30 | <link href="css/pages/dashboard.css" rel="stylesheet"> |
31 | <link href="js/plugins/faq/faq.css" rel="stylesheet"> | 31 | <link href="js/plugins/faq/faq.css" rel="stylesheet"> |
32 | <link href="css/pages/plans.css" rel="stylesheet"> | 32 | <link href="css/pages/plans.css" rel="stylesheet"> |
33 | 33 | ||
34 | <link href="js/plugins/lightbox/themes/evolution-dark/jquery.lightbox.css" rel="stylesheet"> | 34 | <link href="js/plugins/lightbox/themes/evolution-dark/jquery.lightbox.css" rel="stylesheet"> |
35 | <link href="js/plugins/msgGrowl/css/msgGrowl.css" rel="stylesheet"> | 35 | <link href="js/plugins/msgGrowl/css/msgGrowl.css" rel="stylesheet"> |
36 | <link href="js/plugins/msgbox/jquery.msgbox.css" rel="stylesheet"> | 36 | <link href="js/plugins/msgbox/jquery.msgbox.css" rel="stylesheet"> |
37 | <link href="css/pages/pricing.css" rel="stylesheet"> | 37 | <link href="css/pages/pricing.css" rel="stylesheet"> |
38 | <link href="css/pages/reports.css" rel="stylesheet"> | 38 | <link href="css/pages/reports.css" rel="stylesheet"> |
39 | 39 | ||
40 | 40 | ||
41 | 41 | ||
42 | </head> | 42 | </head> |
43 | <body> | 43 | <body> |
44 | <!-- views --> | 44 | <!-- views --> |
45 | 45 | ||
46 | <!-- scripts --> | 46 | <!-- scripts --> |
47 | <script src="bower_components/jquery/dist/jquery.min.js"></script> | 47 | <script src="bower_components/jquery/dist/jquery.min.js"></script> |
48 | <script src="js/libs/jquery-ui-1.10.0.custom.min.js"></script> | 48 | <script src="js/libs/jquery-ui-1.10.0.custom.min.js"></script> |
49 | <!--<script src="js/plugins/flot/jquery.flot.js"></script> | 49 | <!--<script src="js/plugins/flot/jquery.flot.js"></script> |
50 | <script src="js/plugins/flot/jquery.flot.pie.js"></script> | 50 | <script src="js/plugins/flot/jquery.flot.pie.js"></script> |
51 | <script src="js/plugins/flot/jquery.flot.resize.js"></script> | 51 | <script src="js/plugins/flot/jquery.flot.resize.js"></script> |
52 | <script src="js/plugins/flot/jquery.flot.orderBars.js"></script>--> | 52 | <script src="js/plugins/flot/jquery.flot.orderBars.js"></script>--> |
53 | <script src="js/plugins/hoverIntent/jquery.hoverIntent.minified.js"></script> | 53 | <script src="js/plugins/hoverIntent/jquery.hoverIntent.minified.js"></script> |
54 | <script src="js/plugins/lightbox/jquery.lightbox.min.js"></script> | 54 | <script src="js/plugins/lightbox/jquery.lightbox.min.js"></script> |
55 | <script src="js/plugins/validate/jquery.validate.js"></script> | 55 | <script src="js/plugins/validate/jquery.validate.js"></script> |
56 | <script src="js/plugins/msgbox/jquery.msgbox.min.js"></script> | 56 | <script src="js/plugins/msgbox/jquery.msgbox.min.js"></script> |
57 | 57 | ||
58 | <script src="bower_components/angular/angular.min.js"></script> | 58 | <script src="bower_components/angular/angular.min.js"></script> |
59 | <script src="bower_components/angular-route/angular-route.js"></script> | 59 | <script src="bower_components/angular-route/angular-route.js"></script> |
60 | <script src="bower_components/angular-cookies/angular-cookies.min.js"></script> | 60 | <script src="bower_components/angular-cookies/angular-cookies.min.js"></script> |
61 | <script src="bower_components/angular-resource/angular-resource.min.js"></script> | 61 | <script src="bower_components/angular-resource/angular-resource.min.js"></script> |
62 | <script src="bower_components/angular-animate/angular-animate.js"></script> | 62 | <script src="bower_components/angular-animate/angular-animate.js"></script> |
63 | <script src="bower_components/bootstrap/dist/js/bootstrap.js"></script> | 63 | <script src="bower_components/bootstrap/dist/js/bootstrap.js"></script> |
64 | <script src="bower_components/bootstrap-toggle/js/bootstrap-toggle.min.js"></script> | 64 | <script src="bower_components/bootstrap-toggle/js/bootstrap-toggle.min.js"></script> |
65 | <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script> | 65 | <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script> |
66 | <script src='bower_components/moment/min/moment.min.js'></script> | 66 | <script src='bower_components/moment/min/moment.min.js'></script> |
67 | <script src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script> | 67 | <script src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script> |
68 | <script src='bower_components/toastr/toastr.min.js'></script> | 68 | <script src='bower_components/toastr/toastr.min.js'></script> |
69 | <script src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script> | 69 | <script src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script> |
70 | <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> | 70 | <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> |
71 | <script src="bower_components/jqGrid/js/i18n/grid.locale-en.js"></script> | 71 | <script src="bower_components/jqGrid/js/i18n/grid.locale-en.js"></script> |
72 | <script src="bower_components/jqGrid/js/jquery.jqGrid.min.js"></script> | 72 | <script src="bower_components/jqGrid/js/jquery.jqGrid.min.js"></script> |
73 | <script src="bower_components/angular-xeditable/dist/js/xeditable.js"></script> | 73 | <script src="bower_components/angular-xeditable/dist/js/xeditable.js"></script> |
74 | 74 | ||
75 | 75 | ||
76 | <!-- | 76 | <!-- |
77 | <script src="scripts/inspinia.js"></script> | 77 | <script src="scripts/inspinia.js"></script> |
78 | <script src="plugins/iCheck/icheck.min.js"></script> | 78 | <script src="plugins/iCheck/icheck.min.js"></script> |
79 | --> | 79 | --> |
80 | 80 | ||
81 | <!-- <script src="./js/Application.js"></script> | 81 | <!-- <script src="./js/Application.js"></script> |
82 | <script src="js/charts/area.js"></script> | 82 | <script src="js/charts/area.js"></script> |
83 | <script src="js/charts/donut.js"></script> | 83 | <script src="js/charts/donut.js"></script> |
84 | <script src="js/charts/pie.js"></script> | 84 | <script src="js/charts/pie.js"></script> |
85 | <script src="js/charts/bar.js"></script> | 85 | <script src="js/charts/bar.js"></script> |
86 | <script src="js/demo/validation.js"></script> | 86 | <script src="js/demo/validation.js"></script> |
87 | <script src="js/charts/line.js"></script> --> | 87 | <script src="js/charts/line.js"></script> --> |
88 | <script src="js/demo/faq.js"></script> | 88 | <script src="js/demo/faq.js"></script> |
89 | <script src="js/plugins/faq/faq.js"></script> | 89 | <script src="js/plugins/faq/faq.js"></script> |
90 | <script src="js/demo/gallery.js"></script> | 90 | <script src="js/demo/gallery.js"></script> |
91 | <script src="js/demo/sliders.js"></script> | 91 | <script src="js/demo/sliders.js"></script> |
92 | <script src="js/plugins/msgGrowl/js/msgGrowl.js"></script> | 92 | <script src="js/plugins/msgGrowl/js/msgGrowl.js"></script> |
93 | <script src="js/demo/notifications.js"></script> | 93 | <script src="js/demo/notifications.js"></script> |
94 | <script src="http://cdn.ckeditor.com/4.6.1/standard-all/ckeditor.js"></script> | 94 | <script src="http://cdn.ckeditor.com/4.6.1/standard-all/ckeditor.js"></script> |
95 | <script src="https://code.highcharts.com/maps/highmaps.js"></script> | 95 | <script src="https://code.highcharts.com/maps/highmaps.js"></script> |
96 | <script src="https://code.highcharts.com/maps/modules/data.js"></script> | 96 | <script src="https://code.highcharts.com/maps/modules/data.js"></script> |
97 | <script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script> | 97 | <script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script> |
98 | <!-- Controllers --> | 98 | <!-- Controllers --> |
99 | <script src="js/app.js"></script> | 99 | <script src="js/app.js"></script> |
100 | <script src="js/app.constant.js"></script> | 100 | <script src="js/app.constant.js"></script> |
101 | <script src="partials/login/login.controller.js"></script> | 101 | <script src="partials/login/login.controller.js"></script> |
102 | <script src="partials/customers/customers.controller.js"></script> | 102 | <script src="partials/customers/customers.controller.js"></script> |
103 | <script src="partials/analytics/analytics.controller.js"></script> | 103 | <script src="partials/analytics/analytics.controller.js"></script> |
104 | <script src="partials/account/account.controller.js"></script> | 104 | <script src="partials/account/account.controller.js"></script> |
105 | <script src="partials/elements/elements.controller.js"></script> | 105 | <script src="partials/elements/elements.controller.js"></script> |
106 | <script src="partials/error/error.controller.js"></script> | 106 | <script src="partials/error/error.controller.js"></script> |
107 | <script src="partials/faq/faq.controller.js"></script> | 107 | <script src="partials/faq/faq.controller.js"></script> |
108 | <script src="partials/forms/forms.controller.js"></script> | 108 | <script src="partials/forms/forms.controller.js"></script> |
109 | <script src="partials/fuelManager/fuelManager.controller.js"></script> | 109 | <script src="partials/fuelManager/fuelManager.controller.js"></script> |
110 | <script src="partials/pricing/pricing.controller.js"></script> | 110 | <script src="partials/pricing/pricing.controller.js"></script> |
111 | <script src="partials/reports/reports.controller.js"></script> | 111 | <script src="partials/reports/reports.controller.js"></script> |
112 | <script src="partials/scheduler/scheduler.controller.js"></script> | 112 | <script src="partials/scheduler/scheduler.controller.js"></script> |
113 | <script src="partials/signup/signup.controller.js"></script> | 113 | <script src="partials/signup/signup.controller.js"></script> |
114 | <script src="partials/updateFuelManager/updateFuelManager.controller.js"></script> | 114 | <script src="partials/updateFuelManager/updateFuelManager.controller.js"></script> |
115 | <script src="partials/viewCompany/viewCompany.controller.js"></script> | 115 | <script src="partials/viewCompany/viewCompany.controller.js"></script> |
116 | <script src="partials/dashboard/dashboard.controller.js"></script> | 116 | <script src="partials/dashboard/dashboard.controller.js"></script> |
117 | <script src="partials/AirList/AirList.controller.js"></script> | ||
118 | <script src="partials/fuelOrders/fuelOrders.controller.js"></script> | 117 | <script src="partials/fuelOrders/fuelOrders.controller.js"></script> |
119 | <script src="partials/DispatchFuel/DispatchFuel.controller.js"></script> | 118 | <script src="partials/DispatchFuel/DispatchFuel.controller.js"></script> |
120 | <script src="partials/searchDispatchFuel/searchDispatchFuel.controller.js"></script> | 119 | <script src="partials/searchDispatchFuel/searchDispatchFuel.controller.js"></script> |
121 | <script src="partials/Accept/Accept.controller.js"></script> | 120 | <script src="partials/Accept/Accept.controller.js"></script> |
122 | <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> --> | 121 | <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> --> |
123 | <script src="partials/ContactView/ContactView.controller.js"></script> | 122 | <script src="partials/ContactView/ContactView.controller.js"></script> |
124 | <script src="partials/FuelVendors/FuelVendors.controller.js"></script> | 123 | <script src="partials/FuelVendors/FuelVendors.controller.js"></script> |
125 | <script src="partials/delselected/delselected.controller.js"></script> | 124 | <script src="partials/delselected/delselected.controller.js"></script> |
126 | <script src="partials/pricingcontact/pricingcontact.controller.js"></script> | 125 | <script src="partials/pricingcontact/pricingcontact.controller.js"></script> |
127 | <script src="partials/AntiochFlightDepartment/AntiochFlightDepartment.controller.js"></script> | 126 | <script src="partials/viewcontact/viewcontact.controller.js"></script> |
128 | 127 | ||
129 | <script src="partials/main/main.controller.js"></script> | 128 | <script src="partials/main/main.controller.js"></script> |
130 | <div ui-view></div> | 129 | <div ui-view></div> |
131 | <!-- End controllers --> | 130 | <!-- End controllers --> |
132 | 131 | ||
133 | 132 | ||
134 | <!-- services --> | 133 | <!-- services --> |
135 | <script src="partials/login/login.service.js"></script> | 134 | <script src="partials/login/login.service.js"></script> |
136 | <script src="partials/customers/customers.service.js"></script> | 135 | <script src="partials/customers/customers.service.js"></script> |
137 | <script src="partials/analytics/analytics.service.js"></script> | 136 | <script src="partials/analytics/analytics.service.js"></script> |
138 | <script src="partials/account/account.service.js"></script> | 137 | <script src="partials/account/account.service.js"></script> |
139 | <script src="partials/elements/elements.service.js"></script> | 138 | <script src="partials/elements/elements.service.js"></script> |
140 | <script src="partials/error/error.service.js"></script> | 139 | <script src="partials/error/error.service.js"></script> |
141 | <script src="partials/faq/faq.service.js"></script> | 140 | <script src="partials/faq/faq.service.js"></script> |
142 | <script src="partials/forms/forms.service.js"></script> | 141 | <script src="partials/forms/forms.service.js"></script> |
143 | <script src="partials/fuelManager/fuelManager.service.js"></script> | 142 | <script src="partials/fuelManager/fuelManager.service.js"></script> |
144 | <script src="partials/pricing/pricing.service.js"></script> | 143 | <script src="partials/pricing/pricing.service.js"></script> |
145 | <script src="partials/reports/reports.service.js"></script> | 144 | <script src="partials/reports/reports.service.js"></script> |
146 | <script src="partials/scheduler/scheduler.service.js"></script> | 145 | <script src="partials/scheduler/scheduler.service.js"></script> |
147 | <script src="partials/signup/signup.service.js"></script> | 146 | <script src="partials/signup/signup.service.js"></script> |
148 | <script src="partials/updateFuelManager/updateFuelManager.service.js"></script> | 147 | <script src="partials/updateFuelManager/updateFuelManager.service.js"></script> |
149 | <script src="partials/viewCompany/viewCompany.service.js"></script> | 148 | <script src="partials/viewCompany/viewCompany.service.js"></script> |
150 | <script src="partials/dashboard/dashboard.service.js"></script> | 149 | <script src="partials/dashboard/dashboard.service.js"></script> |
151 | <script src="partials/AirList/AirList.service.js"></script> | ||
152 | <script src="partials/fuelOrders/fuelOrders.service.js"></script> | 150 | <script src="partials/fuelOrders/fuelOrders.service.js"></script> |
153 | <script src="partials/DispatchFuel/DispatchFuel.service.js"></script> | 151 | <script src="partials/DispatchFuel/DispatchFuel.service.js"></script> |
154 | <script src="partials/searchDispatchFuel/searchDispatchFuel.service.js"></script> | 152 | <script src="partials/searchDispatchFuel/searchDispatchFuel.service.js"></script> |
155 | <script src="partials/Accept/Accept.service.js"></script> | 153 | <script src="partials/Accept/Accept.service.js"></script> |
156 | <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> --> | 154 | <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> --> |
157 | <script src="partials/ContactView/ContactView.service.js"></script> | 155 | <script src="partials/ContactView/ContactView.service.js"></script> |
158 | <script src="partials/FuelVendors/FuelVendors.service.js"></script> | 156 | <script src="partials/FuelVendors/FuelVendors.service.js"></script> |
159 | <script src="partials/delselected/delselected.service.js"></script> | 157 | <script src="partials/delselected/delselected.service.js"></script> |
160 | <script src="partials/pricingcontact/pricingcontact.service.js"></script> | 158 | <script src="partials/pricingcontact/pricingcontact.service.js"></script> |
161 | <script src="partials/AntiochFlightDepartment/AntiochFlightDepartment.service.js"></script> | 159 | <script src="partials/viewcontact/viewcontact.service.js"></script> |
162 | 160 | ||
163 | <script src="partials/main/main.service.js"></script> | 161 | <script src="partials/main/main.service.js"></script> |
164 | </body> | 162 | </body> |
165 | </html> | 163 | </html> |
app/js/app.js
1 | 'use strict'; | 1 | 'use strict'; |
2 | 2 | ||
3 | 3 | ||
4 | angular.module('acufuel', ['ngCookies', 'ngResource', 'ui.router', 'ngAnimate', 'ui.bootstrap', 'xeditable']) | 4 | angular.module('acufuel', ['ngCookies', 'ngResource', 'ui.router', 'ngAnimate', 'ui.bootstrap', 'xeditable']) |
5 | 5 | ||
6 | .config(['$httpProvider', function($httpProvider) { | 6 | .config(['$httpProvider', function($httpProvider) { |
7 | $httpProvider.defaults.withCredentials = true; | 7 | $httpProvider.defaults.withCredentials = true; |
8 | $httpProvider.interceptors.push('myCSRF'); | 8 | $httpProvider.interceptors.push('myCSRF'); |
9 | $httpProvider.interceptors.push('httpRequestInterceptor'); | 9 | $httpProvider.interceptors.push('httpRequestInterceptor'); |
10 | }]) | 10 | }]) |
11 | 11 | ||
12 | 12 | ||
13 | .factory('httpRequestInterceptor', ['$q', '$rootScope', '$location', function($q, $rootScope, $location) { | 13 | .factory('httpRequestInterceptor', ['$q', '$rootScope', '$location', function($q, $rootScope, $location) { |
14 | return { | 14 | return { |
15 | request: function($config) { | 15 | request: function($config) { |
16 | return $config; | 16 | return $config; |
17 | }, | 17 | }, |
18 | responseError: function(rejection) { | 18 | responseError: function(rejection) { |
19 | if (rejection.status === 401) { | 19 | if (rejection.status === 401) { |
20 | if($location.path() != "/login"){ | 20 | if($location.path() != "/login"){ |
21 | localStorage.clear(); | 21 | localStorage.clear(); |
22 | window.location.reload(); | 22 | window.location.reload(); |
23 | } | 23 | } |
24 | } | 24 | } |
25 | return $q.reject(rejection); | 25 | return $q.reject(rejection); |
26 | } | 26 | } |
27 | } | 27 | } |
28 | }]) | 28 | }]) |
29 | 29 | ||
30 | .provider('myCSRF',[function(){ | 30 | .provider('myCSRF',[function(){ |
31 | var headerName = 'X-CSRFToken'; | 31 | var headerName = 'X-CSRFToken'; |
32 | var cookieName = 'csrftoken'; | 32 | var cookieName = 'csrftoken'; |
33 | var allowedMethods = ['GET']; | 33 | var allowedMethods = ['GET']; |
34 | 34 | ||
35 | this.setHeaderName = function(n) { | 35 | this.setHeaderName = function(n) { |
36 | headerName = n; | 36 | headerName = n; |
37 | } | 37 | } |
38 | this.setCookieName = function(n) { | 38 | this.setCookieName = function(n) { |
39 | cookieName = n; | 39 | cookieName = n; |
40 | } | 40 | } |
41 | this.setAllowedMethods = function(n) { | 41 | this.setAllowedMethods = function(n) { |
42 | allowedMethods = n; | 42 | allowedMethods = n; |
43 | } | 43 | } |
44 | this.$get = ['$cookies', function($cookies){ | 44 | this.$get = ['$cookies', function($cookies){ |
45 | return { | 45 | return { |
46 | 'request': function(config) { | 46 | 'request': function(config) { |
47 | if(allowedMethods.indexOf(config.method) === -1) { | 47 | if(allowedMethods.indexOf(config.method) === -1) { |
48 | // do something on success | 48 | // do something on success |
49 | config.headers[headerName] = $cookies[cookieName]; | 49 | config.headers[headerName] = $cookies[cookieName]; |
50 | } | 50 | } |
51 | return config; | 51 | return config; |
52 | } | 52 | } |
53 | } | 53 | } |
54 | }]; | 54 | }]; |
55 | }]) | 55 | }]) |
56 | 56 | ||
57 | .config( | 57 | .config( |
58 | ['$locationProvider', '$stateProvider', '$urlRouterProvider', | 58 | ['$locationProvider', '$stateProvider', '$urlRouterProvider', |
59 | function($locationProvider, $stateProvider, $urlRouterProvider) { | 59 | function($locationProvider, $stateProvider, $urlRouterProvider) { |
60 | $locationProvider.hashPrefix('!'); | 60 | $locationProvider.hashPrefix('!'); |
61 | // routes | 61 | // routes |
62 | $urlRouterProvider | 62 | $urlRouterProvider |
63 | .otherwise('/login'); | 63 | .otherwise('/login'); |
64 | 64 | ||
65 | $stateProvider | 65 | $stateProvider |
66 | 66 | ||
67 | .state("app", { | 67 | .state("app", { |
68 | url: "", | 68 | url: "", |
69 | templateUrl: "partials/main/main.html", | 69 | templateUrl: "partials/main/main.html", |
70 | controller: "MainController", | 70 | controller: "MainController", |
71 | abstract: true | 71 | abstract: true |
72 | }) | 72 | }) |
73 | 73 | ||
74 | .state("login", { | 74 | .state("login", { |
75 | url: "/login", | 75 | url: "/login", |
76 | templateUrl: "partials/login/login.html", | 76 | templateUrl: "partials/login/login.html", |
77 | controller: "LoginController" | 77 | controller: "LoginController" |
78 | }) | 78 | }) |
79 | 79 | ||
80 | .state("app.customers", { | 80 | .state("app.customers", { |
81 | url: "/customers", | 81 | url: "/customers", |
82 | templateUrl: "partials/customers/customers.html", | 82 | templateUrl: "partials/customers/customers.html", |
83 | controller: "customersController" | 83 | controller: "customersController" |
84 | }) | 84 | }) |
85 | .state("app.ContactView", { | 85 | .state("app.ContactView", { |
86 | url: "/ContactView", | 86 | url: "/ContactView", |
87 | templateUrl: "partials/ContactView/ContactView.html", | 87 | templateUrl: "partials/ContactView/ContactView.html", |
88 | controller: "ContactViewController" | 88 | controller: "ContactViewController" |
89 | }) | 89 | }) |
90 | .state("app.FuelVendors", { | 90 | .state("app.FuelVendors", { |
91 | url: "/FuelVendors", | 91 | url: "/FuelVendors", |
92 | templateUrl: "partials/FuelVendors/FuelVendors.html", | 92 | templateUrl: "partials/FuelVendors/FuelVendors.html", |
93 | controller: "FuelVendorsController" | 93 | controller: "FuelVendorsController" |
94 | }) | 94 | }) |
95 | 95 | ||
96 | .state("app.analytics", { | 96 | .state("app.analytics", { |
97 | url: "/analytics", | 97 | url: "/analytics", |
98 | templateUrl: "partials/analytics/analytics.html", | 98 | templateUrl: "partials/analytics/analytics.html", |
99 | controller: "analyticsController" | 99 | controller: "analyticsController" |
100 | }) | 100 | }) |
101 | 101 | ||
102 | .state("app.account", { | 102 | .state("app.account", { |
103 | url: "/account", | 103 | url: "/account", |
104 | templateUrl: "partials/account/account.html", | 104 | templateUrl: "partials/account/account.html", |
105 | controller: "accountController" | 105 | controller: "accountController" |
106 | }) | 106 | }) |
107 | 107 | ||
108 | .state("app.dashboard", { | 108 | .state("app.dashboard", { |
109 | url: "/dashboard", | 109 | url: "/dashboard", |
110 | templateUrl: "partials/dashboard/dashboard.html", | 110 | templateUrl: "partials/dashboard/dashboard.html", |
111 | controller: "dashboardController" | 111 | controller: "dashboardController" |
112 | }) | 112 | }) |
113 | 113 | ||
114 | .state("app.AirList", { | ||
115 | url: "/AirList", | ||
116 | templateUrl: "partials/AirList/AirList.html", | ||
117 | controller: "AirListController" | ||
118 | }) | ||
119 | |||
120 | .state("app.elements", { | 114 | .state("app.elements", { |
121 | url: "/elements", | 115 | url: "/elements", |
122 | templateUrl: "partials/elements/elements.html", | 116 | templateUrl: "partials/elements/elements.html", |
123 | controller: "elementsController" | 117 | controller: "elementsController" |
124 | }) | 118 | }) |
125 | 119 | ||
126 | .state("app.charts", { | 120 | .state("app.charts", { |
127 | url: "/charts", | 121 | url: "/charts", |
128 | templateUrl: "partials/charts/charts.html", | 122 | templateUrl: "partials/charts/charts.html", |
129 | controller: "chartsController" | 123 | controller: "chartsController" |
130 | }) | 124 | }) |
131 | 125 | ||
132 | 126 | ||
133 | .state("app.error", { | 127 | .state("app.error", { |
134 | url: "/error", | 128 | url: "/error", |
135 | templateUrl: "partials/error/error.html", | 129 | templateUrl: "partials/error/error.html", |
136 | controller: "errorController" | 130 | controller: "errorController" |
137 | }) | 131 | }) |
138 | 132 | ||
139 | .state("app.faq", { | 133 | .state("app.faq", { |
140 | url: "/faq", | 134 | url: "/faq", |
141 | templateUrl: "partials/faq/faq.html", | 135 | templateUrl: "partials/faq/faq.html", |
142 | controller: "faqController" | 136 | controller: "faqController" |
143 | }) | 137 | }) |
144 | 138 | ||
145 | .state("app.forms", { | 139 | .state("app.forms", { |
146 | url: "/forms", | 140 | url: "/forms", |
147 | templateUrl: "partials/forms/forms.html", | 141 | templateUrl: "partials/forms/forms.html", |
148 | controller: "formsController" | 142 | controller: "formsController" |
149 | }) | 143 | }) |
150 | 144 | ||
151 | .state("app.fuelManager", { | 145 | .state("app.fuelManager", { |
152 | url: "/fuelManager", | 146 | url: "/fuelManager", |
153 | templateUrl: "partials/fuelManager/fuelManager.html", | 147 | templateUrl: "partials/fuelManager/fuelManager.html", |
154 | controller: "fuelManagerController" | 148 | controller: "fuelManagerController" |
155 | }) | 149 | }) |
156 | 150 | ||
157 | .state("app.pricing", { | 151 | .state("app.pricing", { |
158 | url: "/pricing", | 152 | url: "/pricing", |
159 | templateUrl: "partials/pricing/pricing.html", | 153 | templateUrl: "partials/pricing/pricing.html", |
160 | controller: "pricingController" | 154 | controller: "pricingController" |
161 | }) | 155 | }) |
162 | 156 | ||
163 | .state("app.reports", { | 157 | .state("app.reports", { |
164 | url: "/reports", | 158 | url: "/reports", |
165 | templateUrl: "partials/reports/reports.html", | 159 | templateUrl: "partials/reports/reports.html", |
166 | controller: "reportsController" | 160 | controller: "reportsController" |
167 | }) | 161 | }) |
168 | 162 | ||
169 | .state("app.scheduler", { | 163 | .state("app.scheduler", { |
170 | url: "/scheduler", | 164 | url: "/scheduler", |
171 | templateUrl: "partials/scheduler/scheduler.html", | 165 | templateUrl: "partials/scheduler/scheduler.html", |
172 | controller: "schedulerController" | 166 | controller: "schedulerController" |
173 | }) | 167 | }) |
174 | .state("app.signup", { | 168 | .state("app.signup", { |
175 | url: "/signup", | 169 | url: "/signup", |
176 | templateUrl: "partials/signup/signup.html", | 170 | templateUrl: "partials/signup/signup.html", |
177 | controller: "signupController" | 171 | controller: "signupController" |
178 | }) | 172 | }) |
179 | 173 | ||
180 | .state("app.updateFuelManager", { | 174 | .state("app.updateFuelManager", { |
181 | url: "/updateFuelManager", | 175 | url: "/updateFuelManager", |
182 | templateUrl: "partials/updateFuelManager/updateFuelManager.html", | 176 | templateUrl: "partials/updateFuelManager/updateFuelManager.html", |
183 | controller: "updateFuelManagerController", | 177 | controller: "updateFuelManagerController", |
184 | // data: { | 178 | // data: { |
185 | // authorizedRoles: ["fbo"], | 179 | // authorizedRoles: ["fbo"], |
186 | // } | 180 | // } |
187 | }) | 181 | }) |
188 | 182 | ||
189 | .state("app.viewCompany", { | 183 | .state("app.viewCompany", { |
190 | url: "/viewCompany/:id", | 184 | url: "/viewCompany/:id", |
191 | templateUrl: "partials/viewCompany/viewCompany.html", | 185 | templateUrl: "partials/viewCompany/viewCompany.html", |
192 | controller: "viewCompanyController" | 186 | controller: "viewCompanyController" |
193 | }) | 187 | }) |
194 | 188 | ||
195 | .state("app.fuelOrders", { | 189 | .state("app.fuelOrders", { |
196 | url: "/fuelOrders", | 190 | url: "/fuelOrders", |
197 | templateUrl: "partials/fuelOrders/fuelOrders.html", | 191 | templateUrl: "partials/fuelOrders/fuelOrders.html", |
198 | controller: "fuelOrdersController" | 192 | controller: "fuelOrdersController" |
199 | }) | 193 | }) |
200 | 194 | ||
201 | .state("app.DispatchFuel", { | 195 | .state("app.DispatchFuel", { |
202 | url: "/DispatchFuel", | 196 | url: "/DispatchFuel", |
203 | templateUrl: "partials/DispatchFuel/DispatchFuel.html", | 197 | templateUrl: "partials/DispatchFuel/DispatchFuel.html", |
204 | controller: "DispatchFuelController" | 198 | controller: "DispatchFuelController" |
205 | }) | 199 | }) |
206 | 200 | ||
207 | .state("app.searchDispatchFuel", { | 201 | .state("app.searchDispatchFuel", { |
208 | url: "/searchDispatchFuel", | 202 | url: "/searchDispatchFuel", |
209 | templateUrl: "partials/searchDispatchFuel/searchDispatchFuel.html", | 203 | templateUrl: "partials/searchDispatchFuel/searchDispatchFuel.html", |
210 | controller: "searchDispatchFuelController" | 204 | controller: "searchDispatchFuelController" |
211 | }) | 205 | }) |
212 | 206 | ||
213 | .state("app.Accept", { | 207 | .state("app.Accept", { |
214 | url: "/Accept", | 208 | url: "/Accept", |
215 | templateUrl: "partials/Accept/Accept.html", | 209 | templateUrl: "partials/Accept/Accept.html", |
216 | controller: "AcceptController" | 210 | controller: "AcceptController" |
217 | }) | 211 | }) |
218 | .state("app.delselected", { | 212 | .state("app.delselected", { |
219 | url: "/delselected", | 213 | url: "/delselected", |
220 | templateUrl: "partials/delselected/delselected.html", | 214 | templateUrl: "partials/delselected/delselected.html", |
221 | controller: "delselectedController" | 215 | controller: "delselectedController" |
222 | }) | 216 | }) |
223 | 217 | ||
224 | .state("app.pricingcontact", { | 218 | .state("app.pricingcontact", { |
225 | url: "/pricingcontact", | 219 | url: "/pricingcontact", |
226 | templateUrl: "partials/pricingcontact/pricingcontact.html", | 220 | templateUrl: "partials/pricingcontact/pricingcontact.html", |
227 | controller: "pricingcontactController" | 221 | controller: "pricingcontactController" |
228 | }) | 222 | }) |
229 | 223 | ||
230 | .state("app.AntiochFlightDepartment", { | 224 | .state("app.viewContact", { |
231 | url: "/AntiochFlightDepartment", | 225 | url: "/viewContact/:id", |
232 | templateUrl: "partials/AntiochFlightDepartment/AntiochFlightDepartment.html", | 226 | templateUrl: "partials/viewcontact/viewcontact.html", |
233 | controller: "AntiochFlightDepartmentcontroller" | 227 | controller: "viewcontactController" |
234 | }) | 228 | }) |
235 | } | 229 | } |
236 | ]) | 230 | ]) |
237 | 231 | ||
238 | .run(['$rootScope', '$state', 'LoginService', 'AUTH_EVENTS', function($rootScope, $state, LoginService, AUTH_EVENTS) { | 232 | .run(['$rootScope', '$state', 'LoginService', 'AUTH_EVENTS', function($rootScope, $state, LoginService, AUTH_EVENTS) { |
239 | $rootScope.$on('$stateChangeStart', function (event, next, nextParams, fromState) { | 233 | $rootScope.$on('$stateChangeStart', function (event, next, nextParams, fromState) { |
240 | $rootScope.currentUser = JSON.parse(window.localStorage.getItem('currentUser')); | 234 | $rootScope.currentUser = JSON.parse(window.localStorage.getItem('currentUser')); |
241 | 235 | ||
242 | LoginService.isAuthorized = function (authorizedRoles) { | 236 | LoginService.isAuthorized = function (authorizedRoles) { |
243 | if (!angular.isArray(authorizedRoles)) { | 237 | if (!angular.isArray(authorizedRoles)) { |
244 | authorizedRoles = [authorizedRoles]; | 238 | authorizedRoles = [authorizedRoles]; |
245 | } | 239 | } |
246 | var userdata = JSON.parse(window.localStorage.getItem('currentUser')); | 240 | var userdata = JSON.parse(window.localStorage.getItem('currentUser')); |
247 | return (userdata? (authorizedRoles.indexOf(userdata.type) !== -1): false); | 241 | return (userdata? (authorizedRoles.indexOf(userdata.type) !== -1): false); |
248 | } | 242 | } |
249 | 243 | ||
250 | if ('data' in next && 'authorizedRoles' in next.data) { | 244 | if ('data' in next && 'authorizedRoles' in next.data) { |
251 | var authorizedRoles = next.data.authorizedRoles; | 245 | var authorizedRoles = next.data.authorizedRoles; |
252 | if (!LoginService.isAuthorized(authorizedRoles)) { | 246 | if (!LoginService.isAuthorized(authorizedRoles)) { |
253 | event.preventDefault(); | 247 | event.preventDefault(); |
254 | if($state.current.name.length == 0) { | 248 | if($state.current.name.length == 0) { |
255 | $state.go('login') | 249 | $state.go('login') |
256 | } else { | 250 | } else { |
257 | $state.go($state.current, {}, {reload: true}); | 251 | $state.go($state.current, {}, {reload: true}); |
258 | $rootScope.$broadcast(AUTH_EVENTS.notAuthorized); | 252 | $rootScope.$broadcast(AUTH_EVENTS.notAuthorized); |
259 | } | 253 | } |
260 | } | 254 | } |
261 | } | 255 | } |
262 | 256 | ||
263 | if (LoginService.isAuthenticated()) { | 257 | if (LoginService.isAuthenticated()) { |
264 | if (next.name == 'login') { | 258 | if (next.name == 'login') { |
265 | event.preventDefault(); | 259 | event.preventDefault(); |
266 | $state.go('app.dashboard'); | 260 | $state.go('app.dashboard'); |
267 | } | 261 | } |
268 | } | 262 | } |
269 | }); | 263 | }); |
270 | }]) | 264 | }]) |
271 | 265 | ||
272 | 266 | ||
273 | 267 | ||
274 | 268 |
app/partials/AirList/AirList.controller.js
1 | 'use strict'; | File was deleted | |
2 | |||
3 | //Load controller | ||
4 | angular.module('acufuel') | ||
5 | |||
6 | .controller('AirListController', ['$scope',function($scope) { | ||
7 | |||
8 | $scope.test = "Testing..."; | ||
9 | |||
10 | }]); |
app/partials/AirList/AirList.html
1 | <div class="container"> | File was deleted | |
2 | <div class="row"> | ||
3 | <div class="col-md-7" style="padding-right: 60px;"> | ||
4 | <div class="widget"> | ||
5 | <div class="widget-header"> | ||
6 | <i class="icon-pencil"></i> | ||
7 | <i class="fa fa-tasks" aria-hidden="true"></i> | ||
8 | <h3>Add a New Company</h3> | ||
9 | </div> | ||
10 | <div class="widget-content" style="padding-left: 0; padding-right: 0;"> | ||
11 | <div class="container"> | ||
12 | <div class="row"> | ||
13 | <div class="col-md-6" style="margin-left: 20px;"> | ||
14 | <div class="widget-header"> | ||
15 | <i class="fa fa-plane"></i> | ||
16 | <h3>Aircraft List</h3> | ||
17 | </div> | ||
18 | <div class="widget-content" style="padding:0px"> | ||
19 | <div class="table-responsive"> | ||
20 | <table class="table table-bordered table-hover table-striped"> | ||
21 | <thead> | ||
22 | <tr> | ||
23 | <th>Tail</th> | ||
24 | <th>Make</th> | ||
25 | <th>Model</th> | ||
26 | <th>Size</th> | ||
27 | <th>Margin</th> | ||
28 | </tr> | ||
29 | </thead> | ||
30 | <tbody> | ||
31 | <tr> | ||
32 | <td> | ||
33 | <input type="text" style="width:100px;" class="form-control"> | ||
34 | </td> | ||
35 | <td> | ||
36 | <select class="form-control" style="height:31px;"> | ||
37 | <option>Margin1</option> | ||
38 | <option>Margin2</option> | ||
39 | </select> | ||
40 | </td> | ||
41 | <td> | ||
42 | <select class="form-control" style="height:31px;"> | ||
43 | <option>Margin1</option> | ||
44 | <option>Margin2</option> | ||
45 | </select> | ||
46 | </td> | ||
47 | <td> | ||
48 | <select class="form-control" style="height:31px;"> | ||
49 | <option>Margin1</option> | ||
50 | <option>Margin2</option> | ||
51 | </select> | ||
52 | </td> | ||
53 | <td> | ||
54 | <select class="form-control" style="height:31px;"> | ||
55 | <option>Margin1</option> | ||
56 | <option>Margin2</option> | ||
57 | </select> | ||
58 | </td> | ||
59 | </tr> | ||
60 | <tr> | ||
61 | <td> | ||
62 | <input type="text" style="width:100px;" class="form-control"> | ||
63 | </td> | ||
64 | <td> | ||
65 | <select class="form-control" style="height:31px;"> | ||
66 | <option>Margin1</option> | ||
67 | <option>Margin2</option> | ||
68 | </select> | ||
69 | </td> | ||
70 | <td> | ||
71 | <select class="form-control" style="height:31px;"> | ||
72 | <option>Margin1</option> | ||
73 | <option>Margin2</option> | ||
74 | </select> | ||
75 | </td> | ||
76 | <td> | ||
77 | <select class="form-control" style="height:31px;"> | ||
78 | <option>Margin1</option> | ||
79 | <option>Margin2</option> | ||
80 | </select> | ||
81 | </td> | ||
82 | <td> | ||
83 | <select class="form-control" style="height:31px;"> | ||
84 | <option>Margin1</option> | ||
85 | <option>Margin2</option> | ||
86 | </select> | ||
87 | </td> | ||
88 | </tr> | ||
89 | <tr> | ||
90 | <td> | ||
91 | <input type="text" style="width:100px;" class="form-control"> | ||
92 | </td> | ||
93 | <td> | ||
94 | <select class="form-control" style="height:31px;"> | ||
95 | <option>Margin1</option> | ||
96 | <option>Margin2</option> | ||
97 | </select> | ||
98 | </td> | ||
99 | <td> | ||
100 | <select class="form-control" style="height:31px;"> | ||
101 | <option>Margin1</option> | ||
102 | <option>Margin2</option> | ||
103 | </select> | ||
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 | </tr> | ||
118 | <tr> | ||
119 | <td> | ||
120 | <input type="text" style="width:100px;" class="form-control"> | ||
121 | </td> | ||
122 | <td> | ||
123 | <select class="form-control" style="height:31px;"> | ||
124 | <option>Margin1</option> | ||
125 | <option>Margin2</option> | ||
126 | </select> | ||
127 | </td> | ||
128 | <td> | ||
129 | <select class="form-control" style="height:31px;"> | ||
130 | <option>Margin1</option> | ||
131 | <option>Margin2</option> | ||
132 | </select> | ||
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 | </tr> | ||
147 | <tr> | ||
148 | <td> | ||
149 | <input type="text" style="width:100px;" class="form-control"> | ||
150 | </td> | ||
151 | <td> | ||
152 | <select class="form-control" style="height:31px;"> | ||
153 | <option>Margin1</option> | ||
154 | <option>Margin2</option> | ||
155 | </select> | ||
156 | </td> | ||
157 | <td> | ||
158 | <select class="form-control" style="height:31px;"> | ||
159 | <option>Margin1</option> | ||
160 | <option>Margin2</option> | ||
161 | </select> | ||
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 | </tr> | ||
176 | </tbody> | ||
177 | </table> | ||
178 | </div> | ||
179 | <div class="clearfix"></div> | ||
180 | </div> | ||
181 | <div class="col-xs-12" style=" padding: 15px; text-align: right;"> | ||
182 | <button type="button" class="btn btn-default">Cancel</button> | ||
183 | <button type="button" class="btn btn-warning">Go Back</button> | ||
184 | <button type="button" class="btn btn-success">Save</button> | ||
185 | <!-- <button type="button" class="btn btn-default" style="padding: 3px 12px; border-radius: 0;">Cancel</button> --> | ||
186 | </div> | ||
187 | |||
188 | </div> | ||
189 | </div> | ||
190 | </div> | ||
191 | </div> | ||
192 | </div> | ||
193 | </div> | ||
194 | </div> | ||
195 | </div> |
app/partials/AirList/AirList.service.js
1 | (function(){ | File was deleted | |
2 | 'use strict'; | ||
3 | angular.module('acufuel') | ||
4 | .service('AirListService', ['$q', '$http', 'BE', AirListService]); | ||
5 | |||
6 | function AirListService($q, $http, BE) { | ||
7 | var temp = {}; | ||
8 | |||
9 | |||
10 | |||
11 | } | ||
12 | |||
13 | })(); |
app/partials/AntiochFlightDepartment/AntiochFlightDepartment.controller.js
1 | 'use strict'; | File was deleted | |
2 | |||
3 | //Load controller | ||
4 | angular.module('acufuel') | ||
5 | |||
6 | .controller('AntiochFlightDepartmentcontroller', ['$scope',function($scope) { | ||
7 | |||
8 | $scope.test = "Testing..."; | ||
9 | |||
10 | $(function() { | ||
11 | $('#toggle-five').bootstrapToggle(); | ||
12 | console.log("hello"); | ||
13 | }) | ||
14 | |||
15 | |||
16 | }]); | ||
17 | 1 | 'use strict'; |
app/partials/AntiochFlightDepartment/AntiochFlightDepartment.html
1 | <div class="container"> | File was deleted | |
2 | <div class="row"> | ||
3 | <div class="col-md-10" style="padding-right: 60px; margin-bottom: 30px;"> | ||
4 | <div class="widget"> | ||
5 | <div class="widget-header"> | ||
6 | <i class="icon-pencil"></i> | ||
7 | <i class="fa fa-building-o" aria-hidden="true"></i> | ||
8 | <h3>Antioch Flight Department</h3> | ||
9 | </div> | ||
10 | <div class="widget-content" style="padding-left: 0; padding-right: 0; "> | ||
11 | <div class="container"> | ||
12 | <div class="row"> | ||
13 | <div class="col-md-6" style="margin-left: 20px;"> | ||
14 | <div class="widget stacked"> | ||
15 | <div class="widget-header"> | ||
16 | <i class="fa fa-building-o" aria-hidden="true"></i> | ||
17 | <h3>Contact Detail</h3> | ||
18 | <div class="pull-right my-toggle-switch" style="margin-top: 10px; margin-right: 30px;"> | ||
19 | <div><input id="toggle-five" checked type="checkbox" data-size="mini" data-width="110" data-toggle="toggle" data-on="PRICE EMAIL ON" data-off="PRICE EMAIL OFF"> | ||
20 | </div> | ||
21 | </div> | ||
22 | </div> | ||
23 | <div class="widget-content"> | ||
24 | <div class="row" style="margin-left:0px"> | ||
25 | <div class="col-md-6"> | ||
26 | <h3 style="color:#F90;"> | ||
27 | <b>Monica Smith</b> | ||
28 | </h3> | ||
29 | </div> | ||
30 | <div class="col-md-6"> | ||
31 | <div style="margin-bottom: 10px" class="input-group email-password"> | ||
32 | <span class="input-group-addon email-password"><i class="glyphicon glyphicon-user email-password-icon"></i></span> | ||
33 | <input id="login-username" type="text" class="form-control email-password" name="username" value="" placeholder="username or email"> | ||
34 | </div> | ||
35 | |||
36 | <div class="input-group email-password"> | ||
37 | <span class="input-group-addon email-password"><i class="fa fa-key" aria-hidden="true"></i></span> | ||
38 | <input id="login-password" type="password" class="form-control email-password" name="password" placeholder="password"> | ||
39 | </div> | ||
40 | </div> | ||
41 | </div> | ||
42 | <div> | ||
43 | <p><i class="fa fa-map-marker"></i> Reviera State Rd32 <input type="checkbox"></p> | ||
44 | <p><i class="fa fa-phone"></i> (310) 2342-3433 <input type="checkbox"></p> | ||
45 | <p><i class="fa fa-envelope"></i> freed@gmail.com <input type="checkbox"></p> | ||
46 | </div> | ||
47 | </br> | ||
48 | <div> | ||
49 | <p><b>Company Notes</b> <input type="checkbox"></p> | ||
50 | <p>This is the test data. note will be written in this</p> | ||
51 | <button type="button" class="btn btn-primary">Send Price to This Contacts</button> | ||
52 | </div> | ||
53 | <!-- <div class="col-md-6"> | ||
54 | <button type="button" class="btn btn-primary">Send Price to This Contacts</button> | ||
55 | </div> --> | ||
56 | </div> | ||
57 | </div> | ||
58 | </div> | ||
59 | </div> | ||
60 | </div> | ||
61 | </div> | ||
62 | </div> | ||
63 | </div> | ||
64 | </div> |
app/partials/AntiochFlightDepartment/AntiochFlightDepartment.service.js
1 | (function(){ | File was deleted | |
2 | 'use strict'; | ||
3 | angular.module('acufuel') | ||
4 | .service('AntiochFlightDepartmentService', ['$q', '$http', 'BE', AntiochFlightDepartmentService]); | ||
5 | |||
6 | function AntiochFlightDepartmentService($q, $http, BE) { | ||
7 | var temp = {}; | ||
8 | |||
9 | |||
10 | |||
11 | } | ||
12 | |||
13 | })(); |
app/partials/fuelManager/fuelManager.html
1 | <style> | 1 | <style> |
2 | .subnavbar .mainnav > li:nth-child(2) > a{ | 2 | .subnavbar .mainnav > li:nth-child(2) > a{ |
3 | color: #ff9900; | 3 | color: #ff9900; |
4 | } | 4 | } |
5 | </style> | 5 | </style> |
6 | <div class="container" style="display: none;"> | 6 | <div class="container" style="display: none;"> |
7 | <div class="row"> | 7 | <div class="row"> |
8 | <div class="col-md-10"> | 8 | <div class="col-md-10"> |
9 | <div class="widget stacked"> | 9 | <div class="widget stacked"> |
10 | <div class="widget-header"> | 10 | <div class="widget-header"> |
11 | <i class="fa fa-pencil"></i> | 11 | <i class="fa fa-pencil"></i> |
12 | <h3>Ramp Fee Manager</h3> | 12 | <h3>Ramp Fee Manager</h3> |
13 | <select> | 13 | <select> |
14 | <option>Ramp Fee By Category</option> | 14 | <option>Ramp Fee By Category</option> |
15 | <option>Make And Model</option> | 15 | <option>Make And Model</option> |
16 | <option>Weight</option> | 16 | <option>Weight</option> |
17 | <option>Wingspan</option> | 17 | <option>Wingspan</option> |
18 | </select> | 18 | </select> |
19 | </div> | 19 | </div> |
20 | <!-- /widget-header --> | 20 | <!-- /widget-header --> |
21 | <div class="widget-content"> | 21 | <div class="widget-content"> |
22 | <h3>Ramp Fees & Avoidance</h3> | 22 | <h3>Ramp Fees & Avoidance</h3> |
23 | <section id="accordions"> | 23 | <section id="accordions"> |
24 | <div class="newCustomAccordian"> | 24 | <div class="newCustomAccordian"> |
25 | <!-- tab 1 --> | 25 | <!-- tab 1 --> |
26 | <div class="customAccordianHeader customActive" id="customTabs1"> | 26 | <div class="customAccordianHeader customActive" id="customTabs1"> |
27 | <span>Jet Aircraft</span> | 27 | <span>Jet Aircraft</span> |
28 | <select class="form-control"> | 28 | <select class="form-control"> |
29 | <option>Pricing Structure</option> | 29 | <option>Pricing Structure</option> |
30 | <option>Retail-(minus)</option> | 30 | <option>Retail-(minus)</option> |
31 | <option>Cost+(plus)</option> | 31 | <option>Cost+(plus)</option> |
32 | <option>Direct=(equals)</option> | 32 | <option>Direct=(equals)</option> |
33 | </select> | 33 | </select> |
34 | <input type="text" name="" class="form-control" value="$1.7500"> | 34 | <input type="text" name="" class="form-control" value="$1.7500"> |
35 | <div class="pull-right"> | 35 | <div class="pull-right"> |
36 | <button class="btn btn-success">Save</button> | 36 | <button class="btn btn-success">Save</button> |
37 | <button class="btn btn-danger">Delete</button> | 37 | <button class="btn btn-danger">Delete</button> |
38 | <button class="btn btn-default" id="customTabToggle1" style="display: none;">Edit</button> | 38 | <button class="btn btn-default" id="customTabToggle1" style="display: none;">Edit</button> |
39 | </div> | 39 | </div> |
40 | <div class="clearfix"></div> | 40 | <div class="clearfix"></div> |
41 | </div> | 41 | </div> |
42 | <div class="customAccordianTabBody" id="customTabsBody1"> | 42 | <div class="customAccordianTabBody" id="customTabsBody1"> |
43 | <table class="customTableWithFilter"> | 43 | <table class="customTableWithFilter"> |
44 | <thead> | 44 | <thead> |
45 | <tr> | 45 | <tr> |
46 | <th> | 46 | <th> |
47 | <span class="pull-left">1-250 gal.</span> | 47 | <span class="pull-left">1-250 gal.</span> |
48 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | 48 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> |
49 | </th> | 49 | </th> |
50 | <th> | 50 | <th> |
51 | <span class="pull-left">1-250 gal.</span> | 51 | <span class="pull-left">1-250 gal.</span> |
52 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | 52 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> |
53 | </th> | 53 | </th> |
54 | <th> | 54 | <th> |
55 | <input type="text" placeholder="min" name=""> - | 55 | <input type="text" placeholder="min" name=""> - |
56 | <input type="text" placeholder="max" name=""> | 56 | <input type="text" placeholder="max" name=""> |
57 | <span>gal.</span> | 57 | <span>gal.</span> |
58 | </th> | 58 | </th> |
59 | <th> </th> | 59 | <th> </th> |
60 | </tr> | 60 | </tr> |
61 | </thead> | 61 | </thead> |
62 | <tbody> | 62 | <tbody> |
63 | <tr> | 63 | <tr> |
64 | <td> | 64 | <td> |
65 | <span class="pull-left">-$0.0000</span> | 65 | <span class="pull-left">-$0.0000</span> |
66 | <span class="pull-right">($1.7500)</span> | 66 | <span class="pull-right">($1.7500)</span> |
67 | </td> | 67 | </td> |
68 | <td> | 68 | <td> |
69 | <span class="pull-left">-$0.0000</span> | 69 | <span class="pull-left">-$0.0000</span> |
70 | <span class="pull-right">($1.7500)</span> | 70 | <span class="pull-right">($1.7500)</span> |
71 | </td> | 71 | </td> |
72 | <td> | 72 | <td> |
73 | <span>$</span> | 73 | <span>$</span> |
74 | <input type="text" placeholder="margin" class="tierTextBox" name=""> | 74 | <input type="text" placeholder="margin" class="tierTextBox" name=""> |
75 | <button class="addTierButton">Add Tier</button> | 75 | <button class="addTierButton">Add Tier</button> |
76 | </td> | 76 | </td> |
77 | <td> | 77 | <td> |
78 | <i class="fa fa-trash-o" aria-hidden="true"></i> | 78 | <i class="fa fa-trash-o" aria-hidden="true"></i> |
79 | </td> | 79 | </td> |
80 | </tr> | 80 | </tr> |
81 | </tbody> | 81 | </tbody> |
82 | </table> | 82 | </table> |
83 | <textarea class="form-control resizeTextarea" placeholder="Message..."></textarea> | 83 | <textarea class="form-control resizeTextarea" placeholder="Message..."></textarea> |
84 | </div> | 84 | </div> |
85 | 85 | ||
86 | <!-- tab 2 --> | 86 | <!-- tab 2 --> |
87 | 87 | ||
88 | <div class="customAccordianHeader" id="customTabs2"> | 88 | <div class="customAccordianHeader" id="customTabs2"> |
89 | <span>Jet Aircraft</span> | 89 | <span>Jet Aircraft</span> |
90 | <select class="form-control" disabled="true"> | 90 | <select class="form-control" disabled="true"> |
91 | <option>Pricing Structure</option> | 91 | <option>Pricing Structure</option> |
92 | <option>Retail-(minus)</option> | 92 | <option>Retail-(minus)</option> |
93 | <option>Cost+(plus)</option> | 93 | <option>Cost+(plus)</option> |
94 | <option>Direct=(equals)</option> | 94 | <option>Direct=(equals)</option> |
95 | </select> | 95 | </select> |
96 | <input type="text" name="" disabled="true" class="form-control" value="$1.7500"> | 96 | <input type="text" name="" disabled="true" class="form-control" value="$1.7500"> |
97 | <div class="pull-right"> | 97 | <div class="pull-right"> |
98 | <button class="btn btn-success" style="display: none;">Save</button> | 98 | <button class="btn btn-success" style="display: none;">Save</button> |
99 | <button class="btn btn-danger" style="display: none;">Delete</button> | 99 | <button class="btn btn-danger" style="display: none;">Delete</button> |
100 | <button class="btn btn-default" id="customTabToggle2">Edit</button> | 100 | <button class="btn btn-default" id="customTabToggle2">Edit</button> |
101 | </div> | 101 | </div> |
102 | <div class="clearfix"></div> | 102 | <div class="clearfix"></div> |
103 | </div> | 103 | </div> |
104 | <div class="customAccordianTabBody" id="customTabsBody2" style="display: none;"> | 104 | <div class="customAccordianTabBody" id="customTabsBody2" style="display: none;"> |
105 | <table class="customTableWithFilter"> | 105 | <table class="customTableWithFilter"> |
106 | <thead> | 106 | <thead> |
107 | <tr> | 107 | <tr> |
108 | <th> | 108 | <th> |
109 | <span class="pull-left">1-250 gal.</span> | 109 | <span class="pull-left">1-250 gal.</span> |
110 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | 110 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> |
111 | </th> | 111 | </th> |
112 | <th> | 112 | <th> |
113 | <span class="pull-left">1-250 gal.</span> | 113 | <span class="pull-left">1-250 gal.</span> |
114 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | 114 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> |
115 | </th> | 115 | </th> |
116 | <th> | 116 | <th> |
117 | <input type="text" placeholder="min" name=""> - | 117 | <input type="text" placeholder="min" name=""> - |
118 | <input type="text" placeholder="max" name=""> | 118 | <input type="text" placeholder="max" name=""> |
119 | <span>gal.</span> | 119 | <span>gal.</span> |
120 | </th> | 120 | </th> |
121 | <th> </th> | 121 | <th> </th> |
122 | </tr> | 122 | </tr> |
123 | </thead> | 123 | </thead> |
124 | <tbody> | 124 | <tbody> |
125 | <tr> | 125 | <tr> |
126 | <td> | 126 | <td> |
127 | <span class="pull-left">-$0.0000</span> | 127 | <span class="pull-left">-$0.0000</span> |
128 | <span class="pull-right">($1.7500)</span> | 128 | <span class="pull-right">($1.7500)</span> |
129 | </td> | 129 | </td> |
130 | <td> | 130 | <td> |
131 | <span class="pull-left">-$0.0000</span> | 131 | <span class="pull-left">-$0.0000</span> |
132 | <span class="pull-right">($1.7500)</span> | 132 | <span class="pull-right">($1.7500)</span> |
133 | </td> | 133 | </td> |
134 | <td> | 134 | <td> |
135 | <span>$</span> | 135 | <span>$</span> |
136 | <input type="text" placeholder="margin" class="tierTextBox" name=""> | 136 | <input type="text" placeholder="margin" class="tierTextBox" name=""> |
137 | <button class="addTierButton">Add Tier</button> | 137 | <button class="addTierButton">Add Tier</button> |
138 | </td> | 138 | </td> |
139 | <td> | 139 | <td> |
140 | <i class="fa fa-trash-o" aria-hidden="true"></i> | 140 | <i class="fa fa-trash-o" aria-hidden="true"></i> |
141 | </td> | 141 | </td> |
142 | </tr> | 142 | </tr> |
143 | </tbody> | 143 | </tbody> |
144 | </table> | 144 | </table> |
145 | <textarea class="form-control resizeTextarea" placeholder="Message..."></textarea> | 145 | <textarea class="form-control resizeTextarea" placeholder="Message..."></textarea> |
146 | </div> | 146 | </div> |
147 | 147 | ||
148 | <!-- tab 3 --> | 148 | <!-- tab 3 --> |
149 | 149 | ||
150 | <div class="customAccordianHeader" id="customTabs3"> | 150 | <div class="customAccordianHeader" id="customTabs3"> |
151 | <span>Jet Aircraft</span> | 151 | <span>Jet Aircraft</span> |
152 | <select class="form-control" disabled="true"> | 152 | <select class="form-control" disabled="true"> |
153 | <option>Pricing Structure</option> | 153 | <option>Pricing Structure</option> |
154 | <option>Retail-(minus)</option> | 154 | <option>Retail-(minus)</option> |
155 | <option>Cost+(plus)</option> | 155 | <option>Cost+(plus)</option> |
156 | <option>Direct=(equals)</option> | 156 | <option>Direct=(equals)</option> |
157 | </select> | 157 | </select> |
158 | <input type="text" name="" disabled="true" class="form-control" value="$1.7500"> | 158 | <input type="text" name="" disabled="true" class="form-control" value="$1.7500"> |
159 | <div class="pull-right"> | 159 | <div class="pull-right"> |
160 | <button class="btn btn-success" style="display: none;">Save</button> | 160 | <button class="btn btn-success" style="display: none;">Save</button> |
161 | <button class="btn btn-danger" style="display: none;">Delete</button> | 161 | <button class="btn btn-danger" style="display: none;">Delete</button> |
162 | <button class="btn btn-default" id="customTabToggle3">Edit</button> | 162 | <button class="btn btn-default" id="customTabToggle3">Edit</button> |
163 | </div> | 163 | </div> |
164 | <div class="clearfix"></div> | 164 | <div class="clearfix"></div> |
165 | </div> | 165 | </div> |
166 | <div class="customAccordianTabBody" id="customTabsBody3" style="display: none;"> | 166 | <div class="customAccordianTabBody" id="customTabsBody3" style="display: none;"> |
167 | <table class="customTableWithFilter"> | 167 | <table class="customTableWithFilter"> |
168 | <thead> | 168 | <thead> |
169 | <tr> | 169 | <tr> |
170 | <th> | 170 | <th> |
171 | <span class="pull-left">1-250 gal.</span> | 171 | <span class="pull-left">1-250 gal.</span> |
172 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | 172 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> |
173 | </th> | 173 | </th> |
174 | <th> | 174 | <th> |
175 | <span class="pull-left">1-250 gal.</span> | 175 | <span class="pull-left">1-250 gal.</span> |
176 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | 176 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> |
177 | </th> | 177 | </th> |
178 | <th> | 178 | <th> |
179 | <input type="text" placeholder="min" name=""> - | 179 | <input type="text" placeholder="min" name=""> - |
180 | <input type="text" placeholder="max" name=""> | 180 | <input type="text" placeholder="max" name=""> |
181 | <span>gal.</span> | 181 | <span>gal.</span> |
182 | </th> | 182 | </th> |
183 | <th> </th> | 183 | <th> </th> |
184 | </tr> | 184 | </tr> |
185 | </thead> | 185 | </thead> |
186 | <tbody> | 186 | <tbody> |
187 | <tr> | 187 | <tr> |
188 | <td> | 188 | <td> |
189 | <span class="pull-left">-$0.0000</span> | 189 | <span class="pull-left">-$0.0000</span> |
190 | <span class="pull-right">($1.7500)</span> | 190 | <span class="pull-right">($1.7500)</span> |
191 | </td> | 191 | </td> |
192 | <td> | 192 | <td> |
193 | <span class="pull-left">-$0.0000</span> | 193 | <span class="pull-left">-$0.0000</span> |
194 | <span class="pull-right">($1.7500)</span> | 194 | <span class="pull-right">($1.7500)</span> |
195 | </td> | 195 | </td> |
196 | <td> | 196 | <td> |
197 | <span>$</span> | 197 | <span>$</span> |
198 | <input type="text" placeholder="margin" class="tierTextBox" name=""> | 198 | <input type="text" placeholder="margin" class="tierTextBox" name=""> |
199 | <button class="addTierButton">Add Tier</button> | 199 | <button class="addTierButton">Add Tier</button> |
200 | </td> | 200 | </td> |
201 | <td> | 201 | <td> |
202 | <i class="fa fa-trash-o" aria-hidden="true"></i> | 202 | <i class="fa fa-trash-o" aria-hidden="true"></i> |
203 | </td> | 203 | </td> |
204 | </tr> | 204 | </tr> |
205 | </tbody> | 205 | </tbody> |
206 | </table> | 206 | </table> |
207 | <textarea class="form-control resizeTextarea" placeholder="Message..."></textarea> | 207 | <textarea class="form-control resizeTextarea" placeholder="Message..."></textarea> |
208 | </div> | 208 | </div> |
209 | 209 | ||
210 | <!-- tab 4 --> | 210 | <!-- tab 4 --> |
211 | 211 | ||
212 | <div class="customAccordianHeader" id="customTabs4"> | 212 | <div class="customAccordianHeader" id="customTabs4"> |
213 | <span>Jet Aircraft</span> | 213 | <span>Jet Aircraft</span> |
214 | <select class="form-control" disabled="true"> | 214 | <select class="form-control" disabled="true"> |
215 | <option>Pricing Structure</option> | 215 | <option>Pricing Structure</option> |
216 | <option>Retail-(minus)</option> | 216 | <option>Retail-(minus)</option> |
217 | <option>Cost+(plus)</option> | 217 | <option>Cost+(plus)</option> |
218 | <option>Direct=(equals)</option> | 218 | <option>Direct=(equals)</option> |
219 | </select> | 219 | </select> |
220 | <input type="text" name="" disabled="true" class="form-control" value="$1.7500"> | 220 | <input type="text" name="" disabled="true" class="form-control" value="$1.7500"> |
221 | <div class="pull-right"> | 221 | <div class="pull-right"> |
222 | <button class="btn btn-success" style="display: none;">Save</button> | 222 | <button class="btn btn-success" style="display: none;">Save</button> |
223 | <button class="btn btn-danger" style="display: none;">Delete</button> | 223 | <button class="btn btn-danger" style="display: none;">Delete</button> |
224 | <button class="btn btn-default" id="customTabToggle4">Edit</button> | 224 | <button class="btn btn-default" id="customTabToggle4">Edit</button> |
225 | </div> | 225 | </div> |
226 | <div class="clearfix"></div> | 226 | <div class="clearfix"></div> |
227 | </div> | 227 | </div> |
228 | <div class="customAccordianTabBody" id="customTabsBody4" style="display: none;"> | 228 | <div class="customAccordianTabBody" id="customTabsBody4" style="display: none;"> |
229 | <table class="customTableWithFilter"> | 229 | <table class="customTableWithFilter"> |
230 | <thead> | 230 | <thead> |
231 | <tr> | 231 | <tr> |
232 | <th> | 232 | <th> |
233 | <span class="pull-left">1-250 gal.</span> | 233 | <span class="pull-left">1-250 gal.</span> |
234 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | 234 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> |
235 | </th> | 235 | </th> |
236 | <th> | 236 | <th> |
237 | <span class="pull-left">1-250 gal.</span> | 237 | <span class="pull-left">1-250 gal.</span> |
238 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | 238 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> |
239 | </th> | 239 | </th> |
240 | <th> | 240 | <th> |
241 | <input type="text" placeholder="min" name=""> - | 241 | <input type="text" placeholder="min" name=""> - |
242 | <input type="text" placeholder="max" name=""> | 242 | <input type="text" placeholder="max" name=""> |
243 | <span>gal.</span> | 243 | <span>gal.</span> |
244 | </th> | 244 | </th> |
245 | <th> </th> | 245 | <th> </th> |
246 | </tr> | 246 | </tr> |
247 | </thead> | 247 | </thead> |
248 | <tbody> | 248 | <tbody> |
249 | <tr> | 249 | <tr> |
250 | <td> | 250 | <td> |
251 | <span class="pull-left">-$0.0000</span> | 251 | <span class="pull-left">-$0.0000</span> |
252 | <span class="pull-right">($1.7500)</span> | 252 | <span class="pull-right">($1.7500)</span> |
253 | </td> | 253 | </td> |
254 | <td> | 254 | <td> |
255 | <span class="pull-left">-$0.0000</span> | 255 | <span class="pull-left">-$0.0000</span> |
256 | <span class="pull-right">($1.7500)</span> | 256 | <span class="pull-right">($1.7500)</span> |
257 | </td> | 257 | </td> |
258 | <td> | 258 | <td> |
259 | <span>$</span> | 259 | <span>$</span> |
260 | <input type="text" placeholder="margin" class="tierTextBox" name=""> | 260 | <input type="text" placeholder="margin" class="tierTextBox" name=""> |
261 | <button class="addTierButton">Add Tier</button> | 261 | <button class="addTierButton">Add Tier</button> |
262 | </td> | 262 | </td> |
263 | <td> | 263 | <td> |
264 | <i class="fa fa-trash-o" aria-hidden="true"></i> | 264 | <i class="fa fa-trash-o" aria-hidden="true"></i> |
265 | </td> | 265 | </td> |
266 | </tr> | 266 | </tr> |
267 | </tbody> | 267 | </tbody> |
268 | </table> | 268 | </table> |
269 | <textarea class="form-control resizeTextarea" placeholder="Message..."></textarea> | 269 | <textarea class="form-control resizeTextarea" placeholder="Message..."></textarea> |
270 | </div> | 270 | </div> |
271 | 271 | ||
272 | 272 | ||
273 | </div> | 273 | </div> |
274 | </section> | 274 | </section> |
275 | <div class="row"> </div> | 275 | <div class="row"> </div> |
276 | <div class="row"> | 276 | <div class="row"> |
277 | <div class="col-md-7"> | 277 | <div class="col-md-7"> |
278 | </div> | 278 | </div> |
279 | <div class="col-md-5"> | 279 | <div class="col-md-5"> |
280 | <div class="form-group"> | 280 | <div class="form-group"> |
281 | <div class="col-lg-4"></div> | 281 | <div class="col-lg-4"></div> |
282 | <div class="col-lg-8"> | 282 | <div class="col-lg-8"> |
283 | <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button> | 283 | <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button> |
284 | <button type="reset" class="btn btn-default">Cancel</button> | 284 | <button type="reset" class="btn btn-default">Cancel</button> |
285 | </div> | 285 | </div> |
286 | </div> | 286 | </div> |
287 | </div> | 287 | </div> |
288 | </div> | 288 | </div> |
289 | </div> | 289 | </div> |
290 | <!-- /widget-content --> | 290 | <!-- /widget-content --> |
291 | </div> | 291 | </div> |
292 | <!-- /widget --> | 292 | <!-- /widget --> |
293 | </div> | 293 | </div> |
294 | <!-- /span6 --> | 294 | <!-- /span6 --> |
295 | </div> | 295 | </div> |
296 | <!-- /span12 --> | 296 | <!-- /span12 --> |
297 | </div> <!-- /container 1 --> | 297 | </div> <!-- /container 1 --> |
298 | <!-- Le javascript | 298 | <!-- Le javascript |
299 | ================================================== --> | 299 | ================================================== --> |
300 | <!-- Placed at the end of the document so the pages load faster --> | 300 | <!-- Placed at the end of the document so the pages load faster --> |
301 | 301 | ||
302 | 302 | ||
303 | 303 | ||
304 | 304 | ||
305 | 305 | ||
306 | 306 | ||
307 | 307 | ||
308 | 308 | ||
309 | 309 | ||
310 | 310 | ||
311 | 311 | ||
312 | 312 | ||
313 | <div class="container"> | 313 | <div class="container"> |
314 | <div class="row"> | 314 | <div class="row"> |
315 | <div class="col-md-10"> | 315 | <div class="col-md-10"> |
316 | <div class="widget stacked"> | 316 | <div class="widget stacked"> |
317 | <div class="widget-header"> | 317 | <div class="widget-header"> |
318 | <i class="fa fa-pencil"></i> | 318 | <i class="fa fa-pencil"></i> |
319 | <h3>Ramp Fee Manager</h3> | 319 | <h3>Ramp Fee Manager</h3> |
320 | <select style="float: right; margin: 8px 10px;"> | 320 | <select style="float: right; margin: 8px 10px;"> |
321 | <option>Ramp Fee By Category</option> | 321 | <option>Ramp Fee By Category</option> |
322 | <option>Make And Model</option> | 322 | <option>Make And Model</option> |
323 | <option>Weight</option> | 323 | <option>Weight</option> |
324 | <option>Wingspan</option> | 324 | <option>Wingspan</option> |
325 | </select> | 325 | </select> |
326 | </div> | 326 | </div> |
327 | <!-- /widget-header --> | 327 | <!-- /widget-header --> |
328 | <div class="widget-content new-widget-content"> | 328 | <div class="widget-content new-widget-content"> |
329 | <section id="accordions1"> | 329 | <section id="accordions1"> |
330 | <div class="newCustomAccordian"> | 330 | <div class="newCustomAccordian"> |
331 | 331 | ||
332 | <div class="col-md-9" style="padding: 0;"> | 332 | <div class="col-md-9" style="padding: 0;"> |
333 | 333 | ||
334 | <div ng-repeat="list in fullJetList"> | 334 | <div ng-repeat="list in fullJetList"> |
335 | <div class="new-tab-heading"> | 335 | <div class="new-tab-heading"> |
336 | <i class="fa fa-plus-circle" ng-click="parentOpen($index)" id="parentOpen{{$index}}" aria-hidden="true"></i> | 336 | <i class="fa fa-plus-circle" ng-click="parentOpen($index)" id="parentOpen{{$index}}" aria-hidden="true"></i> |
337 | <i class="fa fa-minus-circle" ng-click="parentClose($index)" id="parentClose{{$index}}" aria-hidden="true" style="display: none;"></i> | 337 | <i class="fa fa-minus-circle" ng-click="parentClose($index)" id="parentClose{{$index}}" aria-hidden="true" style="display: none;"></i> |
338 | <span>{{list.type}}</span> | 338 | <span>{{list.type}}</span> |
339 | </div> | 339 | </div> |
340 | <div class="new-tab-body" id="parentTogglebody{{$index}}" style="display: none;"> | 340 | <div class="new-tab-body" id="parentTogglebody{{$index}}" style="display: none;"> |
341 | <div class="new-tab-body-th"> | 341 | <div class="new-tab-body-th"> |
342 | <div class="col-md-4"> | 342 | <div class="col-md-4"> |
343 | Aircraft Size | 343 | Aircraft Size |
344 | </div> | 344 | </div> |
345 | <div class="col-md-2"> | 345 | <div class="col-md-2"> |
346 | Ramp/Facil. Fee | 346 | Ramp/Facil. Fee |
347 | </div> | 347 | </div> |
348 | <div class="col-md-2"> | 348 | <div class="col-md-2"> |
349 | Avoidance | 349 | Avoidance |
350 | </div> | 350 | </div> |
351 | <div class="col-md-2"> | 351 | <div class="col-md-2"> |
352 | Expiration Date | 352 | Expiration Date |
353 | </div> | 353 | </div> |
354 | <div class="col-md-2"> | 354 | <div class="col-md-2"> |
355 | Applicable | 355 | Applicable |
356 | </div> | 356 | </div> |
357 | <div class="clearfix"></div> | 357 | <div class="clearfix"></div> |
358 | </div> | 358 | </div> |
359 | <div class="new-tab-body-td" ng-repeat="jets in list.aircraftsSize"> | 359 | <div class="new-tab-body-td" ng-repeat="jets in list.aircraftsSize"> |
360 | <div> | 360 | <div> |
361 | <div class="col-md-4"> | 361 | <div class="col-md-4"> |
362 | <i class="fa fa-plus-circle {{jets.id}}" ng-click="toggleChild(jets.id)" aria-hidden="true"></i> | 362 | <i class="fa fa-plus-circle {{jets.id}}" ng-click="toggleChild(jets.id)" aria-hidden="true"></i> |
363 | <span style="margin-left: 5px;">{{jets.rampFeesAndAvoidance.aircraftType}}</span> | 363 | <span style="margin-left: 5px;">{{jets.size}}</span> |
364 | </div> | 364 | </div> |
365 | <div class="col-md-2"> | 365 | <div class="col-md-2"> |
366 | <input type="text" ng-model="jets.rampFeesAndAvoidance.rampFees" name=""> | 366 | <input type="text" ng-model="jets.rampFeesAndAvoidance.rampFees" name=""> |
367 | </div> | 367 | </div> |
368 | <div class="col-md-2"> | 368 | <div class="col-md-2"> |
369 | <input type="text" ng-model="jets.rampFeesAndAvoidance.avoidance" name=""> | 369 | <input type="text" ng-model="jets.rampFeesAndAvoidance.avoidance" name=""> |
370 | </div> | 370 | </div> |
371 | <div class="col-md-2"> | 371 | <div class="col-md-2"> |
372 | <input type="date" ng-model="jets.rampFeesAndAvoidance.expirationDate" name=""> | 372 | <input type="date" ng-model="jets.rampFeesAndAvoidance.expirationDate" name=""> |
373 | </div> | 373 | </div> |
374 | <div class="col-md-2"> | 374 | <div class="col-md-2"> |
375 | <input type="checkbox" ng-model="jets.rampFeesAndAvoidance.applicable"> | 375 | <input type="checkbox" ng-model="jets.rampFeesAndAvoidance.applicable"> |
376 | </div> | 376 | </div> |
377 | <div class="clearfix"></div> | 377 | <div class="clearfix"></div> |
378 | </div> | 378 | </div> |
379 | <div style="display: none;" class="toggleCHildBody" id="{{jets.id}}"> | 379 | <div style="display: none;" class="toggleCHildBody" id="{{jets.id}}"> |
380 | <div class="col-xs-12"> | 380 | <div class="col-xs-12"> |
381 | <div class="col-xs-12"> | 381 | <div class="col-xs-12"> |
382 | <div class="appliesTableHeading">Applies To:</div> | 382 | <div class="appliesTableHeading">Applies To:</div> |
383 | <div class="appliesTableBody"> | 383 | <div class="appliesTableBody"> |
384 | <div class="firstDiv"> | 384 | <div class="firstDiv"> |
385 | <label style="font-weight: normal;" ng-repeat="aircraftList in jets.aircrafts">{{aircraftList.model}}</label> | 385 | <label style="font-weight: normal;" ng-repeat="aircraftList in jets.aircrafts">{{aircraftList.model}}</label> |
386 | </div> | 386 | </div> |
387 | <div class="lastDiv"> | 387 | <div class="lastDiv"> |
388 | <textarea ng-model="jets.rampFeesAndAvoidance.notes"></textarea> | 388 | <textarea ng-model="jets.rampFeesAndAvoidance.notes"></textarea> |
389 | </div> | 389 | </div> |
390 | <div class="clearfix"></div> | 390 | <div class="clearfix"></div> |
391 | </div> | 391 | </div> |
392 | </div> | 392 | </div> |
393 | <div class="clearfix"></div> | 393 | <div class="clearfix"></div> |
394 | </div> | 394 | </div> |
395 | <div class="clearfix"></div> | 395 | <div class="clearfix"></div> |
396 | </div> | 396 | </div> |
397 | </div> | 397 | </div> |
398 | </div> | 398 | </div> |
399 | </div> | 399 | </div> |
400 | </div> | 400 | </div> |
401 | <div class="col-md-3 text-center" style="padding: 0;"> | 401 | <div class="col-md-3 text-center" style="padding: 0;"> |
402 | <button type="submit" ng-click="updateList(fullJetList)" class="btn btn-success"><i class="icon-ok"></i> Save Form</button> | 402 | <button type="submit" ng-click="updateList(fullJetList)" class="btn btn-success"><i class="icon-ok"></i> Save Form</button> |
403 | <button type="reset" class="btn btn-default">Cancel</button> | 403 | <button type="reset" class="btn btn-default">Cancel</button> |
404 | </div> | 404 | </div> |
405 | <div class="clearfix"></div> | 405 | <div class="clearfix"></div> |
406 | <br/> | 406 | <br/> |
407 | </div> | 407 | </div> |
408 | </section> | 408 | </section> |
409 | </div> | 409 | </div> |
410 | <!-- /widget-content --> | 410 | <!-- /widget-content --> |
411 | </div> | 411 | </div> |
412 | <!-- /widget --> | 412 | <!-- /widget --> |
413 | </div> | 413 | </div> |
414 | <!-- /span6 --> | 414 | <!-- /span6 --> |
415 | </div> | 415 | </div> |
416 | <!-- /span12 --> | 416 | <!-- /span12 --> |
417 | </div> <!-- /container 2 --> | 417 | </div> <!-- /container 2 --> |
app/partials/viewCompany/viewCompany.html
1 | <style> | 1 | <style> |
2 | .subnavbar .mainnav > li:nth-child(3) > a{ | 2 | .subnavbar .mainnav > li:nth-child(3) > a{ |
3 | color: #ff9900; | 3 | color: #ff9900; |
4 | } | 4 | } |
5 | .widget-content{ | 5 | .widget-content{ |
6 | padding: 10px !important; | 6 | padding: 10px !important; |
7 | } | 7 | } |
8 | .widget-content input[type="text"], .widget-content select{ | 8 | .widget-content input[type="text"], .widget-content select{ |
9 | height: 31px; | 9 | height: 31px; |
10 | padding: 0; | 10 | padding: 0; |
11 | } | 11 | } |
12 | .new-label span{ | 12 | .new-label span{ |
13 | float: left; | 13 | float: left; |
14 | line-height: 31px; | 14 | line-height: 31px; |
15 | } | 15 | } |
16 | .new-label span:first-child{ | 16 | .new-label span:first-child{ |
17 | margin-right: 5px; | 17 | margin-right: 5px; |
18 | font-weight: bold; | 18 | font-weight: bold; |
19 | } | 19 | } |
20 | .new-label span:last-child{ | 20 | .new-label span:last-child{ |
21 | margin-left: 5px; | 21 | margin-left: 5px; |
22 | } | 22 | } |
23 | .new-label select{ | 23 | .new-label select{ |
24 | display: -webkit-inline-box; | 24 | display: -webkit-inline-box; |
25 | display: inline-box; | 25 | display: inline-box; |
26 | float: left; | 26 | float: left; |
27 | } | 27 | } |
28 | .new-address p{ | 28 | .new-address p{ |
29 | margin-bottom: 0; | 29 | margin-bottom: 0; |
30 | } | 30 | } |
31 | .new-add-select{ | 31 | .new-add-select{ |
32 | padding-left: 15px; | 32 | padding-left: 15px; |
33 | margin: 10px 0; | 33 | margin: 10px 0; |
34 | } | 34 | } |
35 | .new-add-select select{ | 35 | .new-add-select select{ |
36 | width: 100px; | 36 | width: 100px; |
37 | } | 37 | } |
38 | .widget{ | 38 | .widget{ |
39 | -moz-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); | 39 | -moz-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); |
40 | -webkit-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); | 40 | -webkit-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); |
41 | box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); | 41 | box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); |
42 | } | 42 | } |
43 | .optionclass { | 43 | .optionclass { |
44 | background: #fff; | 44 | background: #fff; |
45 | } | 45 | } |
46 | .timess { | 46 | .timess { |
47 | float: right !important; | 47 | float: right !important; |
48 | margin-top: 10px !important; | 48 | margin-top: 10px !important; |
49 | margin-right: 10px !important; | 49 | margin-right: 10px !important; |
50 | color: #999 !important; | 50 | color: #999 !important; |
51 | cursor: pointer !important; | 51 | cursor: pointer !important; |
52 | } | 52 | } |
53 | 53 | ||
54 | .button1 { | 54 | .button1 { |
55 | display: inline-block; | 55 | display: inline-block; |
56 | height: 35px; | 56 | height: 35px; |
57 | line-height: 35px; | 57 | line-height: 35px; |
58 | padding-right: 15px; | 58 | padding-right: 15px; |
59 | padding-left: 50px; | 59 | padding-left: 50px; |
60 | position: relative; | 60 | position: relative; |
61 | background-color:rgb(41,127,184); | 61 | background-color:rgb(41,127,184); |
62 | color:rgb(255,255,255); | 62 | color:rgb(255,255,255); |
63 | text-decoration: none; | 63 | text-decoration: none; |
64 | text-transform: uppercase; | 64 | text-transform: uppercase; |
65 | letter-spacing: 1px; | 65 | letter-spacing: 1px; |
66 | margin-bottom: 15px; | 66 | margin-bottom: 15px; |
67 | border: 0; | 67 | border: 0; |
68 | 68 | ||
69 | 69 | ||
70 | border-radius: 5px; | 70 | border-radius: 5px; |
71 | -moz-border-radius: 5px; | 71 | -moz-border-radius: 5px; |
72 | -webkit-border-radius: 5px; | 72 | -webkit-border-radius: 5px; |
73 | text-shadow:0px 1px 0px rgba(0,0,0,0.5); | 73 | text-shadow:0px 1px 0px rgba(0,0,0,0.5); |
74 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true)";zoom:1; | 74 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true)";zoom:1; |
75 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true); | 75 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true); |
76 | 76 | ||
77 | -moz-box-shadow:0px 2px 2px rgba(0,0,0,0.2); | 77 | -moz-box-shadow:0px 2px 2px rgba(0,0,0,0.2); |
78 | -webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.2); | 78 | -webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.2); |
79 | box-shadow:0px 2px 2px rgba(0,0,0,0.2); | 79 | box-shadow:0px 2px 2px rgba(0,0,0,0.2); |
80 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true)"; | 80 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true)"; |
81 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true); | 81 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true); |
82 | } | 82 | } |
83 | 83 | ||
84 | .button1 span { | 84 | .button1 span { |
85 | position: absolute; | 85 | position: absolute; |
86 | left: 0; | 86 | left: 0; |
87 | top: 0; | 87 | top: 0; |
88 | width: 35px; | 88 | width: 35px; |
89 | background-color:rgba(0,0,0,0.5); | 89 | background-color:rgba(0,0,0,0.5); |
90 | 90 | ||
91 | -webkit-border-top-left-radius: 5px; | 91 | -webkit-border-top-left-radius: 5px; |
92 | -webkit-border-bottom-left-radius: 5px; | 92 | -webkit-border-bottom-left-radius: 5px; |
93 | -moz-border-radius-topleft: 5px; | 93 | -moz-border-radius-topleft: 5px; |
94 | -moz-border-radius-bottomleft: 5px; | 94 | -moz-border-radius-bottomleft: 5px; |
95 | border-top-left-radius: 5px; | 95 | border-top-left-radius: 5px; |
96 | border-bottom-left-radius: 5px; | 96 | border-bottom-left-radius: 5px; |
97 | border-right: 1px solid rgba(0,0,0,0.15); | 97 | border-right: 1px solid rgba(0,0,0,0.15); |
98 | } | 98 | } |
99 | 99 | ||
100 | .button1:hover span, .button1.active span { | 100 | .button1:hover span, .button1.active span { |
101 | background-color:rgb(0,102,26); | 101 | background-color:rgb(0,102,26); |
102 | border-right: 1px solid rgba(0,0,0,0.3); | 102 | border-right: 1px solid rgba(0,0,0,0.3); |
103 | } | 103 | } |
104 | 104 | ||
105 | .button1:active { | 105 | .button1:active { |
106 | margin-top: 2px; | 106 | margin-top: 2px; |
107 | margin-bottom: 13px; | 107 | margin-bottom: 13px; |
108 | 108 | ||
109 | -moz-box-shadow:0px 1px 0px rgba(255,255,255,0.5); | 109 | -moz-box-shadow:0px 1px 0px rgba(255,255,255,0.5); |
110 | -webkit-box-shadow:0px 1px 0px rgba(255,255,255,0.5); | 110 | -webkit-box-shadow:0px 1px 0px rgba(255,255,255,0.5); |
111 | box-shadow:0px 1px 0px rgba(255,255,255,0.5); | 111 | box-shadow:0px 1px 0px rgba(255,255,255,0.5); |
112 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true)"; | 112 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true)"; |
113 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true); | 113 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true); |
114 | } | 114 | } |
115 | 115 | ||
116 | .button1.turquoise { | 116 | .button1.turquoise { |
117 | background: #449d44; | 117 | background: #449d44; |
118 | } | 118 | } |
119 | 119 | ||
120 | </style> | 120 | </style> |
121 | <div class="col-xs-12 col-md-11"> | 121 | <div class="col-xs-12 col-md-11"> |
122 | <div class="row" style="margin-left:0px"> | 122 | <div class="row" style="margin-left:0px"> |
123 | <div class="col-md-12"> | 123 | <div class="col-md-12"> |
124 | <div class="widget"> | 124 | <div class="widget"> |
125 | <div class="widget-header"> | 125 | <div class="widget-header"> |
126 | <i class="fa fa-building-o" aria-hidden="true"></i> | 126 | <i class="fa fa-building-o" aria-hidden="true"></i> |
127 | <h3>Antioch Flight Department</h3> | 127 | <h3>Antioch Flight Department</h3> |
128 | <i class="fa fa-times timess" ui-sref="app.customers" aria-hidden="true"></i> | 128 | <i class="fa fa-times timess" ui-sref="app.customers" aria-hidden="true"></i> |
129 | </div> | 129 | </div> |
130 | <!-- /widget-header --> | 130 | <!-- /widget-header --> |
131 | <div class="widget-content"> | 131 | <div class="widget-content"> |
132 | <div class="row" style="margin-left:0px"> | 132 | <div class="row" style="margin-left:0px"> |
133 | <div class="col-md-6"> | 133 | <div class="col-md-6"> |
134 | <div class="widget"> | 134 | <div class="widget"> |
135 | <div class="widget-header"> | 135 | <div class="widget-header"> |
136 | <i class="fa fa-building-o" aria-hidden="true"></i> | 136 | <i class="fa fa-building-o" aria-hidden="true"></i> |
137 | <h3>Company Details</h3> | 137 | <h3>Company Details</h3> |
138 | <label>BASE ICAO</label> | 138 | <label>BASE ICAO</label> |
139 | <input type="tel" ng-model="companyData.baseIcao" style="line-height: 18px;width: 50px;padding: 0px 9px;" ng-blur="editData()"/> | 139 | <input type="tel" ng-model="companyData.baseIcao" style="line-height: 18px;width: 50px;padding: 0px 9px;" ng-blur="editData()"/> |
140 | <div class="pull-right my-toggle-switch" style="margin-top: 10px; margin-right: 10px;"> | 140 | <div class="pull-right my-toggle-switch" style="margin-top: 10px; margin-right: 10px;"> |
141 | <div><input id="company-one2" checked type="checkbox" data-size="mini" data-width="55" data-toggle="toggle" data-on="Active" data-off="Dactive"> | 141 | <div><input id="company-one2" checked type="checkbox" data-size="mini" data-width="55" data-toggle="toggle" data-on="Active" data-off="Dactive"> |
142 | </div> | 142 | </div> |
143 | </div> | 143 | </div> |
144 | </div> | 144 | </div> |
145 | <div class="widget-content"> | 145 | <div class="widget-content"> |
146 | <div class="row" style="margin-left:0px;"> | 146 | <div class="row" style="margin-left:0px;"> |
147 | <div class="col-md-7" style="padding-left: 0;"> | 147 | <div class="col-md-7" style="padding-left: 0;"> |
148 | <h4 ng-show="showCompanyName"> | 148 | <h4 ng-show="showCompanyName"> |
149 | <b style="color:#F90;">{{companyData.companyName}}</b> <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i> | 149 | <b style="color:#F90;">{{companyData.companyName}}</b> <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i> |
150 | </h4> | 150 | </h4> |
151 | <input type="tel" ng-hide="showCompanyName" ng-model="companyData.companyName" class="form-control" ng-blur="editData('showCompanyName')"/> | 151 | <input type="tel" ng-hide="showCompanyName" ng-model="companyData.companyName" class="form-control" ng-blur="editData('showCompanyName')"/> |
152 | </div> | 152 | </div> |
153 | <div class="col-md-5"> | 153 | <div class="col-md-5"> |
154 | <select class="form-control" style="padding: 4px 8px;background: #ebebeb;" ng-model="companyData.certificateType" ng-click="editData()"> | 154 | <select class="form-control" style="padding: 4px 8px;background: #ebebeb;" ng-model="companyData.certificateType" ng-click="editData()"> |
155 | <option class="optionclass" disabled selected>Certificate Type</option> | 155 | <option class="optionclass" disabled selected>Certificate Type</option> |
156 | <option class="optionclass" value="corporate">Part 91 (Corporate)</option> | 156 | <option class="optionclass" value="corporate">Part 91 (Corporate)</option> |
157 | <option class="optionclass" value="charter">Part 135 (Charter)</option> | 157 | <option class="optionclass" value="charter">Part 135 (Charter)</option> |
158 | <option class="optionclass" value="scheduled">Part 121 (Scheduled)</option> | 158 | <option class="optionclass" value="scheduled">Part 121 (Scheduled)</option> |
159 | <option class="optionclass" value="military">Military</option> | 159 | <option class="optionclass" value="military">Military</option> |
160 | <option class="optionclass" value="government">Government</option> | 160 | <option class="optionclass" value="government">Government</option> |
161 | </select> | 161 | </select> |
162 | </div> | 162 | </div> |
163 | </div> | 163 | </div> |
164 | <div> | 164 | <div> |
165 | <p class="new-label"> | 165 | <p class="new-label"> |
166 | <span>Master Margin Setting </span> | 166 | <span>Master Margin Setting </span> |
167 | <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-model="companyData.masterMargin" ng-click="editData()"> | 167 | <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-model="companyData.masterMargin" ng-click="editData()"> |
168 | <option value="margin1">Margin1</option> | 168 | <option value="margin1">Margin1</option> |
169 | <option value="margin2">Margin2</option> | 169 | <option value="margin2">Margin2</option> |
170 | <option value="vendorsonly">Vendors Only</option> | 170 | <option value="vendorsonly">Vendors Only</option> |
171 | <option value="margintenants">Margin Tenants</option> | 171 | <option value="margintenants">Margin Tenants</option> |
172 | </select> | 172 | </select> |
173 | <span> See Aircrart List</span> | 173 | <span> See Aircrart List</span> |
174 | <div class="clearfix"></div> | 174 | <div class="clearfix"></div> |
175 | </p> | 175 | </p> |
176 | </div> | 176 | </div> |
177 | <div class="row" style="margin-left:0px;"> | 177 | <div class="row" style="margin-left:0px;"> |
178 | <div class="col-md-5" style="padding-left: 0;"> | 178 | <div class="col-md-5" style="padding-left: 0;"> |
179 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.baseTenant"> Tenant/Base Customer | 179 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.baseTenant"> Tenant/Base Customer |
180 | </div> | 180 | </div> |
181 | <div class="col-md-5" style="padding-left: 0;"> | 181 | <div class="col-md-5" style="padding-left: 0;"> |
182 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.fuelerlinxCustomer"> FuelerLinx Customer | 182 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.fuelerlinxCustomer"> FuelerLinx Customer |
183 | </div> | 183 | </div> |
184 | </div> | 184 | </div> |
185 | <div> | 185 | <div> |
186 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.contractFuelVendor"> CAA Member | 186 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.contractFuelVendor"> CAA Member |
187 | </div> | 187 | </div> |
188 | </br> | 188 | </br> |
189 | <div class="new-address"> | 189 | <div class="new-address"> |
190 | <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{companyData.addressOne}} {{companyData.addressTwo}} <i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p> | 190 | <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{companyData.addressOne}} {{companyData.addressTwo}} <i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p> |
191 | 191 | ||
192 | <div ng-hide="showAddress"> | 192 | <div ng-hide="showAddress"> |
193 | <label>Address1</label> | 193 | <label>Address1</label> |
194 | <input type="tel" ng-hide="showAddress" ng-model="companyData.addressOne" class="form-control" ng-blur="editData('showAddress')"/> | 194 | <input type="tel" ng-hide="showAddress" ng-model="companyData.addressOne" class="form-control" ng-blur="editData('showAddress')"/> |
195 | <label>Address2</label> | 195 | <label>Address2</label> |
196 | <input type="tel" ng-hide="showAddress" ng-model="companyData.addressTwo" class="form-control" ng-blur="editData('showAddress')"/> | 196 | <input type="tel" ng-hide="showAddress" ng-model="companyData.addressTwo" class="form-control" ng-blur="editData('showAddress')"/> |
197 | </div> | 197 | </div> |
198 | 198 | ||
199 | <p><i class="fa fa-phone"></i> (310) 2342-3433 <i class="fa fa-pencil-square-o" aria-hidden="true"></i></p> | 199 | <p><i class="fa fa-phone"></i> (310) 2342-3433 <i class="fa fa-pencil-square-o" aria-hidden="true"></i></p> |
200 | <p><i class="fa fa-envelope"></i> freed@gmail.com <i class="fa fa-pencil-square-o" aria-hidden="true"></i></p> | 200 | <p><i class="fa fa-envelope"></i> freed@gmail.com <i class="fa fa-pencil-square-o" aria-hidden="true"></i></p> |
201 | </div> | 201 | </div> |
202 | <div class="new-add-select"> | 202 | <div class="new-add-select"> |
203 | <select class="form-control" style="background: #ebebeb;padding: 4px 8px;width: 115px;"> | 203 | <select class="form-control" style="background: #ebebeb;padding: 4px 8px;width: 115px;"> |
204 | <option disabled selected>Add Field</option> | 204 | <option disabled selected>Add Field</option> |
205 | <option class="optionclass">Add Phone</option> | 205 | <option class="optionclass">Add Phone</option> |
206 | <option class="optionclass">Add Email</option> | 206 | <option class="optionclass">Add Email</option> |
207 | </select> | 207 | </select> |
208 | </div> | 208 | </div> |
209 | <div> | 209 | <div> |
210 | <p style="margin-bottom: 0;"><b>Company Notes</b> <i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p> | 210 | <p style="margin-bottom: 0;"><b>Company Notes</b> <i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p> |
211 | <p ng-show="showNoteData">{{companyData.internalNote}}</p> | 211 | <p ng-show="showNoteData">{{companyData.internalNote}}</p> |
212 | <textarea name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="companyData.internalNote" ng-blur="editData('showNoteData')" rows="4" cols="34"></textarea> | 212 | <textarea name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="companyData.internalNote" ng-blur="editData('showNoteData')" rows="4" cols="34"></textarea> |
213 | </div> | 213 | </div> |
214 | <div class="dis"> | 214 | <div class="dis"> |
215 | <button type="button" data-toggle="modal" data-target="#distribute-modal-3" class="btn btn-primary">Distribute Price to Company Contacts</button> | 215 | <button type="button" data-toggle="modal" data-target="#distribute-modal-3" class="btn btn-primary">Distribute Price to Company Contacts</button> |
216 | </div> | 216 | </div> |
217 | <div><button type="button" class="btn btn-info">Setup Fuel</button></div> | 217 | <div><button type="button" class="btn btn-info">Setup Fuel</button></div> |
218 | </div> | 218 | </div> |
219 | </div> | 219 | </div> |
220 | </div> | 220 | </div> |
221 | <div class="col-md-6"> | 221 | <div class="col-md-6"> |
222 | <div class="widget"> | 222 | <div class="widget"> |
223 | <div class="widget-header"> | 223 | <div class="widget-header"> |
224 | <i class="fa fa-plane"></i> | 224 | <i class="fa fa-plane"></i> |
225 | <h3>Aircraft List</h3> | 225 | <h3>Aircraft List</h3> |
226 | <div class="pull-right"> | 226 | <div class="pull-right"> |
227 | <button type="submit" class="btn btn-success btn-sm" data-toggle="modal" data-target="#aircraft-modal-3" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Aircraft</button> | 227 | <button type="submit" class="btn btn-success btn-sm" data-toggle="modal" data-target="#aircraft-modal-3" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Aircraft</button> |
228 | </div> | 228 | </div> |
229 | </div> | 229 | </div> |
230 | <div class="widget-content" style="padding:0px"> | 230 | <div class="widget-content" style="padding:0px"> |
231 | <div class="table-responsive"> | 231 | <div class="table-responsive"> |
232 | <table class="table table-bordered table-hover table-striped"> | 232 | <table class="table table-bordered table-hover table-striped"> |
233 | <thead> | 233 | <thead> |
234 | <tr> | 234 | <tr> |
235 | <th>Tail #</th> | 235 | <th>Tail #</th> |
236 | <th>Make</th> | 236 | <th>Make</th> |
237 | <th>Model</th> | 237 | <th>Model</th> |
238 | <th>JET-A</th> | 238 | <th>JET-A</th> |
239 | <th>All in</th> | 239 | <th>All in</th> |
240 | <th>AVGAS</th> | 240 | <th>AVGAS</th> |
241 | <th>All in</th> | 241 | <th>All in</th> |
242 | <th></th> | 242 | <th></th> |
243 | </tr> | 243 | </tr> |
244 | </thead> | 244 | </thead> |
245 | <tbody> | 245 | <tbody> |
246 | <tr ng-repeat="aircraft in contactAircraftList"> | 246 | <tr ng-repeat="aircraft in contactAircraftList"> |
247 | <td>{{aircraft.tail}}</td> | 247 | <td>{{aircraft.tail}}</td> |
248 | <td>{{aircraft.make}}</td> | 248 | <td>{{aircraft.make}}</td> |
249 | <td>{{aircraft.model}}</td> | 249 | <td>{{aircraft.model}}</td> |
250 | <td> | 250 | <td> |
251 | <select class="form-control" style="height:31px;"> | 251 | <select class="form-control" style="height:31px;"> |
252 | <option>Margin1</option> | 252 | <option>Margin1</option> |
253 | <option>Margin2</option> | 253 | <option>Margin2</option> |
254 | </select> | 254 | </select> |
255 | </td> | 255 | </td> |
256 | <td style="color:#55AF8B;">$3659</td> | 256 | <td style="color:#55AF8B;">$3659</td> |
257 | <td> | 257 | <td> |
258 | <select class="form-control" style="height:31px;"> | 258 | <select class="form-control" style="height:31px;"> |
259 | <option>Margin1</option> | 259 | <option>Margin1</option> |
260 | <option>Margin2</option> | 260 | <option>Margin2</option> |
261 | </select> | 261 | </select> |
262 | </td> | 262 | </td> |
263 | <td style="color:#55AF8B;">$3659</td> | 263 | <td style="color:#55AF8B;">$3659</td> |
264 | <td></td> | 264 | <td></td> |
265 | </tr> | 265 | </tr> |
266 | </tbody> | 266 | </tbody> |
267 | </table> | 267 | </table> |
268 | </div> | 268 | </div> |
269 | </div> | 269 | </div> |
270 | </div> | 270 | </div> |
271 | </div> | 271 | </div> |
272 | </div> | 272 | </div> |
273 | <div class="row" style="margin-left:0px"> | 273 | <div class="row" style="margin-left:0px"> |
274 | <div class="col-md-6"> | 274 | <div class="col-md-6"> |
275 | <div class="widget"> | 275 | <div class="widget"> |
276 | <div class="widget-header"> | 276 | <div class="widget-header"> |
277 | <i class="fa fa-user"></i> | 277 | <i class="fa fa-user"></i> |
278 | <h3>Contact List</h3> | 278 | <h3>Contact List</h3> |
279 | <div class="pull-right"> | 279 | <div class="pull-right"> |
280 | <button type="submit" data-toggle="modal" data-target="#contact-modal-3" class="btn btn-success btn-sm" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Contact</button> | 280 | <button type="submit" data-toggle="modal" data-target="#contact-modal-3" class="btn btn-success btn-sm" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Contact</button> |
281 | </div> | 281 | </div> |
282 | </div> | 282 | </div> |
283 | <div class="widget-content" style="padding:0px"> | 283 | <div class="widget-content" style="padding:0px"> |
284 | <div class="table-responsive"> | 284 | <div class="table-responsive"> |
285 | <table class="table table-bordered table-hover table-striped"> | 285 | <table class="table table-bordered table-hover table-striped"> |
286 | <thead> | 286 | <thead> |
287 | <tr> | 287 | <tr> |
288 | <th>Price Email</th> | 288 | <th>Price Email</th> |
289 | <th>First Name</th> | 289 | <th>First Name</th> |
290 | <th>Last Name</th> | 290 | <th>Last Name</th> |
291 | <th>Title</th> | 291 | <th>Title</th> |
292 | </tr> | 292 | </tr> |
293 | </thead> | 293 | </thead> |
294 | <tbody> | 294 | <tbody> |
295 | <tr ng-repeat="contact in companyContactList"> | 295 | <tr ng-repeat="contact in companyContactList"> |
296 | <td class="my-toggle-switch"><input id="{{contact.id}}" checked type="checkbox" data-size="mini" data-toggle="toggle"></td> | 296 | <td class="my-toggle-switch"><input id="{{contact.id}}" checked type="checkbox" data-size="mini" data-toggle="toggle"></td> |
297 | <td>{{contact.firstName}}</td> | 297 | <td> |
298 | <a href="#!/viewContact/{{contact.id}}"> | ||
299 | {{contact.firstName}} | ||
300 | </a> | ||
301 | </td> | ||
298 | <td>{{contact.lastName}}</td> | 302 | <td>{{contact.lastName}}</td> |
299 | <td>{{contact.title}}</td> | 303 | <td>{{contact.title}}</td> |
300 | </tr> | 304 | </tr> |
301 | </tbody> | 305 | </tbody> |
302 | </table> | 306 | </table> |
303 | </div> | 307 | </div> |
304 | </div> | 308 | </div> |
305 | </div> | 309 | </div> |
306 | </div> | 310 | </div> |
307 | <div class="col-md-6"> | 311 | <div class="col-md-6"> |
308 | <div class="widget"> | 312 | <div class="widget"> |
309 | <div class="widget-header"> | 313 | <div class="widget-header"> |
310 | <i class="fa fa-pencil"></i> | 314 | <i class="fa fa-pencil"></i> |
311 | <h3>Price Manager Reference</h3> | 315 | <h3>Price Manager Reference</h3> |
312 | </div> | 316 | </div> |
313 | <div class="widget-content"> | 317 | <div class="widget-content"> |
314 | <div class="table-responsive"> | 318 | <div class="table-responsive"> |
315 | <table class="table table-hover table-striped"> | 319 | <table class="table table-hover table-striped"> |
316 | <thead> | 320 | <thead> |
317 | <tr> | 321 | <tr> |
318 | <th>Omit</th> | 322 | <th>Omit</th> |
319 | <th>Product</th> | 323 | <th>Product</th> |
320 | <th>Cost</th> | 324 | <th>Cost</th> |
321 | <th>PAP (Margin)</th> | 325 | <th>PAP (Margin)</th> |
322 | <th>PAP (Total)</th> | 326 | <th>PAP (Total)</th> |
323 | <th style="color:#F90">Expires</th> | 327 | <th style="color:#F90">Expires</th> |
324 | </tr> | 328 | </tr> |
325 | </thead> | 329 | </thead> |
326 | <tbody> | 330 | <tbody> |
327 | <tr> | 331 | <tr> |
328 | <td><input type="checkbox"></td> | 332 | <td><input type="checkbox"></td> |
329 | <td>Jet-A Full Service</td> | 333 | <td>Jet-A Full Service</td> |
330 | <td>$2.123</td> | 334 | <td>$2.123</td> |
331 | <td>$23000</td> | 335 | <td>$23000</td> |
332 | <td style="color:#55AF8B;">$3659</td> | 336 | <td style="color:#55AF8B;">$3659</td> |
333 | <td style="color:#F90">3/15/2017</td> | 337 | <td style="color:#F90">3/15/2017</td> |
334 | </tr> | 338 | </tr> |
335 | <tr> | 339 | <tr> |
336 | <td><input type="checkbox"></td> | 340 | <td><input type="checkbox"></td> |
337 | <td>Jet-A Full Service</td> | 341 | <td>Jet-A Full Service</td> |
338 | <td>$2.123</td> | 342 | <td>$2.123</td> |
339 | <td>$23000</td> | 343 | <td>$23000</td> |
340 | <td style="color:#55AF8B;">$3659</td> | 344 | <td style="color:#55AF8B;">$3659</td> |
341 | <td style="color:#F90">3/15/2017</td> | 345 | <td style="color:#F90">3/15/2017</td> |
342 | </tr> | 346 | </tr> |
343 | <tr> | 347 | <tr> |
344 | <tr> | 348 | <tr> |
345 | <td><input type="checkbox"></td> | 349 | <td><input type="checkbox"></td> |
346 | <td>Jet-A Full Service</td> | 350 | <td>Jet-A Full Service</td> |
347 | <td>$2.123</td> | 351 | <td>$2.123</td> |
348 | <td>$23000</td> | 352 | <td>$23000</td> |
349 | <td style="color:#55AF8B;">$3659</td> | 353 | <td style="color:#55AF8B;">$3659</td> |
350 | <td style="color:#F90">3/15/2017</td> | 354 | <td style="color:#F90">3/15/2017</td> |
351 | </tr> | 355 | </tr> |
352 | <tr> | 356 | <tr> |
353 | <td><input type="checkbox"></td> | 357 | <td><input type="checkbox"></td> |
354 | <td>Jet-A Full Service</td> | 358 | <td>Jet-A Full Service</td> |
355 | <td>$2.123</td> | 359 | <td>$2.123</td> |
356 | <td>$23000</td> | 360 | <td>$23000</td> |
357 | <td style="color:#55AF8B;">$3659</td> | 361 | <td style="color:#55AF8B;">$3659</td> |
358 | <td style="color:#F90">3/15/2017</td> | 362 | <td style="color:#F90">3/15/2017</td> |
359 | </tr> | 363 | </tr> |
360 | </tbody> | 364 | </tbody> |
361 | </table> | 365 | </table> |
362 | </div> | 366 | </div> |
363 | </div> | 367 | </div> |
364 | </div> | 368 | </div> |
365 | </div> | 369 | </div> |
366 | </div> | 370 | </div> |
367 | </div> | 371 | </div> |
368 | <!-- /widget-content --> | 372 | <!-- /widget-content --> |
369 | </div> | 373 | </div> |
370 | <!-- /widget --> | 374 | <!-- /widget --> |
371 | </div> | 375 | </div> |
372 | <!-- /span6 --> | 376 | <!-- /span6 --> |
373 | </div> | 377 | </div> |
374 | <!-- /widget --> | 378 | <!-- /widget --> |
375 | </div> | 379 | </div> |
376 | <!-- /container --> | 380 | <!-- /container --> |
377 | <form class="modal multi-step" id="contact-modal-3" name="companyForm"> | 381 | <form class="modal multi-step" id="contact-modal-3" name="companyForm"> |
378 | <div class="modal-dialog modal-lg"> | 382 | <div class="modal-dialog modal-lg"> |
379 | <div class="modal-content"> | 383 | <div class="modal-content"> |
380 | <div class="modal-body step-1" data-step="1" style="padding: 0;"> | 384 | <div class="modal-body step-1" data-step="1" style="padding: 0;"> |
381 | <div> | 385 | <div> |
382 | <div class="row" style="margin: 0;"> | 386 | <div class="row" style="margin: 0;"> |
383 | <div> | 387 | <div> |
384 | <div class="widget" style="margin-bottom: 0; box-shadow: none;"> | 388 | <div class="widget" style="margin-bottom: 0; box-shadow: none;"> |
385 | <div class="widget-header"> | 389 | <div class="widget-header"> |
386 | <i class="icon-pencil"></i> | 390 | <i class="icon-pencil"></i> |
387 | <i class="fa fa-tasks" aria-hidden="true"></i> | 391 | <i class="fa fa-tasks" aria-hidden="true"></i> |
388 | <h3>Add a New Contact</h3> | 392 | <h3>Add a New Contact</h3> |
389 | <div class="clearfix"></div> | 393 | <div class="clearfix"></div> |
390 | </div> | 394 | </div> |
391 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> | 395 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> |
392 | <div class="col-xs-12"> | 396 | <div class="col-xs-12"> |
393 | <div class="col-md-6"> | 397 | <div class="col-md-6"> |
394 | <div class="pull-left" style="width: 110px;"> | 398 | <div class="pull-left" style="width: 110px;"> |
395 | <label class="new-input-label"><b>First Name</b></label> | 399 | <label class="new-input-label"><b>First Name</b></label> |
396 | </div> | 400 | </div> |
397 | <div class="pull-left" style="margin-left: 15px;"> | 401 | <div class="pull-left" style="margin-left: 15px;"> |
398 | <input type="tel" ng-model="data.firstName" class="form-control" placeholder=""> | 402 | <input type="tel" ng-model="data.firstName" class="form-control" placeholder=""> |
399 | </div> | 403 | </div> |
400 | <div class="clearfix"></div> | 404 | <div class="clearfix"></div> |
401 | </div> | 405 | </div> |
402 | <div class="col-md-6"> | 406 | <div class="col-md-6"> |
403 | 407 | ||
404 | <div class="pull-left" style="width: 110px;"> | 408 | <div class="pull-left" style="width: 110px;"> |
405 | <label class="new-input-label"><b>Last Name</b></label> | 409 | <label class="new-input-label"><b>Last Name</b></label> |
406 | </div> | 410 | </div> |
407 | <div class="pull-left" style="margin-left: 15px;"> | 411 | <div class="pull-left" style="margin-left: 15px;"> |
408 | <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder=""> | 412 | <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder=""> |
409 | </div> | 413 | </div> |
410 | <div class="clearfix"></div> | 414 | <div class="clearfix"></div> |
411 | </div> | 415 | </div> |
412 | </div> | 416 | </div> |
413 | <div class="clearfix"></div><br> | 417 | <div class="clearfix"></div><br> |
414 | <div class="col-xs-12"> | 418 | <div class="col-xs-12"> |
415 | <div class="col-md-6"> | 419 | <div class="col-md-6"> |
416 | <div class="pull-left" style="width: 110px;"> | 420 | <div class="pull-left" style="width: 110px;"> |
417 | <label class="new-input-label"><b>Title</b></label> | 421 | <label class="new-input-label"><b>Title</b></label> |
418 | </div> | 422 | </div> |
419 | <div class="pull-left" style="margin-left: 15px;"> | 423 | <div class="pull-left" style="margin-left: 15px;"> |
420 | <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder=""> | 424 | <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder=""> |
421 | </div> | 425 | </div> |
422 | <div class="clearfix"></div> | 426 | <div class="clearfix"></div> |
423 | </div> | 427 | </div> |
424 | <div class="col-md-6"> | 428 | <div class="col-md-6"> |
425 | 429 | ||
426 | <div class="pull-left" style="width: 110px;"> | 430 | <div class="pull-left" style="width: 110px;"> |
427 | <label class="new-input-label"><b>Email</b></label> | 431 | <label class="new-input-label"><b>Email</b></label> |
428 | </div> | 432 | </div> |
429 | <div class="pull-left" style="margin-left: 15px;"> | 433 | <div class="pull-left" style="margin-left: 15px;"> |
430 | <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder=""> | 434 | <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder=""> |
431 | </div> | 435 | </div> |
432 | <div class="clearfix"></div> | 436 | <div class="clearfix"></div> |
433 | </div> | 437 | </div> |
434 | </div> | 438 | </div> |
435 | <div class="clearfix"></div><br> | 439 | <div class="clearfix"></div><br> |
436 | <div class="col-xs-12"> | 440 | <div class="col-xs-12"> |
437 | <div class="col-md-6"> | 441 | <div class="col-md-6"> |
438 | <div class="pull-left" style="width: 110px;"> | 442 | <div class="pull-left" style="width: 110px;"> |
439 | <label class="new-input-label"><b>Username</b></label> | 443 | <label class="new-input-label"><b>Username</b></label> |
440 | </div> | 444 | </div> |
441 | <div class="pull-left" style="margin-left: 15px;"> | 445 | <div class="pull-left" style="margin-left: 15px;"> |
442 | <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder=""> | 446 | <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder=""> |
443 | </div> | 447 | </div> |
444 | <div class="clearfix"></div> | 448 | <div class="clearfix"></div> |
445 | </div> | 449 | </div> |
446 | <div class="col-md-6"> | 450 | <div class="col-md-6"> |
447 | 451 | ||
448 | <div class="pull-left" style="width: 110px;"> | 452 | <div class="pull-left" style="width: 110px;"> |
449 | <label class="new-input-label"><b>Password</b></label> | 453 | <label class="new-input-label"><b>Password</b></label> |
450 | </div> | 454 | </div> |
451 | <div class="pull-left" style="margin-left: 15px;"> | 455 | <div class="pull-left" style="margin-left: 15px;"> |
452 | <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder=""> | 456 | <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder=""> |
453 | </div> | 457 | </div> |
454 | <div class="clearfix"></div> | 458 | <div class="clearfix"></div> |
455 | </div> | 459 | </div> |
456 | </div> | 460 | </div> |
457 | <div class="clearfix"></div><br> | 461 | <div class="clearfix"></div><br> |
458 | <div class="col-xs-12"> | 462 | <div class="col-xs-12"> |
459 | <div class="col-md-6"> | 463 | <div class="col-md-6"> |
460 | <div class="pull-left" style="width: 110px;"> | 464 | <div class="pull-left" style="width: 110px;"> |
461 | <label class="new-input-label"><b>Work Phone</b></label> | 465 | <label class="new-input-label"><b>Work Phone</b></label> |
462 | </div> | 466 | </div> |
463 | <div class="pull-left" style="margin-left: 15px;"> | 467 | <div class="pull-left" style="margin-left: 15px;"> |
464 | <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder=""> | 468 | <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder=""> |
465 | </div> | 469 | </div> |
466 | <div class="clearfix"></div> | 470 | <div class="clearfix"></div> |
467 | </div> | 471 | </div> |
468 | <div class="col-md-6"> | 472 | <div class="col-md-6"> |
469 | 473 | ||
470 | <div class="pull-left" style="width: 110px;"> | 474 | <div class="pull-left" style="width: 110px;"> |
471 | <label class="new-input-label"><b>Mobile Phone</b></label> | 475 | <label class="new-input-label"><b>Mobile Phone</b></label> |
472 | </div> | 476 | </div> |
473 | <div class="pull-left" style="margin-left: 15px;"> | 477 | <div class="pull-left" style="margin-left: 15px;"> |
474 | <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder=""> | 478 | <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder=""> |
475 | </div> | 479 | </div> |
476 | <div class="clearfix"></div> | 480 | <div class="clearfix"></div> |
477 | </div> | 481 | </div> |
478 | </div> | 482 | </div> |
479 | <div class="clearfix"></div><br> | 483 | <div class="clearfix"></div><br> |
480 | <div class="col-xs-12"> | 484 | <div class="col-xs-12"> |
481 | <div class="col-md-12"> | 485 | <div class="col-md-12"> |
482 | <div class="pull-left" style="width: 110px;"> | 486 | <div class="pull-left" style="width: 110px;"> |
483 | <label class="new-input-label"><b>Address</b></label> | 487 | <label class="new-input-label"><b>Address</b></label> |
484 | </div> | 488 | </div> |
485 | <div class="pull-right" style="width: calc(100% - 123px);"> | 489 | <div class="pull-right" style="width: calc(100% - 123px);"> |
486 | <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder=""> | 490 | <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder=""> |
487 | </div> | 491 | </div> |
488 | <div class="clearfix"></div> | 492 | <div class="clearfix"></div> |
489 | </div> | 493 | </div> |
490 | </div> | 494 | </div> |
491 | <div class="clearfix"></div> | 495 | <div class="clearfix"></div> |
492 | <br/> | 496 | <br/> |
493 | <div class="col-xs-12"> | 497 | <div class="col-xs-12"> |
494 | <div class="col-md-3"> | 498 | <div class="col-md-3"> |
495 | <div class="pull-left my-toggle-switch"> | 499 | <div class="pull-left my-toggle-switch"> |
496 | <div style="color: #ff9a01;">Price Email     | 500 | <div style="color: #ff9a01;">Price Email     |
497 | <input id="price-one2" checked type="checkbox" data-size="mini" data-width="55" data-toggle="toggle" data-on="On" data-off="Off"> | 501 | <input id="price-one2" checked type="checkbox" data-size="mini" data-width="55" data-toggle="toggle" data-on="On" data-off="Off"> |
498 | </div> | 502 | </div> |
499 | </div> | 503 | </div> |
500 | <div class="clearfix"></div> | 504 | <div class="clearfix"></div> |
501 | </div> | 505 | </div> |
502 | <div class="col-md-3"> | 506 | <div class="col-md-3"> |
503 | <div class="pull-left my-toggle-switch"> | 507 | <div class="pull-left my-toggle-switch"> |
504 | <div style="color: #ff9a01;">Primary Contact     | 508 | <div style="color: #ff9a01;">Primary Contact     |
505 | <input type="checkbox" ng-model="data.primaryContact"> | 509 | <input type="checkbox" ng-model="data.primaryContact"> |
506 | </div> | 510 | </div> |
507 | </div> | 511 | </div> |
508 | <div class="clearfix"></div> | 512 | <div class="clearfix"></div> |
509 | </div> | 513 | </div> |
510 | <div class="col-md-6"> | 514 | <div class="col-md-6"> |
511 | <div class="pull-left" style="width: 110px;"> | 515 | <div class="pull-left" style="width: 110px;"> |
512 | <label class="new-input-label"><b>Internal Note</b></label> | 516 | <label class="new-input-label"><b>Internal Note</b></label> |
513 | </div> | 517 | </div> |
514 | <div class="pull-left" style="width: calc(100% - 110px);"> | 518 | <div class="pull-left" style="width: calc(100% - 110px);"> |
515 | <textarea name="message" ng-model="data.note" rows="4" cols="34"></textarea> | 519 | <textarea name="message" ng-model="data.note" rows="4" cols="34"></textarea> |
516 | </div> | 520 | </div> |
517 | </div> | 521 | </div> |
518 | <div class="clearfix"></div> | 522 | <div class="clearfix"></div> |
519 | </div> | 523 | </div> |
520 | <div class="clearfix"></div><br> | 524 | <div class="clearfix"></div><br> |
521 | </div> | 525 | </div> |
522 | </div> | 526 | </div> |
523 | <div class="clearfix"></div> | 527 | <div class="clearfix"></div> |
524 | </div> | 528 | </div> |
525 | </div> | 529 | </div> |
526 | </div> | 530 | </div> |
527 | </div> | 531 | </div> |
528 | <div class="modal-footer" style="border-top: 0;"> | 532 | <div class="modal-footer" style="border-top: 0;"> |
529 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> | 533 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
530 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button> | 534 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button> |
531 | </div> | 535 | </div> |
532 | </div> | 536 | </div> |
533 | </div> | 537 | </div> |
534 | </form> | 538 | </form> |
535 | <div class="clearfix"></div> | 539 | <div class="clearfix"></div> |
536 | 540 | ||
537 | <form class="modal multi-step" id="aircraft-modal-3" name="aircraftForm"> | 541 | <form class="modal multi-step" id="aircraft-modal-3" name="aircraftForm"> |
538 | <div class="modal-dialog modal-lg"> | 542 | <div class="modal-dialog modal-lg"> |
539 | <div class="modal-content"> | 543 | <div class="modal-content"> |
540 | <div class="modal-body step-2" data-step="2" style="padding: 0;"> | 544 | <div class="modal-body step-2" data-step="2" style="padding: 0;"> |
541 | <div> | 545 | <div> |
542 | <div class="row" style="margin: 0;"> | 546 | <div class="row" style="margin: 0;"> |
543 | <div> | 547 | <div> |
544 | <div class="widget" style="margin-bottom: 0;box-shadow: none;"> | 548 | <div class="widget" style="margin-bottom: 0;box-shadow: none;"> |
545 | <div class="widget-header"> | 549 | <div class="widget-header"> |
546 | <i class="icon-pencil"></i> | 550 | <i class="icon-pencil"></i> |
547 | <i class="fa fa-tasks" aria-hidden="true"></i> | 551 | <i class="fa fa-tasks" aria-hidden="true"></i> |
548 | <h3>Add a New Aircraft</h3> | 552 | <h3>Add a New Aircraft</h3> |
549 | <div class="clearfix"></div> | 553 | <div class="clearfix"></div> |
550 | </div> | 554 | </div> |
551 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> | 555 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> |
552 | <div class="col-xs-12"> | 556 | <div class="col-xs-12"> |
553 | <div class="widget-header"> | 557 | <div class="widget-header"> |
554 | <i class="fa fa-list"></i> | 558 | <i class="fa fa-list"></i> |
555 | <h3>Aircraft List</h3> | 559 | <h3>Aircraft List</h3> |
556 | </div> | 560 | </div> |
557 | <div class="widget-content" style="padding:0px;border: 0px; padding: 0px !important;"> | 561 | <div class="widget-content" style="padding:0px;border: 0px; padding: 0px !important;"> |
558 | <div class="table-responsive"> | 562 | <div class="table-responsive"> |
559 | <table class="table table-striped table-bordered"> | 563 | <table class="table table-striped table-bordered"> |
560 | <thead> | 564 | <thead> |
561 | <tr> | 565 | <tr> |
562 | <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> --> | 566 | <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> --> |
563 | <th>Tail</th> | 567 | <th>Tail</th> |
564 | <th>Make</th> | 568 | <th>Make</th> |
565 | <th>Model</th> | 569 | <th>Model</th> |
566 | <th>Size</th> | 570 | <th>Size</th> |
567 | </tr> | 571 | </tr> |
568 | </thead> | 572 | </thead> |
569 | <tbody> | 573 | <tbody> |
570 | <tr ng-repeat="aircraftData in aircraftDetails track by $index"> | 574 | <tr ng-repeat="aircraftData in aircraftDetails track by $index"> |
571 | <!-- <td> | 575 | <!-- <td> |
572 | <input type="checkbox" ng-model="aircraftData.selected"/> | 576 | <input type="checkbox" ng-model="aircraftData.selected"/> |
573 | </td> --> | 577 | </td> --> |
574 | <td style="width: 20%"> | 578 | <td style="width: 20%"> |
575 | <input type="tel" class="form-control" ng-model="aircraftData.tail" required/> | 579 | <input type="tel" class="form-control" ng-model="aircraftData.tail" required/> |
576 | </td> | 580 | </td> |
577 | <td style="width: 20%"> | 581 | <td style="width: 20%"> |
578 | <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)"> | 582 | <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)"> |
579 | <option ng-repeat="make in aircraftMakeList">{{make}}</option> | 583 | <option ng-repeat="make in aircraftMakeList">{{make}}</option> |
580 | </select> | 584 | </select> |
581 | </td> | 585 | </td> |
582 | <td style="width: 20%"> | 586 | <td style="width: 20%"> |
583 | <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)"> | 587 | <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)"> |
584 | <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option> | 588 | <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option> |
585 | </select> | 589 | </select> |
586 | </td> | 590 | </td> |
587 | <td style="width: 20%"> | 591 | <td style="width: 20%"> |
588 | <select class="form-control" ng-model="aircraftData.size"> | 592 | <select class="form-control" ng-model="aircraftData.size"> |
589 | <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option> | 593 | <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option> |
590 | </select> | 594 | </select> |
591 | </td> | 595 | </td> |
592 | </tr> | 596 | </tr> |
593 | </tbody> | 597 | </tbody> |
594 | </table> | 598 | </table> |
595 | </div> | 599 | </div> |
596 | <div class="clearfix"></div> | 600 | <div class="clearfix"></div> |
597 | </div> | 601 | </div> |
598 | </div> | 602 | </div> |
599 | <div class="clearfix"></div> | 603 | <div class="clearfix"></div> |
600 | <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;"> | 604 | <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;"> |
601 | <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button> | 605 | <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button> |
602 | </div> | 606 | </div> |
603 | </div> | 607 | </div> |
604 | </div> | 608 | </div> |
605 | <div class="clearfix"></div> | 609 | <div class="clearfix"></div> |
606 | </div> | 610 | </div> |
607 | </div> | 611 | </div> |
608 | </div> | 612 | </div> |
609 | </div> | 613 | </div> |
610 | <div class="modal-footer" style="border-top: 0;"> | 614 | <div class="modal-footer" style="border-top: 0;"> |
611 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> | 615 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
612 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="saveCompanyData()">Save</button> | 616 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="saveCompanyData()">Save</button> |
613 | </div> | 617 | </div> |
614 | </div> | 618 | </div> |
615 | </div> | 619 | </div> |
616 | </form> | 620 | </form> |
617 | 621 | ||
618 | <form class="modal multi-step" id="distribute-modal-3" name="aircraftForm"> | 622 | <form class="modal multi-step" id="distribute-modal-3" name="aircraftForm"> |
619 | <div class="modal-dialog"> | 623 | <div class="modal-dialog"> |
620 | <div class="modal-content"> | 624 | <div class="modal-content"> |
621 | <div class="modal-body step-2" data-step="2" style="padding: 0;"> | 625 | <div class="modal-body step-2" data-step="2" style="padding: 0;"> |
622 | <div> | 626 | <div> |
623 | <div class="row" style="margin: 0;"> | 627 | <div class="row" style="margin: 0;"> |
624 | <p>Are you sure that you want to email pricing to everyone in your contact list</p> | 628 | <p>Are you sure that you want to email pricing to everyone in your contact list</p> |
625 | </div> | 629 | </div> |
626 | </div> | 630 | </div> |
627 | </div> | 631 | </div> |
628 | <div class="modal-footer" style="border-top: 0;"> | 632 | <div class="modal-footer" style="border-top: 0;"> |
629 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> | 633 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
630 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="sendMail()">Save</button> | 634 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="sendMail()">Save</button> |
631 | </div> | 635 | </div> |
632 | </div> | 636 | </div> |
633 | </div> | 637 | </div> |
634 | </form> | 638 | </form> |
635 | <!-- Le javascript | 639 | <!-- Le javascript |
636 | ================================================== --> | 640 | ================================================== --> |
637 | <!-- Placed at the end of the document so the pages load faster --> | 641 | <!-- Placed at the end of the document so the pages load faster --> |
638 | <!-- <script | 642 | <!-- <script |
639 | CKEDITOR.replace( 'editor2', { | 643 | CKEDITOR.replace( 'editor2', { |
640 | height: 250, | 644 | height: 250, |
641 | extraPlugins: 'divarea' | 645 | extraPlugins: 'divarea' |
642 | } ); | 646 | } ); |
643 | </script> --> | 647 | </script> --> |
644 | 648 |
app/partials/viewCompany/viewCompany.service.js
1 | (function(){ | 1 | (function(){ |
2 | 'use strict'; | 2 | 'use strict'; |
3 | angular.module('acufuel') | 3 | angular.module('acufuel') |
4 | .service('ViewCompanyService', ['$q', '$http', 'BASE_URL', ViewCompanyService]); | 4 | .service('ViewCompanyService', ['$q', '$http', 'BASE_URL', ViewCompanyService]); |
5 | 5 | ||
6 | function ViewCompanyService($q, $http, BASE_URL) { | 6 | function ViewCompanyService($q, $http, BASE_URL) { |
7 | 7 | ||
8 | this.getCompany = function(id) { | 8 | this.getCompany = function(id) { |
9 | 9 | ||
10 | var deferred = $q.defer(); | 10 | var deferred = $q.defer(); |
11 | $http({ | 11 | $http({ |
12 | method : 'GET', | 12 | method : 'GET', |
13 | url : BASE_URL.url +'/company/'+id, | 13 | url : BASE_URL.url +'/company/'+id, |
14 | headers : {'Content-Type': 'application/json'}, | 14 | headers : {'Content-Type': 'application/json'}, |
15 | }) | 15 | }) |
16 | .then(function (result){ | 16 | .then(function (result){ |
17 | deferred.resolve(result.data); | 17 | deferred.resolve(result.data); |
18 | },function (result){ | 18 | },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.getContact = function(id) { | 24 | this.getContact = function(id) { |
25 | 25 | ||
26 | var deferred = $q.defer(); | 26 | var deferred = $q.defer(); |
27 | $http({ | 27 | $http({ |
28 | method : 'GET', | 28 | method : 'GET', |
29 | url : BASE_URL.url +'/company/contact/'+id, | 29 | url : BASE_URL.url +'/company/contacts/'+id, |
30 | headers : {'Content-Type': 'application/json'}, | 30 | headers : {'Content-Type': 'application/json'}, |
31 | }) | 31 | }) |
32 | .then(function (result){ | 32 | .then(function (result){ |
33 | deferred.resolve(result.data); | 33 | deferred.resolve(result.data); |
34 | },function (result){ | 34 | },function (result){ |
35 | deferred.resolve(result.data); | 35 | deferred.resolve(result.data); |
36 | }) | 36 | }) |
37 | return deferred.promise; | 37 | return deferred.promise; |
38 | } | 38 | } |
39 | 39 | ||
40 | this.addContact = function(data) { | 40 | this.addContact = function(data) { |
41 | 41 | ||
42 | var deferred = $q.defer(); | 42 | var deferred = $q.defer(); |
43 | $http({ | 43 | $http({ |
44 | method : 'POST', | 44 | method : 'POST', |
45 | url : BASE_URL.url +'/company/add/contact', | 45 | url : BASE_URL.url +'/company/add/contact', |
46 | data : data, | 46 | data : data, |
47 | headers : {'Content-Type': 'application/json'}, | 47 | headers : {'Content-Type': 'application/json'}, |
48 | }) | 48 | }) |
49 | .then(function (result){ | 49 | .then(function (result){ |
50 | deferred.resolve(result.data); | 50 | deferred.resolve(result.data); |
51 | },function (result){ | 51 | },function (result){ |
52 | deferred.resolve(result.data); | 52 | deferred.resolve(result.data); |
53 | }) | 53 | }) |
54 | return deferred.promise; | 54 | return deferred.promise; |
55 | } | 55 | } |
56 | 56 | ||
57 | this.sendMail = function(id) { | 57 | this.sendMail = function(id) { |
58 | 58 | ||
59 | var deferred = $q.defer(); | 59 | var deferred = $q.defer(); |
60 | $http({ | 60 | $http({ |
61 | method : 'POST', | 61 | method : 'POST', |
62 | url : BASE_URL.url +'/mailPriceToContacts/'+id, | 62 | url : BASE_URL.url +'/mailPriceToContacts/'+id, |
63 | headers : {'Content-Type': 'application/json'}, | 63 | headers : {'Content-Type': 'application/json'}, |
64 | }) | 64 | }) |
65 | .then(function (result){ | 65 | .then(function (result){ |
66 | deferred.resolve(result.data); | 66 | deferred.resolve(result.data); |
67 | },function (result){ | 67 | },function (result){ |
68 | deferred.resolve(result.data); | 68 | deferred.resolve(result.data); |
69 | }) | 69 | }) |
70 | return deferred.promise; | 70 | return deferred.promise; |
71 | } | 71 | } |
72 | 72 | ||
73 | this.updateContact = function(data) { | 73 | this.updateContact = function(data) { |
74 | 74 | ||
75 | var deferred = $q.defer(); | 75 | var deferred = $q.defer(); |
76 | $http({ | 76 | $http({ |
77 | method : 'PUT', | 77 | method : 'PUT', |
78 | url : BASE_URL.url +'/company', | 78 | url : BASE_URL.url +'/company', |
79 | data : data, | 79 | data : data, |
80 | headers : {'Content-Type': 'application/json'}, | 80 | headers : {'Content-Type': 'application/json'}, |
81 | }) | 81 | }) |
82 | .then(function (result){ | 82 | .then(function (result){ |
83 | deferred.resolve(result.data); | 83 | deferred.resolve(result.data); |
84 | },function (result){ | 84 | },function (result){ |
85 | deferred.resolve(result.data); | 85 | deferred.resolve(result.data); |
86 | }) | 86 | }) |
87 | return deferred.promise; | 87 | return deferred.promise; |
88 | } | 88 | } |
89 | 89 | ||
90 | this.getAircraft = function(id) { | 90 | this.getAircraft = function(id) { |
91 | 91 | ||
92 | var deferred = $q.defer(); | 92 | var deferred = $q.defer(); |
93 | $http({ | 93 | $http({ |
94 | method : 'GET', | 94 | method : 'GET', |
95 | url : BASE_URL.url +'/company/aircrafts/'+id, | 95 | url : BASE_URL.url +'/company/aircrafts/'+id, |
96 | headers : {'Content-Type': 'application/json'}, | 96 | headers : {'Content-Type': 'application/json'}, |
97 | }) | 97 | }) |
98 | .then(function (result){ | 98 | .then(function (result){ |
99 | deferred.resolve(result.data); | 99 | deferred.resolve(result.data); |
100 | },function (result){ | 100 | },function (result){ |
101 | deferred.resolve(result.data); | 101 | deferred.resolve(result.data); |
102 | }) | 102 | }) |
103 | return deferred.promise; | 103 | return deferred.promise; |
104 | } | 104 | } |
105 | 105 | ||
106 | } | 106 | } |
107 | 107 | ||
108 | })(); | 108 | })(); |
app/partials/viewcontact/viewcontact.controller.js
File was created | 1 | 'use strict'; | |
2 | |||
3 | //Load controller | ||
4 | angular.module('acufuel') | ||
5 | |||
6 | .controller('viewcontactController', ['$scope', '$stateParams', 'ViewcontactService', function($scope, $stateParams, ViewcontactService) { | ||
7 | |||
8 | $(function() { | ||
9 | $('#toggle-five').bootstrapToggle(); | ||
10 | }) | ||
11 | |||
12 | var contactId = $stateParams.id; | ||
13 | ViewcontactService.getContact(contactId).then(function(result) { | ||
14 | $scope.contactDetail = result; | ||
15 | }) | ||
16 | |||
17 | }]); | ||
18 |
app/partials/viewcontact/viewcontact.html
File was created | 1 | <div class="container"> | |
2 | <div class="row"> | ||
3 | <div class="col-md-10" style="padding-right: 60px; margin-bottom: 30px;"> | ||
4 | <div class="widget"> | ||
5 | <div class="widget-header"> | ||
6 | <i class="icon-pencil"></i> | ||
7 | <i class="fa fa-building-o" aria-hidden="true"></i> | ||
8 | <h3>Antioch Flight Department</h3> | ||
9 | </div> | ||
10 | <div class="widget-content" style="padding-left: 0; padding-right: 0; "> | ||
11 | <div class="container"> | ||
12 | <div class="row"> | ||
13 | <div class="col-md-6" style="margin-left: 20px;"> | ||
14 | <div class="widget stacked"> | ||
15 | <div class="widget-header"> | ||
16 | <i class="fa fa-building-o" aria-hidden="true"></i> | ||
17 | <h3>Contact Detail</h3> | ||
18 | <div class="pull-right my-toggle-switch" style="margin-top: 10px; margin-right: 30px;"> | ||
19 | <div><input id="toggle-five" checked type="checkbox" data-size="mini" data-width="110" data-toggle="toggle" data-on="PRICE EMAIL ON" data-off="PRICE EMAIL OFF"> | ||
20 | </div> | ||
21 | </div> | ||
22 | </div> | ||
23 | <div class="widget-content"> | ||
24 | <div class="row" style="margin-left:0px"> | ||
25 | <div class="col-md-6" style="padding-left: 0px;"> | ||
26 | <h3> | ||
27 | <b style="color:#F90;">{{contactDetail.firstName}} {{contactDetail.lastName}}</b> | ||
28 | <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 11px;" aria-hidden="true"></i> | ||
29 | </h3> | ||
30 | {{contactDetail.owner.companyName}} | ||
31 | </div> | ||
32 | <div class="col-md-6"> | ||
33 | <div style="margin-bottom: 10px" class="input-group email-password"> | ||
34 | <span class="input-group-addon email-password"><i class="glyphicon glyphicon-user email-password-icon"></i></span> | ||
35 | <input id="login-username" type="text" ng-model="contatctDetail.userName" class="form-control email-password" name="username" value="" placeholder="username or email"> | ||
36 | </div> | ||
37 | |||
38 | <!-- <div class="input-group email-password"> | ||
39 | <span class="input-group-addon email-password"><i class="fa fa-key" aria-hidden="true"></i></span> | ||
40 | <input id="login-password" type="password" class="form-control email-password" name="password" placeholder="password"> | ||
41 | </div> --> | ||
42 | </div> | ||
43 | </div> | ||
44 | <div> | ||
45 | <p><i class="fa fa-map-marker"></i> {{contactDetail.address}} <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 11px;" aria-hidden="true"></i></p> | ||
46 | <p><i class="fa fa-phone"></i> (310) 2342-3433 <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 11px;" aria-hidden="true"></i></p> | ||
47 | <p><i class="fa fa-envelope"></i> {{contactDetail.email}} <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 11px;" aria-hidden="true"></i></p> | ||
48 | </div> | ||
49 | </br> | ||
50 | <div> | ||
51 | <p><b>Contact Notes</b> <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 11px;" aria-hidden="true"></i> | ||
52 | <p>{{contactDetail.note}}</p> | ||
53 | <button type="button" class="btn btn-primary">Send Price to This Contacts</button> | ||
54 | </div> | ||
55 | <!-- <div class="col-md-6"> | ||
56 | <button type="button" class="btn btn-primary">Send Price to This Contacts</button> | ||
57 | </div> --> | ||
58 | </div> | ||
59 | </div> | ||
60 | </div> | ||
61 | </div> | ||
62 | </div> | ||
63 | </div> | ||
64 | </div> | ||
65 | </div> | ||
66 | </div> |
app/partials/viewcontact/viewcontact.service.js
File was created | 1 | (function(){ | |
2 | 'use strict'; | ||
3 | angular.module('acufuel') | ||
4 | .service('ViewcontactService', ['$q', '$http', 'BASE_URL', ViewcontactService]); | ||
5 | |||
6 | function ViewcontactService($q, $http, BASE_URL) { | ||
7 | |||
8 | this.getContact = function(id) { | ||
9 | |||
10 | var deferred = $q.defer(); | ||
11 | $http({ | ||
12 | method : 'GET', | ||
13 | url : BASE_URL.url +'/company/contact/'+id, | ||
14 | headers : {'Content-Type': 'application/json'}, | ||
15 | }) | ||
16 | .then(function (result){ | ||
17 | deferred.resolve(result.data); | ||
18 | },function (result){ | ||
19 | deferred.resolve(result.data); | ||
20 | }) | ||
21 | return deferred.promise; | ||
22 | } | ||
23 | |||
24 | } | ||
25 | |||
26 | })(); |