Commit 259cb85cd60b66a729665f2c0a6304bd94850612

Authored by Swarn Singh
Exists in master

confilct fixed

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
8 <link rel="stylesheet" href="bower_components/nvd3/build/nv.d3.css">
9
10
11
7 <title>Acufuel</title> 12 <title>Acufuel</title>
8 <!-- styles --> 13 <!-- styles -->
9 <link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.10.0.custom.min.css"/> 14 <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"/> 15 <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"/> 16 <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" /> 17 <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"/> 18 <!-- <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.min.css"/>
14 <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.print.min.css"/> --> 19 <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.print.min.css"/> -->
15 <link rel="stylesheet" href="bower_components/toastr/toastr.min.css"/> 20 <link rel="stylesheet" href="bower_components/toastr/toastr.min.css"/>
16 <link rel="stylesheet" href="bower_components/angular-bootstrap/ui-bootstrap-csp.css"/> 21 <link rel="stylesheet" href="bower_components/angular-bootstrap/ui-bootstrap-csp.css"/>
17 <link href="bower_components/jqGrid/css/ui.jqgrid.css" rel="stylesheet"> 22 <link href="bower_components/jqGrid/css/ui.jqgrid.css" rel="stylesheet">
18 <link href="bower_components/angular-xeditable/dist/css/xeditable.css" rel="stylesheet"> 23 <link href="bower_components/angular-xeditable/dist/css/xeditable.css" rel="stylesheet">
19 <link href="bower_components/angular-bootstrap-toggle/dist/angular-bootstrap-toggle.min.css" 24 <link href="bower_components/angular-bootstrap-toggle/dist/angular-bootstrap-toggle.min.css"
20 rel="stylesheet"> 25 rel="stylesheet">
21 26
22 27
23 <link rel="stylesheet" href="css/main.css"/> 28 <link rel="stylesheet" href="css/main.css"/>
24 <link rel="stylesheet" href="css/base-admin-3.css"/> 29 <link rel="stylesheet" href="css/base-admin-3.css"/>
25 <link rel="stylesheet" href="css/base-admin-3-responsive.css"/> 30 <link rel="stylesheet" href="css/base-admin-3-responsive.css"/>
26 <link rel="stylesheet" href="css/custom.css"/> 31 <link rel="stylesheet" href="css/custom.css"/>
27 32
28 <link href="css/bootstrap-responsive.min.css" rel="stylesheet"> 33 <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
29 <link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600" rel="stylesheet"> 34 <link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600" rel="stylesheet">
30 <link href="js/plugins/cirque/cirque.css" rel="stylesheet"> 35 <link href="js/plugins/cirque/cirque.css" rel="stylesheet">
31 36
32 <link href="css/pages/dashboard.css" rel="stylesheet"> 37 <link href="css/pages/dashboard.css" rel="stylesheet">
33 <link href="js/plugins/faq/faq.css" rel="stylesheet"> 38 <link href="js/plugins/faq/faq.css" rel="stylesheet">
34 <link href="css/pages/plans.css" rel="stylesheet"> 39 <link href="css/pages/plans.css" rel="stylesheet">
35 40
36 <link href="js/plugins/lightbox/themes/evolution-dark/jquery.lightbox.css" rel="stylesheet"> 41 <link href="js/plugins/lightbox/themes/evolution-dark/jquery.lightbox.css" rel="stylesheet">
37 <link href="js/plugins/msgGrowl/css/msgGrowl.css" rel="stylesheet"> 42 <link href="js/plugins/msgGrowl/css/msgGrowl.css" rel="stylesheet">
38 <link href="js/plugins/msgbox/jquery.msgbox.css" rel="stylesheet"> 43 <link href="js/plugins/msgbox/jquery.msgbox.css" rel="stylesheet">
39 <link href="css/pages/pricing.css" rel="stylesheet"> 44 <link href="css/pages/pricing.css" rel="stylesheet">
40 <link href="css/pages/reports.css" rel="stylesheet"> 45 <link href="css/pages/reports.css" rel="stylesheet">
41 46
42 <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" /> 47 <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
43 48
44 <link rel="stylesheet" type="text/css" href="css/ngTable.css"> 49 <link rel="stylesheet" type="text/css" href="css/ngTable.css">
45 <link rel="stylesheet" href="bower_components/select2/select2.css"> 50 <link rel="stylesheet" href="bower_components/select2/select2.css">
46 51
47 <!-- <link rel="stylesheet" type="text/css" href="css/fullcalender.css"> 52 <!-- <link rel="stylesheet" type="text/css" href="css/fullcalender.css">
48 <link rel="stylesheet" type="text/css" href="css/fullcalenderprint.css"> --> 53 <link rel="stylesheet" type="text/css" href="css/fullcalenderprint.css"> -->
49 54
50 <!-- <link rel="stylesheet"; href="https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.css"> --> 55 <!-- <link rel="stylesheet"; href="https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.css"> -->
51 56
52 <!-- <link href='https://fullcalendar.io/js/fullcalendar-3.4.0/fullcalendar.min.css' rel='stylesheet' /> 57 <!-- <link href='https://fullcalendar.io/js/fullcalendar-3.4.0/fullcalendar.min.css' rel='stylesheet' />
53 <link href='https://fullcalendar.io/js/fullcalendar-3.4.0/fullcalendar.print.min.css' rel='stylesheet' media='print' /> 58 <link href='https://fullcalendar.io/js/fullcalendar-3.4.0/fullcalendar.print.min.css' rel='stylesheet' media='print' />
54 <script src='https://fullcalendar.io/js/fullcalendar-3.4.0/lib/moment.min.js'></script> 59 <script src='https://fullcalendar.io/js/fullcalendar-3.4.0/lib/moment.min.js'></script>
55 <script src='https://fullcalendar.io/js/fullcalendar-3.4.0/lib/jquery.min.js'></script> 60 <script src='https://fullcalendar.io/js/fullcalendar-3.4.0/lib/jquery.min.js'></script>
56 <script src='https://fullcalendar.io/js/fullcalendar-3.4.0/lib/jquery-ui.min.js'></script> --> 61 <script src='https://fullcalendar.io/js/fullcalendar-3.4.0/lib/jquery-ui.min.js'></script> -->
57 <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.css"/> 62 <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.css"/>
58 63
59 </head> 64 </head>
60 <body> 65 <body>
61 <!-- views --> 66 <!-- views -->
62 67
63 <!-- scripts --> 68 <!-- scripts -->
64 69
65 <script src="bower_components/jquery/dist/jquery.min.js"></script> 70 <script src="bower_components/jquery/dist/jquery.min.js"></script>
66 <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> 71 <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
67 <script src="js/libs/jquery-ui-1.10.0.custom.min.js"></script> 72 <script src="js/libs/jquery-ui-1.10.0.custom.min.js"></script>
68 <!--<script src="js/plugins/flot/jquery.flot.js"></script> 73 <!--<script src="js/plugins/flot/jquery.flot.js"></script>
69 <script src="js/plugins/flot/jquery.flot.pie.js"></script> 74 <script src="js/plugins/flot/jquery.flot.pie.js"></script>
70 <script src="js/plugins/flot/jquery.flot.resize.js"></script> 75 <script src="js/plugins/flot/jquery.flot.resize.js"></script>
71 <script src="js/plugins/flot/jquery.flot.orderBars.js"></script>--> 76 <script src="js/plugins/flot/jquery.flot.orderBars.js"></script>-->
72 <script src="js/plugins/hoverIntent/jquery.hoverIntent.minified.js"></script> 77 <script src="js/plugins/hoverIntent/jquery.hoverIntent.minified.js"></script>
73 <script src="js/plugins/lightbox/jquery.lightbox.min.js"></script> 78 <script src="js/plugins/lightbox/jquery.lightbox.min.js"></script>
74 <script src="js/plugins/validate/jquery.validate.js"></script> 79 <script src="js/plugins/validate/jquery.validate.js"></script>
75 <script src="js/plugins/msgbox/jquery.msgbox.min.js"></script> 80 <script src="js/plugins/msgbox/jquery.msgbox.min.js"></script>
76 81
77 <script src="bower_components/angular/angular.min.js"></script> 82 <script src="bower_components/angular/angular.min.js"></script>
78 <script src="bower_components/angular-route/angular-route.js"></script> 83 <script src="bower_components/angular-route/angular-route.js"></script>
79 <script src="bower_components/angular-cookies/angular-cookies.min.js"></script> 84 <script src="bower_components/angular-cookies/angular-cookies.min.js"></script>
80 <script src="bower_components/angular-resource/angular-resource.min.js"></script> 85 <script src="bower_components/angular-resource/angular-resource.min.js"></script>
81 <script src="bower_components/angular-animate/angular-animate.js"></script> 86 <script src="bower_components/angular-animate/angular-animate.js"></script>
82 <script src="bower_components/bootstrap/dist/js/bootstrap.js"></script> 87 <script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
83 <script src="bower_components/bootstrap-toggle/js/bootstrap-toggle.min.js"></script> 88 <script src="bower_components/bootstrap-toggle/js/bootstrap-toggle.min.js"></script>
84 <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script> 89 <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script>
85 <script src='bower_components/moment/min/moment.min.js'></script> 90 <script src='bower_components/moment/min/moment.min.js'></script>
86 <!-- <script src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script> --> 91 <!-- <script src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script> -->
87 <script src='bower_components/toastr/toastr.min.js'></script> 92 <script src='bower_components/toastr/toastr.min.js'></script>
88 <script src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script> 93 <script src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script>
89 <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> 94 <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
90 <script src="bower_components/jqGrid/js/i18n/grid.locale-en.js"></script> 95 <script src="bower_components/jqGrid/js/i18n/grid.locale-en.js"></script>
91 <script src="bower_components/jqGrid/js/jquery.jqGrid.min.js"></script> 96 <script src="bower_components/jqGrid/js/jquery.jqGrid.min.js"></script>
92 <script src="bower_components/angular-xeditable/dist/js/xeditable.js"></script> 97 <script src="bower_components/angular-xeditable/dist/js/xeditable.js"></script>
93 <script src="bower_components/angular-bootstrap-toggle/dist/angular-bootstrap-toggle.min.js"></script> 98 <script src="bower_components/angular-bootstrap-toggle/dist/angular-bootstrap-toggle.min.js"></script>
94 <script src="bower_components/select2/select2.js"></script> 99 <script src="bower_components/select2/select2.js"></script>
95 <script src="bower_components/angular-ui-select2/src/select2.js"></script> 100 <script src="bower_components/angular-ui-select2/src/select2.js"></script>
96 <script src="bower_components/angular-ckeditor/angular-ckeditor.js"></script> 101 <script src="bower_components/angular-ckeditor/angular-ckeditor.js"></script>
97 <script src="bower_components/angular-dragdrop/src/angular-dragdrop.min.js"></script> 102 <script src="bower_components/angular-dragdrop/src/angular-dragdrop.min.js"></script>
98 103
99 <!-- <script src="https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.js"></script> --> 104 <!-- <script src="https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.js"></script> -->
100 <script type="text/javascript" src="bower_components/angular-ui-calendar/src/calendar.js"></script> 105 <script type="text/javascript" src="bower_components/angular-ui-calendar/src/calendar.js"></script>
101 <!-- <script type="text/javascript" src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script> --> 106 <!-- <script type="text/javascript" src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script> -->
102 107
103 108
104 <!-- 109 <!--
105 <script src="scripts/inspinia.js"></script> 110 <script src="scripts/inspinia.js"></script>
106 <script src="plugins/iCheck/icheck.min.js"></script> 111 <script src="plugins/iCheck/icheck.min.js"></script>
107 --> 112 -->
108 113
109 <!-- <script src="./js/Application.js"></script> 114 <!-- <script src="./js/Application.js"></script>
110 <script src="js/charts/area.js"></script> 115 <script src="js/charts/area.js"></script>
111 <script src="js/charts/donut.js"></script> 116 <script src="js/charts/donut.js"></script>
112 <script src="js/charts/pie.js"></script> 117 <script src="js/charts/pie.js"></script>
113 <script src="js/charts/bar.js"></script> 118 <script src="js/charts/bar.js"></script>
114 <script src="js/demo/validation.js"></script> 119 <script src="js/demo/validation.js"></script>
115 <script src="js/charts/line.js"></script> --> 120 <script src="js/charts/line.js"></script> -->
116 <script src="js/demo/faq.js"></script> 121 <script src="js/demo/faq.js"></script>
117 <script src="js/plugins/faq/faq.js"></script> 122 <script src="js/plugins/faq/faq.js"></script>
118 <script src="js/demo/gallery.js"></script> 123 <script src="js/demo/gallery.js"></script>
119 <script src="js/demo/sliders.js"></script> 124 <script src="js/demo/sliders.js"></script>
120 <script src="js/plugins/msgGrowl/js/msgGrowl.js"></script> 125 <script src="js/plugins/msgGrowl/js/msgGrowl.js"></script>
121 <script src="js/demo/notifications.js"></script> 126 <script src="js/demo/notifications.js"></script>
122 127
123 <script src="js/ngTable.js"></script> 128 <script src="js/ngTable.js"></script>
124 129
125 <!-- <script src="js/fullcalender.js"></script> --> 130 <!-- <script src="js/fullcalender.js"></script> -->
126 131
127 <script src="http://cdn.ckeditor.com/4.6.1/standard-all/ckeditor.js"></script> 132 <script src="http://cdn.ckeditor.com/4.6.1/standard-all/ckeditor.js"></script>
128 <script src="https://code.highcharts.com/maps/highmaps.js"></script> 133 <script src="https://code.highcharts.com/maps/highmaps.js"></script>
129 <script src="https://code.highcharts.com/maps/modules/data.js"></script> 134 <script src="https://code.highcharts.com/maps/modules/data.js"></script>
130 <script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script> 135 <script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script>
131 <!-- Controllers --> 136 <!-- Controllers -->
132 <script src="js/app.js"></script> 137 <script src="js/app.js"></script>
133 <script src="js/app.constant.js"></script> 138 <script src="js/app.constant.js"></script>
134 <script src="partials/login/login.controller.js"></script> 139 <script src="partials/login/login.controller.js"></script>
135 <script src="partials/customers/customers.controller.js"></script> 140 <script src="partials/customers/customers.controller.js"></script>
136 <script src="partials/analytics/analytics.controller.js"></script> 141 <script src="partials/analytics/analytics.controller.js"></script>
137 <script src="partials/account/account.controller.js"></script> 142 <script src="partials/account/account.controller.js"></script>
138 <script src="partials/elements/elements.controller.js"></script> 143 <script src="partials/elements/elements.controller.js"></script>
139 <script src="partials/error/error.controller.js"></script> 144 <script src="partials/error/error.controller.js"></script>
140 <script src="partials/faq/faq.controller.js"></script> 145 <script src="partials/faq/faq.controller.js"></script>
141 <script src="partials/forms/forms.controller.js"></script> 146 <script src="partials/forms/forms.controller.js"></script>
142 <script src="partials/fuelManager/fuelManager.controller.js"></script> 147 <script src="partials/fuelManager/fuelManager.controller.js"></script>
143 <script src="partials/pricing/pricing.controller.js"></script> 148 <script src="partials/pricing/pricing.controller.js"></script>
144 <script src="partials/reports/reports.controller.js"></script> 149 <script src="partials/reports/reports.controller.js"></script>
145 <script src="partials/scheduler/scheduler.controller.js"></script> 150 <script src="partials/scheduler/scheduler.controller.js"></script>
146 <script src="partials/signup/signup.controller.js"></script> 151 <script src="partials/signup/signup.controller.js"></script>
147 <script src="partials/updateFuelManager/updateFuelManager.controller.js"></script> 152 <script src="partials/updateFuelManager/updateFuelManager.controller.js"></script>
148 <script src="partials/viewCompany/viewCompany.controller.js"></script> 153 <script src="partials/viewCompany/viewCompany.controller.js"></script>
149 <script src="partials/dashboard/dashboard.controller.js"></script> 154 <script src="partials/dashboard/dashboard.controller.js"></script>
150 <script src="partials/fuelOrders/fuelOrders.controller.js"></script> 155 <script src="partials/fuelOrders/fuelOrders.controller.js"></script>
151 <script src="partials/DispatchFuel/DispatchFuel.controller.js"></script> 156 <script src="partials/DispatchFuel/DispatchFuel.controller.js"></script>
152 <script src="partials/searchDispatchFuel/searchDispatchFuel.controller.js"></script> 157 <script src="partials/searchDispatchFuel/searchDispatchFuel.controller.js"></script>
153 <script src="partials/Accept/Accept.controller.js"></script> 158 <script src="partials/Accept/Accept.controller.js"></script>
154 <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> --> 159 <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> -->
155 <script src="partials/ContactView/ContactView.controller.js"></script> 160 <script src="partials/ContactView/ContactView.controller.js"></script>
156 <script src="partials/FuelVendors/FuelVendors.controller.js"></script> 161 <script src="partials/FuelVendors/FuelVendors.controller.js"></script>
157 <script src="partials/delselected/delselected.controller.js"></script> 162 <script src="partials/delselected/delselected.controller.js"></script>
158 <script src="partials/pricingcontact/pricingcontact.controller.js"></script> 163 <script src="partials/pricingcontact/pricingcontact.controller.js"></script>
159 <script src="partials/viewcontact/viewcontact.controller.js"></script> 164 <script src="partials/viewcontact/viewcontact.controller.js"></script>
160 <script src="partials/viewFuelVendor/viewFuelVendor.controller.js"></script> 165 <script src="partials/viewFuelVendor/viewFuelVendor.controller.js"></script>
161 <script src="partials/accountSetting/accountSetting.Controller.js"></script> 166 <script src="partials/accountSetting/accountSetting.Controller.js"></script>
162 <script src="partials/viewVendorContact/viewVendorContact.Controller.js"></script> 167 <script src="partials/viewVendorContact/viewVendorContact.Controller.js"></script>
163 <script src="partials/enterFuelOrder/enterFuelOrder.controller.js"></script> 168 <script src="partials/enterFuelOrder/enterFuelOrder.controller.js"></script>
164 169
165 <script src="partials/main/main.controller.js"></script> 170 <script src="partials/main/main.controller.js"></script>
166 <div ui-view></div> 171 <div ui-view></div>
167 <!-- End controllers --> 172 <!-- End controllers -->
168 173
169 174
170 <!-- services --> 175 <!-- services -->
171 <script src="partials/login/login.service.js"></script> 176 <script src="partials/login/login.service.js"></script>
172 <script src="partials/customers/customers.service.js"></script> 177 <script src="partials/customers/customers.service.js"></script>
173 <script src="partials/analytics/analytics.service.js"></script> 178 <script src="partials/analytics/analytics.service.js"></script>
174 <script src="partials/account/account.service.js"></script> 179 <script src="partials/account/account.service.js"></script>
175 <script src="partials/elements/elements.service.js"></script> 180 <script src="partials/elements/elements.service.js"></script>
176 <script src="partials/error/error.service.js"></script> 181 <script src="partials/error/error.service.js"></script>
177 <script src="partials/faq/faq.service.js"></script> 182 <script src="partials/faq/faq.service.js"></script>
178 <script src="partials/forms/forms.service.js"></script> 183 <script src="partials/forms/forms.service.js"></script>
179 <script src="partials/fuelManager/fuelManager.service.js"></script> 184 <script src="partials/fuelManager/fuelManager.service.js"></script>
180 <script src="partials/pricing/pricing.service.js"></script> 185 <script src="partials/pricing/pricing.service.js"></script>
181 <script src="partials/reports/reports.service.js"></script> 186 <script src="partials/reports/reports.service.js"></script>
182 187
183 <script src="partials/signup/signup.service.js"></script> 188 <script src="partials/signup/signup.service.js"></script>
184 <script src="partials/updateFuelManager/updateFuelManager.service.js"></script> 189 <script src="partials/updateFuelManager/updateFuelManager.service.js"></script>
185 <script src="partials/viewCompany/viewCompany.service.js"></script> 190 <script src="partials/viewCompany/viewCompany.service.js"></script>
186 <script src="partials/dashboard/dashboard.service.js"></script> 191 <script src="partials/dashboard/dashboard.service.js"></script>
187 <script src="partials/fuelOrders/fuelOrders.service.js"></script> 192 <script src="partials/fuelOrders/fuelOrders.service.js"></script>
188 <script src="partials/DispatchFuel/DispatchFuel.service.js"></script> 193 <script src="partials/DispatchFuel/DispatchFuel.service.js"></script>
189 <script src="partials/searchDispatchFuel/searchDispatchFuel.service.js"></script> 194 <script src="partials/searchDispatchFuel/searchDispatchFuel.service.js"></script>
190 <script src="partials/Accept/Accept.service.js"></script> 195 <script src="partials/Accept/Accept.service.js"></script>
191 <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> --> 196 <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> -->
192 <script src="partials/ContactView/ContactView.service.js"></script> 197 <script src="partials/ContactView/ContactView.service.js"></script>
193 <script src="partials/FuelVendors/FuelVendors.service.js"></script> 198 <script src="partials/FuelVendors/FuelVendors.service.js"></script>
194 <script src="partials/delselected/delselected.service.js"></script> 199 <script src="partials/delselected/delselected.service.js"></script>
195 <script src="partials/pricingcontact/pricingcontact.service.js"></script> 200 <script src="partials/pricingcontact/pricingcontact.service.js"></script>
196 <script src="partials/viewcontact/viewcontact.service.js"></script> 201 <script src="partials/viewcontact/viewcontact.service.js"></script>
197 <script src="partials/viewFuelVendor/viewFuelVendor.service.js"></script> 202 <script src="partials/viewFuelVendor/viewFuelVendor.service.js"></script>
198 <script src="partials/accountSetting/accountSetting.Service.js"></script> 203 <script src="partials/accountSetting/accountSetting.Service.js"></script>
199 <script src="partials/viewVendorContact/viewVendorContact.Service.js"></script> 204 <script src="partials/viewVendorContact/viewVendorContact.Service.js"></script>
200 <script src="partials/enterFuelOrder/enterFuelOrder.service.js"></script> 205 <script src="partials/enterFuelOrder/enterFuelOrder.service.js"></script>
201 206
202 <script src="partials/main/main.service.js"></script> 207 <script src="partials/main/main.service.js"></script>
203 <!-- <script src='https://fullcalendar.io/js/fullcalendar-3.4.0/fullcalendar.min.js'></script> --> 208 <!-- <script src='https://fullcalendar.io/js/fullcalendar-3.4.0/fullcalendar.min.js'></script> -->
204 <script type="text/javascript" src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script> 209 <script type="text/javascript" src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script>
205 <script type="text/javascript" src="bower_components/fullcalendar/dist/gcal.js"></script> 210 <script type="text/javascript" src="bower_components/fullcalendar/dist/gcal.js"></script>
206 211
212 <script src="partials/scheduler/scheduler.service.js"></script>
213
214 <!-- <script src="bower_components/angular/angular.js"></script> -->
215 <script src="bower_components/d3/d3.js"></script>
216 <script src="bower_components/nvd3/build/nv.d3.js"></script> <!-- or use another assembly -->
217
218 <script src="bower_components/angular-nvd3/dist/angular-nvd3.js"></script>
207 <script src="partials/scheduler/scheduler.service.js"></script> 219
208 220 </body>
209 </body> 221 </html>
1 'use strict'; 1 'use strict';
2 2
3 3
4 angular.module('acufuel', ['ngCookies', 'ngResource', 'ui.router', 'ngAnimate', 'ui.bootstrap', 'xeditable', 'ui.toggle', 'ngTable', 'ui.select2', 'ckeditor', 'ui.calendar', 'ngDragDrop']) 4 angular.module('acufuel', ['nvd3', 'ngCookies', 'ngResource', 'ui.router', 'ngAnimate', 'ui.bootstrap', 'xeditable', 'ui.toggle', 'ngTable', 'ui.select2', 'ckeditor', 'ui.calendar', 'ngDragDrop'])
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 85
86 .state("app.accountSetting", { 86 .state("app.accountSetting", {
87 url: "/accountSetting", 87 url: "/accountSetting",
88 templateUrl: "partials/accountSetting/accountSetting.html", 88 templateUrl: "partials/accountSetting/accountSetting.html",
89 controller: "AccountSettingController" 89 controller: "AccountSettingController"
90 }) 90 })
91 91
92 .state("app.ContactView", { 92 .state("app.ContactView", {
93 url: "/ContactView", 93 url: "/ContactView",
94 templateUrl: "partials/ContactView/ContactView.html", 94 templateUrl: "partials/ContactView/ContactView.html",
95 controller: "ContactViewController" 95 controller: "ContactViewController"
96 }) 96 })
97 .state("app.FuelVendors", { 97 .state("app.FuelVendors", {
98 url: "/FuelVendors", 98 url: "/FuelVendors",
99 templateUrl: "partials/FuelVendors/FuelVendors.html", 99 templateUrl: "partials/FuelVendors/FuelVendors.html",
100 controller: "FuelVendorsController" 100 controller: "FuelVendorsController"
101 }) 101 })
102 102
103 .state("app.analytics", { 103 .state("app.analytics", {
104 url: "/analytics", 104 url: "/analytics",
105 templateUrl: "partials/analytics/analytics.html", 105 templateUrl: "partials/analytics/analytics.html",
106 controller: "analyticsController" 106 controller: "analyticsController"
107 }) 107 })
108 108
109 .state("app.account", { 109 .state("app.account", {
110 url: "/account", 110 url: "/account",
111 templateUrl: "partials/account/account.html", 111 templateUrl: "partials/account/account.html",
112 controller: "accountController" 112 controller: "accountController"
113 }) 113 })
114 114
115 .state("app.dashboard", { 115 .state("app.dashboard", {
116 url: "/dashboard", 116 url: "/dashboard",
117 templateUrl: "partials/dashboard/dashboard.html", 117 templateUrl: "partials/dashboard/dashboard.html",
118 controller: "dashboardController" 118 controller: "dashboardController"
119 }) 119 })
120 120
121 .state("app.elements", { 121 .state("app.elements", {
122 url: "/elements", 122 url: "/elements",
123 templateUrl: "partials/elements/elements.html", 123 templateUrl: "partials/elements/elements.html",
124 controller: "elementsController" 124 controller: "elementsController"
125 }) 125 })
126 126
127 .state("app.error", { 127 .state("app.error", {
128 url: "/error", 128 url: "/error",
129 templateUrl: "partials/error/error.html", 129 templateUrl: "partials/error/error.html",
130 controller: "errorController" 130 controller: "errorController"
131 }) 131 })
132 132
133 .state("app.faq", { 133 .state("app.faq", {
134 url: "/faq", 134 url: "/faq",
135 templateUrl: "partials/faq/faq.html", 135 templateUrl: "partials/faq/faq.html",
136 controller: "faqController" 136 controller: "faqController"
137 }) 137 })
138 138
139 .state("app.forms", { 139 .state("app.forms", {
140 url: "/forms", 140 url: "/forms",
141 templateUrl: "partials/forms/forms.html", 141 templateUrl: "partials/forms/forms.html",
142 controller: "formsController" 142 controller: "formsController"
143 }) 143 })
144 144
145 .state("app.fuelManager", { 145 .state("app.fuelManager", {
146 url: "/fuelManager", 146 url: "/fuelManager",
147 templateUrl: "partials/fuelManager/fuelManager.html", 147 templateUrl: "partials/fuelManager/fuelManager.html",
148 controller: "fuelManagerController" 148 controller: "fuelManagerController"
149 }) 149 })
150 150
151 .state("app.pricing", { 151 .state("app.pricing", {
152 url: "/pricing", 152 url: "/pricing",
153 templateUrl: "partials/pricing/pricing.html", 153 templateUrl: "partials/pricing/pricing.html",
154 controller: "pricingController" 154 controller: "pricingController"
155 }) 155 })
156 156
157 .state("app.reports", { 157 .state("app.reports", {
158 url: "/reports", 158 url: "/reports",
159 templateUrl: "partials/reports/reports.html", 159 templateUrl: "partials/reports/reports.html",
160 controller: "reportsController" 160 controller: "reportsController"
161 }) 161 })
162 162
163 .state("app.scheduler", { 163 .state("app.scheduler", {
164 url: "/scheduler", 164 url: "/scheduler",
165 templateUrl: "partials/scheduler/scheduler.html", 165 templateUrl: "partials/scheduler/scheduler.html",
166 controller: "schedulerController" 166 controller: "schedulerController"
167 }) 167 })
168 .state("app.signup", { 168 .state("app.signup", {
169 url: "/signup", 169 url: "/signup",
170 templateUrl: "partials/signup/signup.html", 170 templateUrl: "partials/signup/signup.html",
171 controller: "signupController" 171 controller: "signupController"
172 }) 172 })
173 173
174 .state("app.updateFuelManager", { 174 .state("app.updateFuelManager", {
175 url: "/updateFuelManager", 175 url: "/updateFuelManager",
176 templateUrl: "partials/updateFuelManager/updateFuelManager.html", 176 templateUrl: "partials/updateFuelManager/updateFuelManager.html",
177 controller: "updateFuelManagerController", 177 controller: "updateFuelManagerController",
178 // data: { 178 // data: {
179 // authorizedRoles: ["fbo"], 179 // authorizedRoles: ["fbo"],
180 // } 180 // }
181 }) 181 })
182 182
183 .state("app.viewCompany", { 183 .state("app.viewCompany", {
184 url: "/viewCompany/:id", 184 url: "/viewCompany/:id",
185 templateUrl: "partials/viewCompany/viewCompany.html", 185 templateUrl: "partials/viewCompany/viewCompany.html",
186 controller: "viewCompanyController" 186 controller: "viewCompanyController"
187 }) 187 })
188 188
189 .state("app.viewFuelVendor", { 189 .state("app.viewFuelVendor", {
190 url: "/viewFuelVendor/:id", 190 url: "/viewFuelVendor/:id",
191 templateUrl: "partials/viewFuelVendor/viewFuelVendor.html", 191 templateUrl: "partials/viewFuelVendor/viewFuelVendor.html",
192 controller: "ViewFuelVendorController" 192 controller: "ViewFuelVendorController"
193 }) 193 })
194 194
195 .state("app.fuelOrders", { 195 .state("app.fuelOrders", {
196 url: "/fuelOrders", 196 url: "/fuelOrders",
197 templateUrl: "partials/fuelOrders/fuelOrders.html", 197 templateUrl: "partials/fuelOrders/fuelOrders.html",
198 controller: "fuelOrdersController" 198 controller: "fuelOrdersController"
199 }) 199 })
200 200
201 .state("app.DispatchFuel", { 201 .state("app.DispatchFuel", {
202 url: "/DispatchFuel", 202 url: "/DispatchFuel",
203 templateUrl: "partials/DispatchFuel/DispatchFuel.html", 203 templateUrl: "partials/DispatchFuel/DispatchFuel.html",
204 controller: "DispatchFuelController" 204 controller: "DispatchFuelController"
205 }) 205 })
206 206
207 .state("app.searchDispatchFuel", { 207 .state("app.searchDispatchFuel", {
208 url: "/searchDispatchFuel", 208 url: "/searchDispatchFuel",
209 templateUrl: "partials/searchDispatchFuel/searchDispatchFuel.html", 209 templateUrl: "partials/searchDispatchFuel/searchDispatchFuel.html",
210 controller: "searchDispatchFuelController" 210 controller: "searchDispatchFuelController"
211 }) 211 })
212 212
213 .state("app.Accept", { 213 .state("app.Accept", {
214 url: "/Accept", 214 url: "/Accept",
215 templateUrl: "partials/Accept/Accept.html", 215 templateUrl: "partials/Accept/Accept.html",
216 controller: "AcceptController" 216 controller: "AcceptController"
217 }) 217 })
218 218
219 .state("app.delselected", { 219 .state("app.delselected", {
220 url: "/delselected", 220 url: "/delselected",
221 templateUrl: "partials/delselected/delselected.html", 221 templateUrl: "partials/delselected/delselected.html",
222 controller: "delselectedController" 222 controller: "delselectedController"
223 }) 223 })
224 224
225 .state("app.pricingcontact", { 225 .state("app.pricingcontact", {
226 url: "/pricingcontact", 226 url: "/pricingcontact",
227 templateUrl: "partials/pricingcontact/pricingcontact.html", 227 templateUrl: "partials/pricingcontact/pricingcontact.html",
228 controller: "pricingcontactController" 228 controller: "pricingcontactController"
229 }) 229 })
230 230
231 .state("app.viewContact", { 231 .state("app.viewContact", {
232 url: "/viewContact/:id", 232 url: "/viewContact/:id",
233 templateUrl: "partials/viewcontact/viewcontact.html", 233 templateUrl: "partials/viewcontact/viewcontact.html",
234 controller: "viewcontactController" 234 controller: "viewcontactController"
235 }) 235 })
236 236
237 .state("app.viewVendorContact", { 237 .state("app.viewVendorContact", {
238 url: "/viewVendorContact/:id", 238 url: "/viewVendorContact/:id",
239 templateUrl: "partials/viewVendorContact/viewVendorContact.html", 239 templateUrl: "partials/viewVendorContact/viewVendorContact.html",
240 controller: "viewVendorContactController" 240 controller: "viewVendorContactController"
241 }) 241 })
242 242
243 .state("app.enterFuelOrder", { 243 .state("app.enterFuelOrder", {
244 url: "/enterFuelOrder", 244 url: "/enterFuelOrder",
245 templateUrl: "partials/enterFuelOrder/enterFuelOrder.html", 245 templateUrl: "partials/enterFuelOrder/enterFuelOrder.html",
246 controller: "enterFuelOrderController" 246 controller: "enterFuelOrderController"
247 }) 247 })
248 248
249 } 249 }
250 ]) 250 ])
251 251
252 .run(['$rootScope', '$state', 'LoginService', 'AUTH_EVENTS', function($rootScope, $state, LoginService, AUTH_EVENTS) { 252 .run(['$rootScope', '$state', 'LoginService', 'AUTH_EVENTS', function($rootScope, $state, LoginService, AUTH_EVENTS) {
253 $rootScope.$on('$stateChangeStart', function (event, next, nextParams, fromState) { 253 $rootScope.$on('$stateChangeStart', function (event, next, nextParams, fromState) {
254 $rootScope.currentUser = JSON.parse(window.localStorage.getItem('currentUser')); 254 $rootScope.currentUser = JSON.parse(window.localStorage.getItem('currentUser'));
255 255
256 LoginService.isAuthorized = function (authorizedRoles) { 256 LoginService.isAuthorized = function (authorizedRoles) {
257 if (!angular.isArray(authorizedRoles)) { 257 if (!angular.isArray(authorizedRoles)) {
258 authorizedRoles = [authorizedRoles]; 258 authorizedRoles = [authorizedRoles];
259 } 259 }
260 var userdata = JSON.parse(window.localStorage.getItem('currentUser')); 260 var userdata = JSON.parse(window.localStorage.getItem('currentUser'));
261 return (userdata? (authorizedRoles.indexOf(userdata.type) !== -1): false); 261 return (userdata? (authorizedRoles.indexOf(userdata.type) !== -1): false);
262 } 262 }
263 263
264 if ('data' in next && 'authorizedRoles' in next.data) { 264 if ('data' in next && 'authorizedRoles' in next.data) {
265 var authorizedRoles = next.data.authorizedRoles; 265 var authorizedRoles = next.data.authorizedRoles;
266 if (!LoginService.isAuthorized(authorizedRoles)) { 266 if (!LoginService.isAuthorized(authorizedRoles)) {
267 event.preventDefault(); 267 event.preventDefault();
268 if($state.current.name.length == 0) { 268 if($state.current.name.length == 0) {
269 $state.go('login') 269 $state.go('login')
270 } else { 270 } else {
271 $state.go($state.current, {}, {reload: true}); 271 $state.go($state.current, {}, {reload: true});
272 $rootScope.$broadcast(AUTH_EVENTS.notAuthorized); 272 $rootScope.$broadcast(AUTH_EVENTS.notAuthorized);
273 } 273 }
274 } 274 }
275 } 275 }
276 276
277 if (LoginService.isAuthenticated()) { 277 if (LoginService.isAuthenticated()) {
278 if (next.name == 'login') { 278 if (next.name == 'login') {
279 event.preventDefault(); 279 event.preventDefault();
280 $state.go('app.dashboard'); 280 $state.go('app.dashboard');
281 } 281 }
282 } 282 }
283 }); 283 });
284 }]) 284 }])
285 285
286 286
287 .directive("datepicker",function(){ 287 .directive("datepicker",function(){
288 return { 288 return {
289 restrict:"A", 289 restrict:"A",
290 link:function(scope,el,attr){ 290 link:function(scope,el,attr){
291 el.datepicker(); 291 el.datepicker();
292 } 292 }
293 }; 293 };
294 }) 294 })
295 295
296 296
297 297
298 298
299 299
300 300
301 301
app/partials/analytics/analytics.controller.js
1 'use strict'; 1 'use strict';
2 2
3 //Load controller 3 //Load controller
4 angular.module('acufuel') 4 angular.module('acufuel')
5 5
6 .controller('analyticsController', ['$scope',function($scope) { 6 .controller('analyticsController', ['$scope',function($scope) {
7 7
8 $scope.test = "Testing..."; 8 $(document).ready(function(){
9 $(function () {
10
11 $.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=us-population-density.json&callback=?', function (data) {
12
13 // Make codes uppercase to match the map data
14 $.each(data, function () {
15 this.code = this.code.toUpperCase();
16 });
17
18 // Instanciate the map
19 Highcharts.mapChart('container', {
20
21 chart: {
22 borderWidth: 1
23 },
24
25 title: {
26 text: 'US population density (/kmยฒ)'
27 },
28
29 legend: {
30 layout: 'horizontal',
31 borderWidth: 0,
32 backgroundColor: 'rgba(255,255,255,0.85)',
33 floating: true,
34 verticalAlign: 'top',
35 y: 25
36 },
37
38 mapNavigation: {
39 enabled: true
40 },
41
42 colorAxis: {
43 min: 1,
44 type: 'logarithmic',
45 minColor: '#EEEEFF',
46 maxColor: '#000022',
47 stops: [
48 [0, '#EFEFFF'],
49 [0.67, '#4444FF'],
50 [1, '#000022']
51 ]
52 },
53
54 series: [{
55 animation: {
56 duration: 1000
57 },
58 data: data,
59 mapData: Highcharts.maps['countries/us/us-all'],
60 joinBy: ['postal-code', 'code'],
61 dataLabels: {
62 enabled: true,
63 color: '#FFFFFF',
64 format: '{point.code}'
65 },
66 name: 'Population density',
67 tooltip: {
68 pointFormat: '{point.code}: {point.value}/kmยฒ'
69 }
70 }]
71 });
72 });
73 });
74 })
75
76 $scope.optionsmfs = {
77 chart: {
78 type: 'discreteBarChart',
79 height: 450,
80 margin : {
81 top: 20,
82 right: 20,
83 bottom: 60,
84 left: 55,
85 },
86 color: ["#FF7F0E"],
87 x: function(d){ return d.label; },
88 y: function(d){ return d.value; },
89 showValues: false,
90 valueFormat: function(d){
91 return d3.format(',.4f')(d);
92 },
93 transitionDuration: 500,
94 xAxis: {
95 axisLabel: 'X Axis'
96 },
97 yAxis: {
98 axisLabel: 'Y Axis',
99 axisLabelDistance: 30
100 }
101 }
102 };
103
104 $scope.datamfs = [{
105 key: "Cumulative Return",
106 values: [
107 { "label" : "A" , "value" : 229.765957771107 },
108 { "label" : "B" , "value" : 0 },
109 { "label" : "C" , "value" : 32.807804682612 },
110 { "label" : "D" , "value" : 196.45946739256 },
111 { "label" : "E" , "value" : 0.19434030906893 },
112 { "label" : "F" , "value" : 98.079782601442 },
113 { "label" : "G" , "value" : 13.925743130903 },
114 { "label" : "H" , "value" : 5.1387322875705 },
115 { "label" : "I" , "value" : 4.1387322875705 },
116 { "label" : "J" , "value" : 23.1387322875705 },
117 { "label" : "K" , "value" : 233.1387322875705 },
118 { "label" : "L" , "value" : 22.1387322875705 },
119 ]
120 }]
121
122 $scope.optionspc = {
123 chart: {
124 type: 'pieChart',
125 height: 500,
126 minColor: ["#FEDFC3"],
127 maxColor: ["#FF7F0E"],
128 x: function(d){return d.key;},
129 y: function(d){return d.y;},
130 showLabels: false,
131 segmentShowStroke : false,
132 animationSteps : 20,
133 animationEasing : "linear",
134 animateScale : true,
135 duration: 500,
136 labelThreshold: 0.01,
137 labelSunbeamLayout: true,
138 legend: {
139 margin: {
140 top: 5,
141 right: 35,
142 bottom: 5,
143 left: 0
144 }
145 }
146 }
147 };
148
149 $scope.datapc = [
150 {
151 key: "A",
152 y: 3
153 },
154 {
155 key: "B",
156 y: 2
157 },
158 {
159 key: "C",
160 y: 3
161 },
162 {
163 key: "D",
164 y: 1
165 },
166 {
167 key: "E",
168 y: 5
169 }
170 ];
9 171
10 }]); 172 }]);
11 173
12 174
13 175
app/partials/analytics/analytics.html
1 <style> 1 <style>
2 .chart-holder { 2 .chart-holder {
3 height: 325px; 3 height: 325px;
4 } 4 }
5 .cirque-stats { 5 .cirque-stats {
6 text-align: center; 6 text-align: center;
7 } 7 }
8 .cirque-stats .cirque-container { 8 .cirque-stats .cirque-container {
9 margin-top: 1.5em; 9 margin-top: 1.5em;
10 margin-bottom: 1.5em; 10 margin-bottom: 1.5em;
11 margin-right: 2em; 11 margin-right: 2em;
12 margin-left: 2em; 12 margin-left: 2em;
13 } 13 }
14 .subnavbar .mainnav > li:nth-child(3) > a{ 14 .subnavbar .mainnav > li:nth-child(3) > a{
15 color: #ff9900; 15 color: #ff9900;
16 } 16 }
17 </style> 17 </style>
18 <div class="main"> 18 <div class="main">
19 <div class="container"> 19 <div class="container">
20 <div class="row"> 20 <div class="row">
21 <div class="col-md-6"> 21 <div class="col-md-6">
22 <div class="widget stacked"> 22 <div class="widget stacked">
23 <div class="widget-header"> 23 <div class="widget-header">
24 <i class="icon-bar-chart"></i> 24 <i class="icon-bar-chart"></i>
25 <h3>Bar Chart</h3> 25 <h3>Monthly Fuel Sales</h3>
26 </div> 26 </div>
27 <!-- /widget-header --> 27 <!-- /widget-header -->
28 <div class="widget-content"> 28 <div class="widget-content">
29 <div id="bar-chart" class="chart-holder"></div> 29 <nvd3 options="optionsmfs" data="datamfs"></nvd3>
30 <!-- /bar-chart --> 30 <!-- /bar-chart -->
31 </div> 31 </div>
32 <!-- /widget-content --> 32 <!-- /widget-content -->
33 </div> 33 </div>
34 <!-- /widget --> 34 <!-- /widget -->
35 </div> 35 </div>
36 <!-- /.span6 --> 36 <!-- /.span6 -->
37 <div class="col-md-6">
38 <div class="widget stacked">
39 <div class="widget-header">
40 <i class="icon-bar-chart"></i>
41 <h3>Regional PAP Pricing</h3>
42 </div>
43 <!-- /widget-header -->
44 <div class="widget-content">
45 <div id="container" style="width: 100%; height: 325px;"></div>
46 </div>
47 <!-- /widget-content -->
48 </div>
49 <!-- /widget -->
50 </div>
51 <!-- /.span6 -->
52 </div> 37 </div>
53 <div class="row"> 38 <div class="row">
54 <div class="col-md-6"> 39
55 <div class="widget stacked">
56 <div class="widget-header">
57 <i class="icon-bar-chart"></i>
58 <h3>Cirque Stats</h3>
59 </div>
60 <!-- /widget-header -->
61 <div class="widget-content">
62 <div class="cirque-stats">
63 <div class="ui-cirque" data-value="2875" data-total="3245" data-arc-color="#FF9900" data-label="ratio"></div>
64 <div class="ui-cirque" data-value="13" data-arc-color="#222222"></div>
65 <div class="ui-cirque" data-value="63" data-total="225" data-arc-color="#888888" data-label="ratio"></div>
66 <div class="ui-cirque" data-value="40" data-arc-color="#222222"></div>
67 <div class="ui-cirque" data-value="72" data-arc-color="#888888" data-label="ratio"></div>
68 <div class="ui-cirque" data-value="57" data-arc-color="#FF9900"></div>
69 </div>
70 <!-- /.cirque-stats -->
71 </div>
72 <!-- /widget-content -->
73 </div>
74 <!-- /widget -->
75 </div>
76 <!-- /.span6 -->
77 <div class="col-md-6">
78 <div class="widget stacked">
79 <div class="widget-header">
80 <i class="icon-bar-chart"></i>
81 <h3>Area Chart</h3>
82 </div>
83 <!-- /widget-header -->
84 <div class="widget-content">
85 <div id="area-chart" class="chart-holder"></div>
86 <!-- /area-chart -->
87 </div>
88 <!-- /widget-content -->
89 </div>
90 <!-- /widget -->
91 </div>
92 <!-- /.span6 -->
93 </div> 40 </div>
94 <div class="row"> 41 <div class="row">
95 <div class="col-md-6"> 42 <div class="col-md-6">
96 <div class="widget stacked"> 43 <div class="widget stacked">
97 <div class="widget-header"> 44 <div class="widget-header">
98 <i class="icon-bar-chart"></i> 45 <i class="icon-bar-chart"></i>
99 <h3>Pie Chart</h3> 46 <h3>Customer Sources</h3>
100 </div> 47 </div>
101 <!-- /widget-header --> 48 <!-- /widget-header -->
102 <div class="widget-content"> 49 <div class="widget-content">
103 <div id="pie-chart" class="chart-holder"></div> 50 <nvd3 options="optionspc" data="datapc"></nvd3>
104 <!-- /pie-chart --> 51 <!-- /pie-chart -->
105 </div> 52 </div>
106 <!-- /widget-content --> 53 <!-- /widget-content -->
107 </div> 54 </div>
108 <!-- /widget --> 55 <!-- /widget -->
109 </div> 56 </div>
110 <!-- /span6 --> 57 <!-- /span6 -->
111 <div class="col-md-6"> 58
112 <div class="widget stacked"> 59 <div class="col-md-6">
113 <div class="widget-header">
114 <i class="icon-bar-chart"></i>
115 <h3>Donut Chart</h3>
116 </div>
117 <!-- /widget-header -->
118 <div class="widget-content">
119 <div id="donut-chart" class="chart-holder"></div>
120 <!-- /bar-chart -->
121 </div>
122 <!-- /widget-content -->
123 </div>
124 <!-- /widget -->
125 </div>
126 <!-- /span6 -->
127 </div>
128 <div class="row">
129 <div class="col-md-6">
130 <div class="widget stacked"> 60 <div class="widget stacked">
131 <div class="widget-header"> 61 <div class="widget-header">
132 <i class="icon-bar-chart"></i> 62 <i class="icon-bar-chart"></i>
133 <h3>Line Chart</h3> 63 <h3>Regional PAP Pricing</h3>
134 </div> 64 </div>
135 <!-- /widget-header --> 65 <!-- /widget-header -->
136 <div class="widget-content"> 66 <div class="widget-content">
137 <div id="line-chart" class="chart-holder"></div> 67 <div id="container" style="width: 100%; height: 325px;"></div>
138 <!-- /line-chart -->
139 </div> 68 </div>
140 <!-- /widget-content --> 69 <!-- /widget-content -->
141 </div> 70 </div>
142 <!-- /widget --> 71 <!-- /widget -->
143 </div> 72 </div>
144 <!-- /span6 --> 73 <!-- /.span6 -->
74
145 </div> 75 </div>
146 <!-- /row --> 76
147 </div> 77 </div>
148 <!-- /container --> 78 <!-- /container -->
149 </div> 79 </div>
150 <!-- /main --> 80 <!-- /main -->
151 <!-- Le javascript 81 <!-- Le javascript
152 ================================================== --> 82 ================================================== -->
153 <!-- Placed at the end of the document so the pages load faster --> 83 <!-- Placed at the end of the document so the pages load faster -->
154 <script src="./js/libs/jquery-1.9.1.min.js"></script> 84 <script src="./js/libs/jquery-1.9.1.min.js"></script>
155 <script src="./js/libs/jquery-ui-1.10.0.custom.min.js"></script> 85 <script src="./js/libs/jquery-ui-1.10.0.custom.min.js"></script>
156 <script src="./js/libs/bootstrap.min.js"></script> 86 <script src="./js/libs/bootstrap.min.js"></script>
157 <script src="./js/plugins/cirque/cirque.js"></script> 87 <script src="./js/plugins/cirque/cirque.js"></script>
158 <script src="./js/plugins/flot/jquery.flot.js"></script> 88 <script src="./js/plugins/flot/jquery.flot.js"></script>
159 <script src="./js/plugins/flot/jquery.flot.pie.js"></script> 89 <script src="./js/plugins/flot/jquery.flot.pie.js"></script>
160 <script src="./js/plugins/flot/jquery.flot.orderBars.js"></script> 90 <script src="./js/plugins/flot/jquery.flot.orderBars.js"></script>
161 <script src="./js/plugins/flot/jquery.flot.resize.js"></script> 91 <script src="./js/plugins/flot/jquery.flot.resize.js"></script>
162 <script src="./js/Application.js"></script> 92 <script src="./js/Application.js"></script>
163 <script src="./js/charts/bar.js"></script> 93 <script src="./js/charts/bar.js"></script>
164 <script src="./js/charts/donut.js"></script> 94 <script src="./js/charts/donut.js"></script>
165 <script src="./js/charts/line.js"></script> 95 <script src="./js/charts/line.js"></script>
166 <script src="./js/charts/pie.js"></script> 96 <script src="./js/charts/pie.js"></script>
167 <script src="./js/charts/area.js"></script> 97 <script src="./js/charts/area.js"></script>
168 <script type="text/javascript"> 98 <script type="text/javascript">
169 $(document).ready(function(){
170 $(function () {
171
172 $.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=us-population-density.json&callback=?', function (data) {
173
174 // Make codes uppercase to match the map data
175 $.each(data, function () {
176 this.code = this.code.toUpperCase();
177 });
178
179 // Instanciate the map
180 Highcharts.mapChart('container', {
181
182 chart: {
183 borderWidth: 1
184 },
185
186 title: {
187 text: 'US population density (/kmยฒ)'
188 },
189
190 legend: {
191 layout: 'horizontal',
192 borderWidth: 0,
193 backgroundColor: 'rgba(255,255,255,0.85)',
194 floating: true,
195 verticalAlign: 'top',
196 y: 25
197 },
198
199 mapNavigation: {
200 enabled: true
201 },
202
203 colorAxis: {
204 min: 1,
205 type: 'logarithmic',
206 minColor: '#EEEEFF',
207 maxColor: '#000022',
208 stops: [
209 [0, '#EFEFFF'],
210 [0.67, '#4444FF'],
211 [1, '#000022']
212 ]
213 },
214 99
215 series: [{
216 animation: {
217 duration: 1000
218 },
219 data: data,
220 mapData: Highcharts.maps['countries/us/us-all'],
221 joinBy: ['postal-code', 'code'],
222 dataLabels: {
223 enabled: true,
224 color: '#FFFFFF',
225 format: '{point.code}'
226 },
227 name: 'Population density',
228 tooltip: {
229 pointFormat: '{point.code}: {point.value}/kmยฒ'
230 }
231 }]
232 });
233 });
234 });
235 })
app/partials/customers/customers.controller.js
1 'use strict'; 1 'use strict';
2 2
3 //Load controller 3 //Load controller
4 angular.module('acufuel') 4 angular.module('acufuel')
5 .controller('customersController', ['$scope', '$rootScope', '$uibModal', '$filter', '$http', '$state', 'CustomersService', 'ViewCompanyService', 'NgTableParams', customersController]); 5 .controller('customersController', ['$scope', '$rootScope', '$uibModal', '$filter', '$http', '$state', 'CustomersService', 'ViewCompanyService', 'NgTableParams', customersController]);
6 6
7 function customersController($scope, $rootScope, $uibModal, $filter, $http, $state, CustomersService, ViewCompanyService, NgTableParams) { 7 function customersController($scope, $rootScope, $uibModal, $filter, $http, $state, CustomersService, ViewCompanyService, NgTableParams) {
8 $(document).ready(function() { 8 $(document).ready(function() {
9 $('#example').DataTable(); 9 // $('#example').DataTable();
10 }); 10 });
11 $scope.userProfileId = JSON.parse(localStorage.getItem('userProfileId')) 11 $scope.userProfileId = JSON.parse(localStorage.getItem('userProfileId'))
12 $scope.reset2 = function(){ 12 $scope.reset2 = function(){
13 $("input").val(""); 13 $("input").val("");
14 $scope.removeMarginValidation(); 14 $scope.removeMarginValidation();
15 } 15 }
16
16 17
17 $scope.data = {}; 18 $scope.data = {};
18 $scope.aircraft = {}; 19 $scope.aircraft = {};
19 $scope.data.activate = true; 20 $scope.data.activate = true;
20 $scope.showLoader = false; 21 $scope.showLoader = true;
21 getAllCompanies(); 22 getAllCompanies();
22 23
23 /*function getAllCompanies(){ 24 /*function getAllCompanies(){
24 CustomersService.getAllCompanies().then(function(result) { 25 CustomersService.getAllCompanies().then(function(result) {
25 $scope.companyList = result; 26 $scope.companyList = result;
26 for(var i=0; i<$scope.companyList.length; i++){ 27 for(var i=0; i<$scope.companyList.length; i++){
27 $scope.companyList[i].masterMargin = $scope.companyList[i].margin.id; 28 $scope.companyList[i].masterMargin = $scope.companyList[i].margin.id;
28 } 29 }
29 }) 30 })
30 31
31 }*/ 32 }*/
32 33
33 $scope.statusFilter = [ 34 $scope.statusFilter = [
34 {id: "", title: "Show All"}, 35 {id: "", title: "Show All"},
35 {id: "true", title: "Active"}, 36 {id: "true", title: "Active"},
36 {id: "false", title: "Inactive"} 37 {id: "false", title: "Inactive"}
37 ] 38 ]
38 39
39 /*function getAllCompanies(){ 40 /*function getAllCompanies(){
40 $scope.displayCompanyList = new NgTableParams({ 41 $scope.displayCompanyList = new NgTableParams({
41 page: 1, 42 page: 1,
42 count: 10 43 count: 10
43 }, { 44 }, {
44 total: 0, 45 total: 0,
45 getData: function($defer, params) { 46 getData: function($defer, params) {
46 CustomersService.getAllCompanies().then(function(result) { 47 CustomersService.getAllCompanies().then(function(result) {
47 $scope.companyList = result; 48 $scope.companyList = result;
48 for(var i=0; i<$scope.companyList.length; i++){ 49 for(var i=0; i<$scope.companyList.length; i++){
49 $scope.companyList[i].masterMargin = $scope.companyList[i].margin.id; 50 $scope.companyList[i].masterMargin = $scope.companyList[i].margin.id;
50 } 51 }
51 var filteredData = params.filter() ? 52 var filteredData = params.filter() ?
52 $filter('filter')($scope.companyList, params.filter()) : $scope.companyList; 53 $filter('filter')($scope.companyList, params.filter()) : $scope.companyList;
53 var orderedData = params.sorting() ? 54 var orderedData = params.sorting() ?
54 $filter('orderBy')(filteredData, params.orderBy()) : $scope.companyList; 55 $filter('orderBy')(filteredData, params.orderBy()) : $scope.companyList;
55 56
56 params.total(orderedData.length); 57 params.total(orderedData.length);
57 $defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count())); 58 $defer.resolve(orderedData.slice((params.page() - 1) * params.count(), params.page() * params.count()));
58 }) 59 })
59 } 60 }
60 }); 61 });
61 }*/ 62 }*/
62 63
63 function getAllCompanies(){ 64 function getAllCompanies(){
64 CustomersService.getAllCompanies().then(function(result) { 65 CustomersService.getAllCompanies().then(function(result) {
65 console.log('log', result); 66 console.log('log', result);
66 $scope.companyList = result; 67 $scope.companyList = result;
67 for (var i = 0; i < $scope.companyList.length; i++) { 68 for (var i = 0; i < $scope.companyList.length; i++) {
68 if ($scope.companyList[i].companyContact != null) { 69 if ($scope.companyList[i].companyContact != null) {
69 if ($scope.companyList[i].companyContact.contactNumber != null || $scope.companyList[i].companyContact.contactNumber != undefined) { 70 if ($scope.companyList[i].companyContact.contactNumber != null || $scope.companyList[i].companyContact.contactNumber != undefined) {
70 $scope.companyList[i].newContactNumber = $scope.companyList[i].companyContact.contactNumber; 71 $scope.companyList[i].newContactNumber = $scope.companyList[i].companyContact.contactNumber;
71 } 72 }
72 } 73 }
73 if ($scope.companyList[i].primaryContact != null) { 74 if ($scope.companyList[i].primaryContact != null) {
74 if ($scope.companyList[i].primaryContact.firstName != null && $scope.companyList[i].primaryContact.lastName != null) { 75 if ($scope.companyList[i].primaryContact.firstName != null && $scope.companyList[i].primaryContact.lastName != null) {
75 $scope.companyList[i].primaryContactName = $scope.companyList[i].primaryContact.firstName + ' ' + $scope.companyList[i].primaryContact.lastName; 76 $scope.companyList[i].primaryContactName = $scope.companyList[i].primaryContact.firstName + ' ' + $scope.companyList[i].primaryContact.lastName;
76 } 77 }
77 } 78 }
78 if ($scope.companyList[i].margin != null) { 79 if ($scope.companyList[i].margin != null) {
79 if ($scope.companyList[i].margin.marginName != null) { 80 if ($scope.companyList[i].margin.marginName != null) {
80 $scope.companyList[i].masterMargin = $scope.companyList[i].margin.id; 81 $scope.companyList[i].masterMargin = $scope.companyList[i].margin.id;
81 } 82 }
82 } 83 }
83 } 84 }
84 $scope.displayCompanyList = new NgTableParams({ 85 $scope.displayCompanyList = new NgTableParams({
85 page: 1, 86 page: 1,
86 count: 10, 87 count: 10,
87 }, { 88 }, {
88 data: $scope.companyList 89 data: $scope.companyList
89 }); 90 });
91 $scope.showLoader = false;
90 }) 92 })
91 } 93 }
92 94
93 $scope.editMargin = function(customer){ 95 $scope.editMargin = function(customer){
94 console.log('customer', customer); 96 console.log('customer', customer);
95 $scope.showLoader = true; 97 $scope.showLoader = true;
96 event.stopPropagation(); 98 event.stopPropagation();
97 99
98 var companyMargin = "companyName=" + customer.companyName + "&masterMargin=" + customer.masterMargin 100 var companyMargin = "companyName=" + customer.companyName + "&masterMargin=" + customer.masterMargin
99 + "&addressOne=" + customer.addressOne + "&addressTwo=" + customer.addressTwo + "&city=" + customer.city + "&state=" 101 + "&addressOne=" + customer.addressOne + "&addressTwo=" + customer.addressTwo + "&city=" + customer.city + "&state="
100 + customer.state + "&country=" + customer.country + "&zipcode=" + customer.zipcode + "&internalNote=" 102 + customer.state + "&country=" + customer.country + "&zipcode=" + customer.zipcode + "&internalNote="
101 + customer.internalNote + "&certificateType=" + customer.certificateType + "&baseTenant=" + customer.baseTenant 103 + customer.internalNote + "&certificateType=" + customer.certificateType + "&baseTenant=" + customer.baseTenant
102 + "&fuelerlinxCustomer=" + customer.fuelerlinxCustomer + "&contractFuelVendor=" + customer.contractFuelVendor 104 + "&fuelerlinxCustomer=" + customer.fuelerlinxCustomer + "&contractFuelVendor=" + customer.contractFuelVendor
103 + "&activate=" + customer.activate + "&baseIcao=" + customer.baseIcao + "&companyId=" + customer.id; 105 + "&activate=" + customer.activate + "&baseIcao=" + customer.baseIcao + "&companyId=" + customer.id;
104 106
105 ViewCompanyService.updateCompany(companyMargin).then(function(result) { 107 ViewCompanyService.updateCompany(companyMargin).then(function(result) {
106 if(result != null && result.success){ 108 if(result != null && result.success){
107 $scope.showLoader = false; 109 $scope.showLoader = false;
108 toastr.success(''+result.success+'', { 110 toastr.success(''+result.success+'', {
109 closeButton: true 111 closeButton: true
110 }) 112 })
111 }else{ 113 }else{
112 $scope.showLoader = false; 114 $scope.showLoader = false;
113 toastr.error(''+result.statusText+'', { 115 toastr.error(''+result.statusText+'', {
114 closeButton: true 116 closeButton: true
115 }) 117 })
116 } 118 }
117 }) 119 })
118 } 120 }
119 121
120 getData(); 122 getData();
121 function getData(){ 123 function getData(){
124 $scope.showLoader = true;
122 CustomersService.getAircraftMake().then(function(result) { 125 CustomersService.getAircraftMake().then(function(result) {
123 $scope.aircraftMakeList = result; 126 $scope.aircraftMakeList = result;
127 $scope.showLoader = false;
124 }) 128 })
125 } 129 }
126 130
127 131
128 // CustomersService.getMargin().then(function(result) { 132 // CustomersService.getMargin().then(function(result) {
129 // $scope.marginList = result; 133 // $scope.marginList = result;
130 // }) 134 // })
131 $scope.marginFilterOptions = []; 135 $scope.marginFilterOptions = [];
132 CustomersService.getJetMargin($scope.userProfileId).then(function(result) { 136 CustomersService.getJetMargin($scope.userProfileId).then(function(result) {
133 $scope.jetMarginList = result; 137 $scope.jetMarginList = result;
134 $scope.marginFilterOptions.push({ 138 $scope.marginFilterOptions.push({
135 'id': '', 'title': 'Show All' 139 'id': '', 'title': 'Show All'
136 }); 140 });
137 for (var i = 0; i < result.length; i++) { 141 for (var i = 0; i < result.length; i++) {
138 $scope.marginFilterOptions.push({ 142 $scope.marginFilterOptions.push({
139 'id': result[i].id, 143 'id': result[i].id,
140 'title': result[i].marginName 144 'title': result[i].marginName
141 }) 145 })
142 } 146 }
143 }) 147 })
144 148
145 CustomersService.getAvgMargin($scope.userProfileId).then(function(result) { 149 CustomersService.getAvgMargin($scope.userProfileId).then(function(result) {
146 $scope.avgsMarginList = result; 150 $scope.avgsMarginList = result;
147 }) 151 })
148 152
149 153
150 $scope.showCompanyError = false; 154 $scope.showCompanyError = false;
151 $scope.showMarginError = false; 155 $scope.showMarginError = false;
152 156
153 $scope.removeValidation = function(){ 157 $scope.removeValidation = function(){
154 $scope.showCompanyError = false; 158 $scope.showCompanyError = false;
155 $('.companyNameInput').removeClass('customErrorInput'); 159 $('.companyNameInput').removeClass('customErrorInput');
156 } 160 }
157 161
158 $scope.removeMarginValidation = function(){ 162 $scope.removeMarginValidation = function(){
159 $scope.showMarginError = false; 163 $scope.showMarginError = false;
160 $('.marginSelectBox').removeClass('customErrorInput'); 164 $('.marginSelectBox').removeClass('customErrorInput');
161 } 165 }
162 166
163 var companyData; 167 var companyData;
164 $scope.addFirstData = function(sel, step){ 168 $scope.addFirstData = function(sel, step){
165 if($scope.data.companyName == undefined){ 169 if($scope.data.companyName == undefined){
166 $scope.showCompanyError = true; 170 $scope.showCompanyError = true;
167 $('.companyNameInput').addClass('customErrorInput'); 171 $('.companyNameInput').addClass('customErrorInput');
168 }else if($scope.data.masterMargin == undefined){ 172 }else if($scope.data.masterMargin == undefined){
169 $scope.showMarginError = true; 173 $scope.showMarginError = true;
170 $('.marginSelectBox').addClass('customErrorInput'); 174 $('.marginSelectBox').addClass('customErrorInput');
171 }else{ 175 }else{
172 $scope.aircraftDetails = [{ 176 $scope.aircraftDetails = [{
173 'tail':'', 177 'tail':'',
174 'make': '', 178 'make': '',
175 'model': '', 179 'model': '',
176 'sizeId' : '', 180 'sizeId' : '',
177 'marginId': $scope.data.masterMargin, 181 'marginId': $scope.data.masterMargin,
178 'avgasMarginId': $scope.data.avgasMargin 182 'avgasMarginId': $scope.data.avgasMargin
179 }]; 183 }];
180 184
181 $(sel).trigger('next.m.' + step); 185 $(sel).trigger('next.m.' + step);
182 getData(); 186 getData();
183 } 187 }
184 } 188 }
185 $scope.addNew = function(){ 189 $scope.addNew = function(){
186 $scope.aircraftDetails.push({ 190 $scope.aircraftDetails.push({
187 'tail':'', 191 'tail':'',
188 'make': '', 192 'make': '',
189 'model': '', 193 'model': '',
190 'sizeId' : '', 194 'sizeId' : '',
191 'marginId': $scope.data.masterMargin, 195 'marginId': $scope.data.masterMargin,
192 'avgasMarginId': $scope.data.avgasMargin 196 'avgasMarginId': $scope.data.avgasMargin
193 }); 197 });
194 }; 198 };
195 199
196 $scope.getModal = function(makeId, index){ 200 $scope.getModal = function(makeId, index){
197 $scope.showLoader = true; 201 $scope.showLoader = true;
198 $scope.aircraft.make = makeId; 202 $scope.aircraft.make = makeId;
199 //var makeId = makeId; 203 //var makeId = makeId;
200 CustomersService.getModal($scope.aircraft.make).then(function(result) { 204 CustomersService.getModal($scope.aircraft.make).then(function(result) {
201 $scope.showLoader = false; 205 $scope.showLoader = false;
202 $scope.aircraftDetails[index].aircraftModalList = result; 206 $scope.aircraftDetails[index].aircraftModalList = result;
203 //$scope.aircraftDetails[index].model = $scope.aircraftModalList[0]; 207 //$scope.aircraftDetails[index].model = $scope.aircraftModalList[0];
204 }) 208 })
205 } 209 }
206 210
207 $scope.getSize = function(model, index){ 211 $scope.getSize = function(model, index){
208 $scope.showLoader = true; 212 $scope.showLoader = true;
209 CustomersService.getAircraftSize($scope.aircraft.make, model).then(function(result) { 213 CustomersService.getAircraftSize($scope.aircraft.make, model).then(function(result) {
210 $scope.showLoader = false; 214 $scope.showLoader = false;
211 $scope.aircraftDetails[index].aircraftSizeList = result; 215 $scope.aircraftDetails[index].aircraftSizeList = result;
212 //$scope.aircraftDetails[index].size = $scope.aircraftSizeList[0]; 216 //$scope.aircraftDetails[index].size = $scope.aircraftSizeList[0];
213 }) 217 })
214 } 218 }
215 219
216 $scope.aircraftListData = {}; 220 $scope.aircraftListData = {};
217 $scope.addData = []; 221 $scope.addData = [];
218 $scope.saveCompanyData = function(){ 222 $scope.saveCompanyData = function(){
219 CustomersService.addCompany($scope.data).then(function(result) { 223 CustomersService.addCompany($scope.data).then(function(result) {
220 $scope.accountId = result; 224 $scope.accountId = result;
221 $scope.aircraft.accountId = $scope.accountId; 225 $scope.aircraft.accountId = $scope.accountId;
222 226
223 for(var i=0; i<$scope.aircraftDetails.length;i++){ 227 for(var i=0; i<$scope.aircraftDetails.length;i++){
224 $scope.addData.push({ 228 $scope.addData.push({
225 'tail': $scope.aircraftDetails[i].tail, 229 'tail': $scope.aircraftDetails[i].tail,
226 'make': $scope.aircraftDetails[i].make, 230 'make': $scope.aircraftDetails[i].make,
227 'model': $scope.aircraftDetails[i].model, 231 'model': $scope.aircraftDetails[i].model,
228 'sizeId' : $scope.aircraftDetails[i].sizeId, 232 'sizeId' : $scope.aircraftDetails[i].sizeId,
229 'marginId': $scope.aircraftDetails[i].marginId, 233 'marginId': $scope.aircraftDetails[i].marginId,
230 'avgasMarginId': $scope.aircraftDetails[i].avgasMarginId 234 'avgasMarginId': $scope.aircraftDetails[i].avgasMarginId
231 }); 235 });
232 } 236 }
233 $scope.aircraftListData.aircraftList = $scope.addData; 237 $scope.aircraftListData.aircraftList = $scope.addData;
234 $scope.aircraftListData.accountId = $scope.aircraft.accountId; 238 $scope.aircraftListData.accountId = $scope.aircraft.accountId;
235 239
236 if($scope.aircraftListData.aircraftList[0].tail == "" || $scope.aircraftListData.aircraftList[0].make == null || $scope.aircraftListData.aircraftList[0].model == null){ 240 if($scope.aircraftListData.aircraftList[0].tail == "" || $scope.aircraftListData.aircraftList[0].make == null || $scope.aircraftListData.aircraftList[0].model == null){
237 $scope.aircraftListData.aircraftList = []; 241 $scope.aircraftListData.aircraftList = [];
238 } 242 }
239 243
240 CustomersService.addAircraft($scope.aircraftListData).then(function(result) { 244 CustomersService.addAircraft($scope.aircraftListData).then(function(result) {
241 245
242 if(result != null && result.success){ 246 if(result != null && result.success){
243 toastr.success(''+result.success+'', { 247 toastr.success(''+result.success+'', {
244 closeButton: true 248 closeButton: true
245 }) 249 })
246 $('#demo-modal-3').modal('hide'); 250 $('#demo-modal-3').modal('hide');
247 getAllCompanies(); 251 getAllCompanies();
248 }else{ 252 }else{
249 toastr.error(''+result.statusText+'', { 253 toastr.error(''+result.statusText+'', {
250 closeButton: true 254 closeButton: true
251 }) 255 })
252 } 256 }
253 }); 257 });
254 258
255 }) 259 })
256 260
257 261
258 } 262 }
259 263
260 // $scope.appendText = function() { 264 // $scope.appendText = function() {
261 // getData(); 265 // getData();
262 // var newRow = $('<tr> <td> <input type="text" style="width:100px;" ng-model="aircraft.tail" class="form-control"> </td> <td style="width: 25%;"> <select class="form-control" ng-model="aircraft.make" ng-change="getModal()"> <option ng-repeat="make in aircraftMakeList">{{make}}</option> </select> </td> <td style="width: 20%;"> <select class="form-control" ng-model="aircraft.model" ng-change="getSize()"> <option ng-repeat="model in aircraftModalList">{{model}}</option> </select> </td> <td style="width: 25%;"> <select class="form-control" ng-model="aircraft.size"> <option ng-repeat="size in aircraftSizeList">{{size}}</option> </select> </td> <td> <select class="form-control"> <option>Margin1</option> <option>Margin2</option> </select> </td> </tr>'); 266 // var newRow = $('<tr> <td> <input type="text" style="width:100px;" ng-model="aircraft.tail" class="form-control"> </td> <td style="width: 25%;"> <select class="form-control" ng-model="aircraft.make" ng-change="getModal()"> <option ng-repeat="make in aircraftMakeList">{{make}}</option> </select> </td> <td style="width: 20%;"> <select class="form-control" ng-model="aircraft.model" ng-change="getSize()"> <option ng-repeat="model in aircraftModalList">{{model}}</option> </select> </td> <td style="width: 25%;"> <select class="form-control" ng-model="aircraft.size"> <option ng-repeat="size in aircraftSizeList">{{size}}</option> </select> </td> <td> <select class="form-control"> <option>Margin1</option> <option>Margin2</option> </select> </td> </tr>');
263 // $('table.addRow').append(newRow); 267 // $('table.addRow').append(newRow);
264 // } 268 // }
265 269
266 $scope.setFuel = function(){ 270 $scope.setFuel = function(){
267 event.stopPropagation(); 271 event.stopPropagation();
268 $state.go('app.updateFuelManager'); 272 $state.go('app.updateFuelManager');
269 } 273 }
270 274
271 /* ng table */ 275 /* ng table */
272 276
273 $scope.exportCompany = function() { 277 $scope.exportCompany = function() {
274 $scope.showLoader = true; 278 $scope.showLoader = true;
275 var fileName = "companies.csv"; 279 var fileName = "companies.csv";
276 var a = document.createElement("a"); 280 var a = document.createElement("a");
277 document.body.appendChild(a); 281 document.body.appendChild(a);
278 CustomersService.exportCompany().then(function(result) { 282 CustomersService.exportCompany().then(function(result) {
279 var file = new Blob([result], {type: 'application/csv'}); 283 var file = new Blob([result], {type: 'application/csv'});
280 var fileURL = URL.createObjectURL(file); 284 var fileURL = URL.createObjectURL(file);
281 a.href = fileURL; 285 a.href = fileURL;
282 a.download = fileName; 286 a.download = fileName;
283 a.click(); 287 a.click();
284 $scope.showLoader = false; 288 $scope.showLoader = false;
285 }) 289 })
286 } 290 }
287 291
288 292
289 } 293 }
app/partials/customers/customers.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 5
6 .button1 { 6 .button1 {
7 display: inline-block; 7 display: inline-block;
8 height: 35px; 8 height: 35px;
9 line-height: 35px; 9 line-height: 35px;
10 padding-right: 15px; 10 padding-right: 15px;
11 padding-left: 50px; 11 padding-left: 50px;
12 position: relative; 12 position: relative;
13 background-color:rgb(41,127,184); 13 background-color:rgb(41,127,184);
14 color:rgb(255,255,255); 14 color:rgb(255,255,255);
15 text-decoration: none; 15 text-decoration: none;
16 text-transform: uppercase; 16 text-transform: uppercase;
17 letter-spacing: 1px; 17 letter-spacing: 1px;
18 margin-bottom: 15px; 18 margin-bottom: 15px;
19 border: 0; 19 border: 0;
20 20
21 21
22 border-radius: 5px; 22 border-radius: 5px;
23 -moz-border-radius: 5px; 23 -moz-border-radius: 5px;
24 -webkit-border-radius: 5px; 24 -webkit-border-radius: 5px;
25 text-shadow:0px 1px 0px rgba(0,0,0,0.5); 25 text-shadow:0px 1px 0px rgba(0,0,0,0.5);
26 -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true)";zoom:1; 26 -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true)";zoom:1;
27 filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true); 27 filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true);
28 28
29 -moz-box-shadow:0px 2px 2px rgba(0,0,0,0.2); 29 -moz-box-shadow:0px 2px 2px rgba(0,0,0,0.2);
30 -webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.2); 30 -webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.2);
31 box-shadow:0px 2px 2px rgba(0,0,0,0.2); 31 box-shadow:0px 2px 2px rgba(0,0,0,0.2);
32 -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true)"; 32 -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true)";
33 filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true); 33 filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true);
34 } 34 }
35 35
36 .button1 span { 36 .button1 span {
37 position: absolute; 37 position: absolute;
38 left: 0; 38 left: 0;
39 top: 0; 39 top: 0;
40 width: 35px; 40 width: 35px;
41 background-color:rgba(0,0,0,0.5); 41 background-color:rgba(0,0,0,0.5);
42 42
43 -webkit-border-top-left-radius: 5px; 43 -webkit-border-top-left-radius: 5px;
44 -webkit-border-bottom-left-radius: 5px; 44 -webkit-border-bottom-left-radius: 5px;
45 -moz-border-radius-topleft: 5px; 45 -moz-border-radius-topleft: 5px;
46 -moz-border-radius-bottomleft: 5px; 46 -moz-border-radius-bottomleft: 5px;
47 border-top-left-radius: 5px; 47 border-top-left-radius: 5px;
48 border-bottom-left-radius: 5px; 48 border-bottom-left-radius: 5px;
49 border-right: 1px solid rgba(0,0,0,0.15); 49 border-right: 1px solid rgba(0,0,0,0.15);
50 } 50 }
51 51
52 .button1:hover span, .button1.active span { 52 .button1:hover span, .button1.active span {
53 background-color:rgb(0,102,26); 53 background-color:rgb(0,102,26);
54 border-right: 1px solid rgba(0,0,0,0.3); 54 border-right: 1px solid rgba(0,0,0,0.3);
55 } 55 }
56 56
57 .button1:active { 57 .button1:active {
58 margin-top: 2px; 58 margin-top: 2px;
59 margin-bottom: 13px; 59 margin-bottom: 13px;
60 60
61 -moz-box-shadow:0px 1px 0px rgba(255,255,255,0.5); 61 -moz-box-shadow:0px 1px 0px rgba(255,255,255,0.5);
62 -webkit-box-shadow:0px 1px 0px rgba(255,255,255,0.5); 62 -webkit-box-shadow:0px 1px 0px rgba(255,255,255,0.5);
63 box-shadow:0px 1px 0px rgba(255,255,255,0.5); 63 box-shadow:0px 1px 0px rgba(255,255,255,0.5);
64 -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true)"; 64 -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true)";
65 filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true); 65 filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true);
66 } 66 }
67 67
68 .button1.turquoise { 68 .button1.turquoise {
69 background: #449d44; 69 background: #449d44;
70 } 70 }
71 </style> 71 </style>
72 <div class="myLoader" ng-show="showLoader">
73 <img src="../img/hourglass.gif" width="50px;">
74 </div>
72 75
73 <div class="main"> 76 <div class="main">
74 <div class="container"> 77 <div class="container">
75 <div class="row"> 78 <div class="row">
76 <div class="col-md-12"> 79 <div class="col-md-12">
77 <div class="widget stacked "> 80 <div class="widget stacked ">
78 <div class="widget-content"> 81 <div class="widget-content">
79 <div class="tabbable"> 82 <div class="tabbable">
80 <ul class="nav nav-tabs"> 83 <ul class="nav nav-tabs">
81 <li class="active"> 84 <li class="active">
82 <a ui-sref="app.customers">Company View 85 <a ui-sref="app.customers">Company View
83 <i class="fa fa-caret-down" aria-hidden="true"></i> 86 <i class="fa fa-caret-down" aria-hidden="true"></i>
84 </a> 87 </a>
85 </li> 88 </li>
86 <li> 89 <li>
87 <a ui-sref="app.ContactView">Contact View 90 <a ui-sref="app.ContactView">Contact View
88 <i class="fa fa-caret-down" aria-hidden="true"></i> 91 <i class="fa fa-caret-down" aria-hidden="true"></i>
89 </a> 92 </a>
90 </li> 93 </li>
91 <li> 94 <li>
92 <a ui-sref="app.FuelVendors">Fuel Vendors 95 <a ui-sref="app.FuelVendors">Fuel Vendors
93 <i class="fa fa-caret-down" aria-hidden="true"></i> 96 <i class="fa fa-caret-down" aria-hidden="true"></i>
94 </a> 97 </a>
95 </li> 98 </li>
96 <li style="margin: 0px 10px 4px 40px;"><input type="text" style="height:31px;"class="form-control" ng-model="searchText" placeholder="Search In Table"></li> 99 <li style="margin: 0px 10px 4px 40px;"><input type="text" style="height:31px;"class="form-control" ng-model="searchText" placeholder="Search In Table"></li>
97 <li><button type="button" class="btn btn-default btn-sm" ng-click="displayCompanyList.filter({}); searchText=null">Clear Search And Filters</button></li> 100 <li><button type="button" class="btn btn-default btn-sm" ng-click="displayCompanyList.filter({}); searchText=null">Clear Search And Filters</button></li>
98 <li style="float:right"><button type="submit" data-toggle="modal" data-target="#demo-modal-3" class="btn btn-success btn-sm"><i class="fa fa-plus" aria-hidden="true"></i> Add Company</button></li> 101 <li style="float:right"><button type="submit" data-toggle="modal" data-target="#demo-modal-3" class="btn btn-success btn-sm"><i class="fa fa-plus" aria-hidden="true"></i> Add Company</button></li>
99 </ul> 102 </ul>
100 <br> 103 <br>
101 <div class="tab-content customer-table" style="margin:0px"> 104 <div class="tab-content customer-table" style="margin:0px">
102 <div class="tab-pane active" id="companyView"> 105 <div class="tab-pane active" id="companyView">
103 <table ng-table="displayCompanyList" class="table table-striped table-condensed" show-filter="true"> 106 <table ng-table="displayCompanyList" class="table table-striped table-condensed" show-filter="true">
104 <tr ng-repeat="row in $data | filter:searchText"" style="cursor: pointer;"> 107 <tr ng-repeat="row in $data | filter:searchText"" style="cursor: pointer;">
105 <td data-title="'Company Name'" filter="{companyName: 'text'}" sortable="'companyName'" ui-sref="app.viewCompany({id : row.id})"> 108 <td data-title="'Company Name'" filter="{companyName: 'text'}" sortable="'companyName'" ui-sref="app.viewCompany({id : row.id})">
106 {{row.companyName}} 109 {{row.companyName}}
107 </td> 110 </td>
108 <td data-title="'Fleet'" filter="{companyAircraftSize: 'text'}" sortable="'companyAircraftSize'" ui-sref="app.viewCompany({id : row.id})"> 111 <td data-title="'Fleet'" filter="{companyAircraftSize: 'text'}" sortable="'companyAircraftSize'" ui-sref="app.viewCompany({id : row.id})">
109 {{row.companyAircraftSize}} 112 {{row.companyAircraftSize}}
110 </td> 113 </td>
111 <td data-title="'Main Phone'" filter="{newContactNumber: 'text'}" sortable="'newContactNumber'" ui-sref="app.viewCompany({id : row.id})"> 114 <td data-title="'Main Phone'" filter="{newContactNumber: 'text'}" sortable="'newContactNumber'" ui-sref="app.viewCompany({id : row.id})">
112 {{row.newContactNumber}} 115 {{row.newContactNumber}}
113 </td> 116 </td>
114 <td data-title="'Primary Contact'" filter="{primaryContactName: 'text'}" sortable="'primaryContactName'" ui-sref="app.viewCompany({id : row.id})"> 117 <td data-title="'Primary Contact'" filter="{primaryContactName: 'text'}" sortable="'primaryContactName'" ui-sref="app.viewCompany({id : row.id})">
115 {{row.primaryContactName}} 118 {{row.primaryContactName}}
116 </td> 119 </td>
117 <td data-title="'Base'" filter="{baseIcao: 'text'}" sortable="'baseIcao'" ui-sref="app.viewCompany({id : row.id})"> 120 <td data-title="'Base'" filter="{baseIcao: 'text'}" sortable="'baseIcao'" ui-sref="app.viewCompany({id : row.id})">
118 {{row.baseIcao}} 121 {{row.baseIcao}}
119 </td> 122 </td>
120 <td data-title="'Status'" filter="{activate: 'select'}" filter-data="statusFilter" sortable="'activate'" ui-sref="app.viewCompany({id : row.id})"> 123 <td data-title="'Status'" filter="{activate: 'select'}" filter-data="statusFilter" sortable="'activate'" ui-sref="app.viewCompany({id : row.id})">
121 <button type="button" ng-if="row.activate == true" class="btn btn-success btn-xs">Active</button> 124 <button type="button" ng-if="row.activate == true" class="btn btn-success btn-xs">Active</button>
122 <button type="button" ng-if="row.activate == false" class="btn btn-warning btn-xs">InActive</button> 125 <button type="button" ng-if="row.activate == false" class="btn btn-warning btn-xs">InActive</button>
123 </td> 126 </td>
124 <td data-title="'Margin Setting'" filter="{masterMargin: 'select'}" filter-data="marginFilterOptions" sortable="'masterMargin'"> 127 <td data-title="'Margin Setting'" filter="{masterMargin: 'select'}" filter-data="marginFilterOptions" sortable="'masterMargin'">
125 <select class="form-control" ng-change="editMargin(row)" style="height:31px;" ng-model="row.masterMargin" ng-selected="" ng-options="margin.id as margin.marginName for margin in jetMarginList" required></select> 128 <select class="form-control" ng-change="editMargin(row)" style="height:31px;" ng-model="row.masterMargin" ng-selected="" ng-options="margin.id as margin.marginName for margin in jetMarginList" required></select>
126 </td> 129 </td>
127 <td data-title="'All In'" filter="{marginAllIn: 'text'}" sortable="'marginAllIn'" ui-sref="app.viewCompany({id : row.id})"> 130 <td data-title="'All In'" filter="{marginAllIn: 'text'}" sortable="'marginAllIn'" ui-sref="app.viewCompany({id : row.id})">
128 {{row.marginAllIn}} 131 {{row.marginAllIn}}
129 </td> 132 </td>
130 <td data-title="''"> 133 <td data-title="''">
131 <button type="button" class="btn btn-info btn-xs" ng-click="setFuel()">Setup Fuel</button> 134 <button type="button" class="btn btn-info btn-xs" ng-click="setFuel()">Setup Fuel</button>
132 </td> 135 </td>
133 </tr> 136 </tr>
134 </table> 137 </table>
135 138
136 <button type="button" ng-click="exportCompany()" class="btn btn-warning exportBtn">Export CSV</button> 139 <button type="button" ng-click="exportCompany()" class="btn btn-warning exportBtn">Export CSV</button>
137 140
138 <!-- 141 <!--
139 <table class="table table-striped"> 142 <table class="table table-striped">
140 <thead> 143 <thead>
141 <tr> 144 <tr>
142 <th> 145 <th>
143 <input type="text" class="form-control" name="name" id="name"> 146 <input type="text" class="form-control" name="name" id="name">
144 <label class="font-company">Company Name <i class="fa fa-sort" aria-hidden="true"></i></label> 147 <label class="font-company">Company Name <i class="fa fa-sort" aria-hidden="true"></i></label>
145 </th> 148 </th>
146 <th> 149 <th>
147 <input type="text" class="form-control" name="name" id="name"> 150 <input type="text" class="form-control" name="name" id="name">
148 <label class="font-company">Fleet <i class="fa fa-sort" aria-hidden="true"></i></label> 151 <label class="font-company">Fleet <i class="fa fa-sort" aria-hidden="true"></i></label>
149 </th> 152 </th>
150 <th> 153 <th>
151 <input type="text" class="form-control" name="name" id="name"> 154 <input type="text" class="form-control" name="name" id="name">
152 <label class="font-company">Main Phone <i class="fa fa-sort" aria-hidden="true"></i></label> 155 <label class="font-company">Main Phone <i class="fa fa-sort" aria-hidden="true"></i></label>
153 </th> 156 </th>
154 <th> 157 <th>
155 <input type="text" class="form-control" name="name" id="name"> 158 <input type="text" class="form-control" name="name" id="name">
156 <label class="font-company">Primary Contact <i class="fa fa-sort" aria-hidden="true"></i></label> 159 <label class="font-company">Primary Contact <i class="fa fa-sort" aria-hidden="true"></i></label>
157 </th> 160 </th>
158 <th> 161 <th>
159 <input type="text" class="form-control" name="name" id="name"> 162 <input type="text" class="form-control" name="name" id="name">
160 <label class="font-company">Base <i class="fa fa-sort" aria-hidden="true"></i></label> 163 <label class="font-company">Base <i class="fa fa-sort" aria-hidden="true"></i></label>
161 </th> 164 </th>
162 <th> 165 <th>
163 <select class="form-control"> 166 <select class="form-control">
164 <option value="showAll" selected>Show All</option> 167 <option value="showAll" selected>Show All</option>
165 </select> 168 </select>
166 <label class="font-company">Status <i class="fa fa-sort" aria-hidden="true"></i></label> 169 <label class="font-company">Status <i class="fa fa-sort" aria-hidden="true"></i></label>
167 </th> 170 </th>
168 <th> 171 <th>
169 <select class="form-control"> 172 <select class="form-control">
170 <option value="showAll" selected>Show All</option> 173 <option value="showAll" selected>Show All</option>
171 </select> 174 </select>
172 <label class="font-company">Margin Setting <i class="fa fa-sort" aria-hidden="true"></i></label> 175 <label class="font-company">Margin Setting <i class="fa fa-sort" aria-hidden="true"></i></label>
173 </th> 176 </th>
174 <th> 177 <th>
175 <input type="text" class="form-control" name="name" id="name"> 178 <input type="text" class="form-control" name="name" id="name">
176 <label class="font-company">All In <i class="fa fa-sort" aria-hidden="true"></i></label> 179 <label class="font-company">All In <i class="fa fa-sort" aria-hidden="true"></i></label>
177 </th> 180 </th>
178 <th> &nbsp; </th> 181 <th> &nbsp; </th>
179 </thead> 182 </thead>
180 <tbody> 183 <tbody>
181 <tr ng-repeat="customer in companyList" style="cursor: pointer;" ui-sref="app.viewCompany({id : customer.id})"> 184 <tr ng-repeat="customer in companyList" style="cursor: pointer;" ui-sref="app.viewCompany({id : customer.id})">
182 <td class="font-company"> 185 <td class="font-company">
183 {{customer.companyName}} 186 {{customer.companyName}}
184 </td> 187 </td>
185 <td class="font-company">{{customer.companyAircraftSize}}</td> 188 <td class="font-company">{{customer.companyAircraftSize}}</td>
186 <td class="font-company">{{customer.companyCustomContacts[0].contactNumber}}</td> 189 <td class="font-company">{{customer.companyCustomContacts[0].contactNumber}}</td>
187 <td class="font-company">{{customer.companyPrimaryContacts[0].firstName}} {{customer.companyPrimaryContacts[0].lastName}}</td> 190 <td class="font-company">{{customer.companyPrimaryContacts[0].firstName}} {{customer.companyPrimaryContacts[0].lastName}}</td>
188 <td class="font-company">{{customer.baseIcao}}</td> 191 <td class="font-company">{{customer.baseIcao}}</td>
189 <td class="font-company"> 192 <td class="font-company">
190 <button type="button" ng-if="customer.activate == true" class="btn btn-success btn-xs">Active</button> 193 <button type="button" ng-if="customer.activate == true" class="btn btn-success btn-xs">Active</button>
191 <button type="button" ng-if="customer.activate == false" class="btn btn-warning btn-xs">InActive</button> 194 <button type="button" ng-if="customer.activate == false" class="btn btn-warning btn-xs">InActive</button>
192 </td> 195 </td>
193 <td class="font-company"> 196 <td class="font-company">
194 <select class="form-control" ng-click="editMargin(customer)" style="height:31px;" ng-model="customer.masterMargin" ng-options="margin.id as margin.marginName for margin in marginList" required></select> 197 <select class="form-control" ng-click="editMargin(customer)" style="height:31px;" ng-model="customer.masterMargin" ng-options="margin.id as margin.marginName for margin in marginList" required></select>
195 </td> 198 </td>
196 <td class="font-company">{{customer.allIn}}</td> 199 <td class="font-company">{{customer.allIn}}</td>
197 <td> 200 <td>
198 <button type="button" class="btn btn-info btn-xs" ng-click="setFuel()">Setup Fuel</button> 201 <button type="button" class="btn btn-info btn-xs" ng-click="setFuel()">Setup Fuel</button>
199 </td> 202 </td>
200 </tr> 203 </tr>
201 </tbody> 204 </tbody>
202 </table> 205 </table>
203 <div class="row" style="margin-left: 0px;"> 206 <div class="row" style="margin-left: 0px;">
204 <div class="col-md-2"> 207 <div class="col-md-2">
205 <button type="button" class="btn btn-warning">Export Customers</button> 208 <button type="button" class="btn btn-warning">Export Customers</button>
206 </div> 209 </div>
207 <div class="col-md-10"> 210 <div class="col-md-10">
208 <div class="row" style="margin-left: 0px;"> 211 <div class="row" style="margin-left: 0px;">
209 <div class="col-md-6"> 212 <div class="col-md-6">
210 </div> 213 </div>
211 <div class="col-md-2"> 214 <div class="col-md-2">
212 <select class="form-control"> 215 <select class="form-control">
213 <option>20 Records Per Page</option> 216 <option>20 Records Per Page</option>
214 <option>50 Records Per Page</option> 217 <option>50 Records Per Page</option>
215 <option>100 Records Per Page</option> 218 <option>100 Records Per Page</option>
216 </select> 219 </select>
217 </div> 220 </div>
218 <div class="col-md-4"> 221 <div class="col-md-4">
219 <ul class="pagination" style="margin:0px"> 222 <ul class="pagination" style="margin:0px">
220 <li><a href="javascript:;">ยซ</a></li> 223 <li><a href="javascript:;">ยซ</a></li>
221 <li class="active"><a href="#">1</a></li> 224 <li class="active"><a href="#">1</a></li>
222 <li><a href="javascript:;">2</a></li> 225 <li><a href="javascript:;">2</a></li>
223 <li><a href="javascript:;">3</a></li> 226 <li><a href="javascript:;">3</a></li>
224 <li><a href="javascript:;">4</a></li> 227 <li><a href="javascript:;">4</a></li>
225 <li><a href="javascript:;">5</a></li> 228 <li><a href="javascript:;">5</a></li>
226 <li><a href="javascript:;">ยป</a></li> 229 <li><a href="javascript:;">ยป</a></li>
227 </ul> 230 </ul>
228 </div> 231 </div>
229 </div> 232 </div>
230 </div> 233 </div>
231 </div> 234 </div>
232 --></div> 235 --></div>
233 </div> 236 </div>
234 </div> 237 </div>
235 </div> 238 </div>
236 <!-- /widget-content --> 239 <!-- /widget-content -->
237 </div> 240 </div>
238 <!-- /widget --> 241 <!-- /widget -->
239 </div> 242 </div>
240 <!-- /span8 --> 243 <!-- /span8 -->
241 </div> 244 </div>
242 <!-- /row --> 245 <!-- /row -->
243 </div> 246 </div>
244 <!-- /container --> 247 <!-- /container -->
245 </div> 248 </div>
246 <!-- /main --> 249 <!-- /main -->
247 <form class="modal multi-step" id="demo-modal-3" name="companyForm"> 250 <form class="modal multi-step" id="demo-modal-3" name="companyForm">
248 <div class="modal-dialog modal-lg"> 251 <div class="modal-dialog modal-lg">
249 <div class="modal-content"> 252 <div class="modal-content">
250 <div class="modal-body step-1" data-step="1" style="padding: 0;"> 253 <div class="modal-body step-1" data-step="1" style="padding: 0;">
251 <div> 254 <div>
252 <div class="row" style="margin: 0;"> 255 <div class="row" style="margin: 0;">
253 <div> 256 <div>
254 <div class="widget" style="margin-bottom: 0;"> 257 <div class="widget" style="margin-bottom: 0;">
255 <div class="widget-header"> 258 <div class="widget-header">
256 <i class="icon-pencil"></i> 259 <i class="icon-pencil"></i>
257 <i class="fa fa-tasks" aria-hidden="true"></i> 260 <i class="fa fa-tasks" aria-hidden="true"></i>
258 <h3>Add a New Company</h3> 261 <h3>Add a New Company</h3>
259 <div class="pull-right my-toggle-switch" style="margin-right: 30px;"> 262 <div class="pull-right my-toggle-switch" style="margin-right: 30px;">
260 <div style="color: #ff9a01;">Activate &nbsp &nbsp 263 <div style="color: #ff9a01;">Activate &nbsp &nbsp
261 <toggle ng-model="data.activate" size="customToogle"></toggle> 264 <toggle ng-model="data.activate" size="customToogle"></toggle>
262 </div> 265 </div>
263 </div> 266 </div>
264 <div class="clearfix"></div> 267 <div class="clearfix"></div>
265 </div> 268 </div>
266 <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> 269 <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;">
267 <div class="col-xs-12"> 270 <div class="col-xs-12">
268 <div class="col-md-8"> 271 <div class="col-md-8">
269 <div class="pull-left"> 272 <div class="pull-left">
270 <label class="new-input-label"><b>Company Name *</b></label> 273 <label class="new-input-label"><b>Company Name *</b></label>
271 </div> 274 </div>
272 <div class="pull-left" style="margin-left: 15px;"> 275 <div class="pull-left" style="margin-left: 15px;">
273 <input type="text" ng-model="data.companyName" class="form-control companyNameInput" ng-keyup="removeValidation()" placeholder="" required> 276 <input type="text" ng-model="data.companyName" class="form-control companyNameInput" ng-keyup="removeValidation()" placeholder="" required>
274 <label class="customErrorMessage" ng-show="showCompanyError">This field is required.</label> 277 <label class="customErrorMessage" ng-show="showCompanyError">This field is required.</label>
275 </div> 278 </div>
276 <div class="clearfix"></div> 279 <div class="clearfix"></div>
277 </div> 280 </div>
278 <div class="col-md-4"> 281 <div class="col-md-4">
279 282
280 <div class="pull-right"> 283 <div class="pull-right">
281 <input type="text" ng-model="data.baseIcao" style="width: 100px;" class="form-control" placeholder=""> 284 <input type="text" ng-model="data.baseIcao" style="width: 100px;" class="form-control" placeholder="">
282 </div> 285 </div>
283 <div class="pull-right"> 286 <div class="pull-right">
284 <label style="margin-right: 15px;" class="new-input-label"><b>Base ICAO</b></label> 287 <label style="margin-right: 15px;" class="new-input-label"><b>Base ICAO</b></label>
285 </div> 288 </div>
286 <div class="clearfix"></div> 289 <div class="clearfix"></div>
287 </div> 290 </div>
288 </div> 291 </div>
289 <div class="clearfix"></div><br> 292 <div class="clearfix"></div><br>
290 <div class="col-xs-12"> 293 <div class="col-xs-12">
291 <div class="col-md-7"> 294 <div class="col-md-7">
292 <div class="pull-left"> 295 <div class="pull-left">
293 <label class="new-input-label"><b>Relationship&nbsp;</b></label> 296 <label class="new-input-label"><b>Relationship&nbsp;</b></label>
294 </div> 297 </div>
295 <div class="pull-left" style="margin-left: 32px;"> 298 <div class="pull-left" style="margin-left: 32px;">
296 <input type="checkbox" ng-model="data.baseTenant" name="vehicle" value="Bike"> Check here if this is a Base Tenant<br> 299 <input type="checkbox" ng-model="data.baseTenant" name="vehicle" value="Bike"> Check here if this is a Base Tenant<br>
297 <input type="checkbox" ng-model="data.fuelerlinxCustomer" name="vehicle" value="Car" checked> Check here if this is a FuelerLinx Customer<br> 300 <input type="checkbox" ng-model="data.fuelerlinxCustomer" name="vehicle" value="Car" checked> Check here if this is a FuelerLinx Customer<br>
298 <input type="checkbox" ng-model="data.contractFuelVendor" name="vehicle" value="Car" checked> Check here if this is a Contract Fuel Vendor 301 <input type="checkbox" ng-model="data.contractFuelVendor" name="vehicle" value="Car" checked> Check here if this is a Contract Fuel Vendor
299 </div> 302 </div>
300 <div class="clearfix"></div> 303 <div class="clearfix"></div>
301 </div> 304 </div>
302 <div class="col-md-2 Airport" style="text-align: right;"> 305 <div class="col-md-2 Airport" style="text-align: right;">
303 <b>Certificate Type</b> 306 <b>Certificate Type</b>
304 </div> 307 </div>
305 <div class="col-md-3 Airport"> 308 <div class="col-md-3 Airport">
306 <select required class="form-control" ng-model="data.certificateType"> 309 <select required class="form-control" ng-model="data.certificateType">
307 <option value="" disabled selected hidden>Select...</option> 310 <option value="" disabled selected hidden>Select...</option>
308 <option value="corporate">Part 91 (Corporate)</option> 311 <option value="corporate">Part 91 (Corporate)</option>
309 <option value="charter">Part 135 (Charter)</option> 312 <option value="charter">Part 135 (Charter)</option>
310 <option value="scheduled">Part 121 (Scheduled)</option> 313 <option value="scheduled">Part 121 (Scheduled)</option>
311 <option value="military">Military</option> 314 <option value="military">Military</option>
312 <option value="government">Government</option> 315 <option value="government">Government</option>
313 </select> 316 </select>
314 </div> 317 </div>
315 <div class="clearfix"></div> 318 <div class="clearfix"></div>
316 </div> 319 </div>
317 <div class="clearfix"></div> 320 <div class="clearfix"></div>
318 <br/> 321 <br/>
319 <div class="col-xs-12"> 322 <div class="col-xs-12">
320 <div class="col-md-6"> 323 <div class="col-md-6">
321 <div class="pull-left" style="width: 110px;"> 324 <div class="pull-left" style="width: 110px;">
322 <b>JET A Margin *</b> 325 <b>JET A Margin *</b>
323 </div> 326 </div>
324 <div class="pull-left"> 327 <div class="pull-left">
325 <select class="form-control marginSelectBox" ng-model="data.masterMargin" ng-options="margin.id as margin.marginName for margin in jetMarginList" required ng-change="removeMarginValidation()"> 328 <select class="form-control marginSelectBox" ng-model="data.masterMargin" ng-options="margin.id as margin.marginName for margin in jetMarginList" required ng-change="removeMarginValidation()">
326 <option value="" disabled>Select...</option> 329 <option value="" disabled>Select...</option>
327 </select> 330 </select>
328 <label ng-show="showMarginError" class="customErrorMessage">This field is required.</label> 331 <label ng-show="showMarginError" class="customErrorMessage">This field is required.</label>
329 332
330 <div class="clearfix"></div> 333 <div class="clearfix"></div>
331 </div> 334 </div>
332 </div> 335 </div>
333 336
334 <div class="col-md-3 Airport" style="text-align: right;"> 337 <div class="col-md-3 Airport" style="text-align: right;">
335 <b>AVGAS 100LL Margin</b> 338 <b>AVGAS 100LL Margin</b>
336 </div> 339 </div>
337 <div class="col-md-3 Airport"> 340 <div class="col-md-3 Airport">
338 <select class="form-control" ng-model="data.avgasMargin" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList"> 341 <select class="form-control" ng-model="data.avgasMargin" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList">
339 <option value="" disabled>Select...</option> 342 <option value="" disabled>Select...</option>
340 </select> 343 </select>
341 </div> 344 </div>
342 <div class="clearfix"></div> 345 <div class="clearfix"></div>
343 </div> 346 </div>
344 <div class="clearfix"></div> 347 <div class="clearfix"></div>
345 <br/> 348 <br/>
346 <div class="col-xs-12"> 349 <div class="col-xs-12">
347 <div class="col-md-12"> 350 <div class="col-md-12">
348 <div class="pull-left" style="width: 110px;"> 351 <div class="pull-left" style="width: 110px;">
349 <label class="new-input-label"><b>Address</b></label> 352 <label class="new-input-label"><b>Address</b></label>
350 </div> 353 </div>
351 <div class="pull-left" style="width: calc(100% - 110px);"> 354 <div class="pull-left" style="width: calc(100% - 110px);">
352 <input type="text" class="form-control" ng-model="data.addressOne" placeholder=""> 355 <input type="text" class="form-control" ng-model="data.addressOne" placeholder="">
353 </div> 356 </div>
354 <div class="clearfix"></div> 357 <div class="clearfix"></div>
355 </div> 358 </div>
356 </div> 359 </div>
357 <div class="clearfix"></div> 360 <div class="clearfix"></div>
358 <br/> 361 <br/>
359 <div class="col-xs-12"> 362 <div class="col-xs-12">
360 <div class="col-md-12"> 363 <div class="col-md-12">
361 <div class="pull-left" style="width: 110px;"> 364 <div class="pull-left" style="width: 110px;">
362 <label class="new-input-label"><b>Address2</b></label> 365 <label class="new-input-label"><b>Address2</b></label>
363 </div> 366 </div>
364 <div class="pull-left" style="width: calc(100% - 110px);"> 367 <div class="pull-left" style="width: calc(100% - 110px);">
365 <input type="text" ng-model="data.addressTwo" class="form-control" placeholder=""> 368 <input type="text" ng-model="data.addressTwo" class="form-control" placeholder="">
366 </div> 369 </div>
367 <div class="clearfix"></div> 370 <div class="clearfix"></div>
368 </div> 371 </div>
369 </div> 372 </div>
370 <div class="clearfix"></div> 373 <div class="clearfix"></div>
371 <br/> 374 <br/>
372 <div class="col-xs-12"> 375 <div class="col-xs-12">
373 376
374 <div class="col-md-6"> 377 <div class="col-md-6">
375 <div class="pull-left" style="width: 110px;"> 378 <div class="pull-left" style="width: 110px;">
376 <label class="new-input-label"><b>City</b></label> 379 <label class="new-input-label"><b>City</b></label>
377 </div> 380 </div>
378 <div class="pull-left" style="width: calc(100% - 110px);"> 381 <div class="pull-left" style="width: calc(100% - 110px);">
379 <input type="text" ng-model="data.city" class="form-control" placeholder=""> 382 <input type="text" ng-model="data.city" class="form-control" placeholder="">
380 </div> 383 </div>
381 <div class="clearfix"></div> 384 <div class="clearfix"></div>
382 </div> 385 </div>
383 <div class="col-md-3"> 386 <div class="col-md-3">
384 <div class="pull-left" style="width: 40px;"> 387 <div class="pull-left" style="width: 40px;">
385 <label class="new-input-label"><b>State</b></label> 388 <label class="new-input-label"><b>State</b></label>
386 </div> 389 </div>
387 <div class="pull-left" style="width: calc(100% - 110px);"> 390 <div class="pull-left" style="width: calc(100% - 110px);">
388 <input type="text" ng-model="data.state" class="form-control" placeholder=""> 391 <input type="text" ng-model="data.state" class="form-control" placeholder="">
389 </div> 392 </div>
390 <div class="clearfix"></div> 393 <div class="clearfix"></div>
391 </div> 394 </div>
392 <div class="col-md-3"> 395 <div class="col-md-3">
393 <div class="pull-left"> 396 <div class="pull-left">
394 <label class="new-input-label"><b>Zip Code</b></label> 397 <label class="new-input-label"><b>Zip Code</b></label>
395 </div> 398 </div>
396 <div class="pull-right" style="width: calc(100% - 60px);"> 399 <div class="pull-right" style="width: calc(100% - 60px);">
397 <input type="tel" ng-model="data.zipcode" class="form-control" placeholder=""> 400 <input type="tel" ng-model="data.zipcode" class="form-control" placeholder="">
398 </div> 401 </div>
399 <div class="clearfix"></div> 402 <div class="clearfix"></div>
400 </div> 403 </div>
401 </div> 404 </div>
402 <div class="clearfix"></div> 405 <div class="clearfix"></div>
403 <br/> 406 <br/>
404 <div class="col-xs-12"> 407 <div class="col-xs-12">
405 408
406 <div class="col-md-6"> 409 <div class="col-md-6">
407 <div class="pull-left" style="width: 110px;"> 410 <div class="pull-left" style="width: 110px;">
408 <label class="new-input-label"><b>Country</b></label> 411 <label class="new-input-label"><b>Country</b></label>
409 </div> 412 </div>
410 <div class="pull-left" style="width: calc(100% - 110px);"> 413 <div class="pull-left" style="width: calc(100% - 110px);">
411 <input type="text" ng-model="data.country" class="form-control" placeholder=""> 414 <input type="text" ng-model="data.country" class="form-control" placeholder="">
412 </div> 415 </div>
413 <div class="clearfix"></div> 416 <div class="clearfix"></div>
414 </div> 417 </div>
415 <div class="col-md-6"> 418 <div class="col-md-6">
416 <div class="pull-left" style="width: 110px;"> 419 <div class="pull-left" style="width: 110px;">
417 <label class="new-input-label"><b>Internal Note</b></label> 420 <label class="new-input-label"><b>Internal Note</b></label>
418 </div> 421 </div>
419 <div class="pull-left" style="width: calc(100% - 110px);"> 422 <div class="pull-left" style="width: calc(100% - 110px);">
420 <textarea name="message" ng-model="data.internalNote" rows="4" cols="34"></textarea> 423 <textarea name="message" ng-model="data.internalNote" rows="4" cols="34"></textarea>
421 </div> 424 </div>
422 <div class="clearfix"></div> 425 <div class="clearfix"></div>
423 </div> 426 </div>
424 </div> 427 </div>
425 <div class="clearfix"></div> 428 <div class="clearfix"></div>
426 <!-- <br/> 429 <!-- <br/>
427 <div class="col-xs-12"> 430 <div class="col-xs-12">
428 <div class="col-md-2 Airport"></div> 431 <div class="col-md-2 Airport"></div>
429 <div class="col-md-10 Airport"> 432 <div class="col-md-10 Airport">
430 <div class="pull-right"> 433 <div class="pull-right">
431 <button type="button" class="btn btn-default" ng-click="cancel()">Cancel</button> 434 <button type="button" class="btn btn-default" ng-click="cancel()">Cancel</button>
432 <button type="button" class="btn btn-warning" ng-click="addAircraft()">Next: Add Aircraft</button> 435 <button type="button" class="btn btn-warning" ng-click="addAircraft()">Next: Add Aircraft</button>
433 </div> 436 </div>
434 </div> 437 </div>
435 </div> --> 438 </div> -->
436 </div> 439 </div>
437 </div> 440 </div>
438 <div class="clearfix"></div> 441 <div class="clearfix"></div>
439 </div> 442 </div>
440 </div> 443 </div>
441 </div> 444 </div>
442 </div> 445 </div>
443 <div class="modal-body step-2" data-step="2" style="padding: 0;"> 446 <div class="modal-body step-2" data-step="2" style="padding: 0;">
444 <div> 447 <div>
445 <div class="row" style="margin: 0;"> 448 <div class="row" style="margin: 0;">
446 <div> 449 <div>
447 <div class="widget" style="margin-bottom: 0;"> 450 <div class="widget" style="margin-bottom: 0;">
448 <div class="widget-header"> 451 <div class="widget-header">
449 <i class="icon-pencil"></i> 452 <i class="icon-pencil"></i>
450 <i class="fa fa-tasks" aria-hidden="true"></i> 453 <i class="fa fa-tasks" aria-hidden="true"></i>
451 <h3>Add a New Company</h3> 454 <h3>Add a New Company</h3>
452 <div class="clearfix"></div> 455 <div class="clearfix"></div>
453 </div> 456 </div>
454 <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> 457 <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;">
455 <div class="col-xs-12"> 458 <div class="col-xs-12">
456 <div class="widget-header"> 459 <div class="widget-header">
457 <i class="fa fa-list"></i> 460 <i class="fa fa-list"></i>
458 <h3>Aircraft List</h3> 461 <h3>Aircraft List</h3>
459 </div> 462 </div>
460 <div class="widget-content" style="padding:0px;border: 0px; "> 463 <div class="widget-content" style="padding:0px;border: 0px; ">
461 <div class="table-responsive"> 464 <div class="table-responsive">
462 <!-- <table class="table table-bordered table-hover table-striped addRow" style="margin-bottom: 0px;"> 465 <!-- <table class="table table-bordered table-hover table-striped addRow" style="margin-bottom: 0px;">
463 <thead> 466 <thead>
464 <tr> 467 <tr>
465 <th>Tail</th> 468 <th>Tail</th>
466 <th>Make</th> 469 <th>Make</th>
467 <th>Model</th> 470 <th>Model</th>
468 <th>Size</th> 471 <th>Size</th>
469 <th>Margin</th> 472 <th>Margin</th>
470 </tr> 473 </tr>
471 </thead> 474 </thead>
472 <tbody> 475 <tbody>
473 <tr> 476 <tr>
474 <td> 477 <td>
475 <input type="text" style="width:100px;" ng-model="aircraft.tail" class="form-control"> 478 <input type="text" style="width:100px;" ng-model="aircraft.tail" class="form-control">
476 </td> 479 </td>
477 <td style="width: 25%;"> 480 <td style="width: 25%;">
478 <select class="form-control" ng-model="aircraft.make" ng-change="getModal()"> 481 <select class="form-control" ng-model="aircraft.make" ng-change="getModal()">
479 <option ng-repeat="make in aircraftMakeList">{{make}}</option> 482 <option ng-repeat="make in aircraftMakeList">{{make}}</option>
480 </select> 483 </select>
481 </td> 484 </td>
482 <td style="width: 20%;"> 485 <td style="width: 20%;">
483 <select class="form-control" ng-model="aircraft.model" ng-change="getSize()"> 486 <select class="form-control" ng-model="aircraft.model" ng-change="getSize()">
484 <option ng-repeat="model in aircraftModalList">{{model}}</option> 487 <option ng-repeat="model in aircraftModalList">{{model}}</option>
485 </select> 488 </select>
486 </td> 489 </td>
487 <td style="width: 25%;"> 490 <td style="width: 25%;">
488 <select class="form-control" ng-model="aircraft.size"> 491 <select class="form-control" ng-model="aircraft.size">
489 <option ng-repeat="size in aircraftSizeList">{{size}}</option> 492 <option ng-repeat="size in aircraftSizeList">{{size}}</option>
490 </select> 493 </select>
491 </td> 494 </td>
492 <td> 495 <td>
493 <select class="form-control"> 496 <select class="form-control">
494 <option>Margin1</option> 497 <option>Margin1</option>
495 <option>Margin2</option> 498 <option>Margin2</option>
496 </select> 499 </select>
497 </td> 500 </td>
498 </tr> 501 </tr>
499 </tbody> 502 </tbody>
500 503
501 </table> --> 504 </table> -->
502 <table class="table table-striped table-bordered"> 505 <table class="table table-striped table-bordered">
503 <thead> 506 <thead>
504 <tr> 507 <tr>
505 <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> --> 508 <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> -->
506 <th>Tail</th> 509 <th>Tail</th>
507 <th>Make</th> 510 <th>Make</th>
508 <th>Model</th> 511 <th>Model</th>
509 <th>Size</th> 512 <th>Size</th>
510 <th>JET A Margin</th> 513 <th>JET A Margin</th>
511 <th>AVGS 100LL Margin</th> 514 <th>AVGS 100LL Margin</th>
512 </tr> 515 </tr>
513 </thead> 516 </thead>
514 <tbody> 517 <tbody>
515 <tr ng-repeat="aircraftData in aircraftDetails track by $index"> 518 <tr ng-repeat="aircraftData in aircraftDetails track by $index">
516 <!-- <td> 519 <!-- <td>
517 <input type="checkbox" ng-model="aircraftData.selected"/> 520 <input type="checkbox" ng-model="aircraftData.selected"/>
518 </td> --> 521 </td> -->
519 <td style="width: 15%"> 522 <td style="width: 15%">
520 <input type="text" class="form-control" ng-model="aircraftData.tail" required/> 523 <input type="text" class="form-control" ng-model="aircraftData.tail" required/>
521 </td> 524 </td>
522 <td style="width: 17%"> 525 <td style="width: 17%">
523 <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)"> 526 <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)">
524 <option ng-repeat="make in aircraftMakeList">{{make}}</option> 527 <option ng-repeat="make in aircraftMakeList">{{make}}</option>
525 <option value="" disabled>Select...</option> 528 <option value="" disabled>Select...</option>
526 </select> 529 </select>
527 </td> 530 </td>
528 <td style="width: 17%"> 531 <td style="width: 17%">
529 <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)"> 532 <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)">
530 <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option> 533 <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option>
531 <option value="" disabled>Select...</option> 534 <option value="" disabled>Select...</option>
532 </select> 535 </select>
533 </td> 536 </td>
534 <td style="width: 17%"> 537 <td style="width: 17%">
535 <select class="form-control" ng-model="aircraftData.sizeId" ng-options="size.aircraftSize.id as size.aircraftSize.size for size in aircraftData.aircraftSizeList"> 538 <select class="form-control" ng-model="aircraftData.sizeId" ng-options="size.aircraftSize.id as size.aircraftSize.size for size in aircraftData.aircraftSizeList">
536 <option value="" disabled>Select...</option> 539 <option value="" disabled>Select...</option>
537 </select> 540 </select>
538 <!-- <select class="form-control" ng-model="aircraftData.size"> 541 <!-- <select class="form-control" ng-model="aircraftData.size">
539 <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option> 542 <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option>
540 </select> --> 543 </select> -->
541 </td> 544 </td>
542 <td style="width: 17%"> 545 <td style="width: 17%">
543 <select class="form-control" ng-model="aircraftData.marginId" ng-options="margin.id as margin.marginName for margin in jetMarginList"> 546 <select class="form-control" ng-model="aircraftData.marginId" ng-options="margin.id as margin.marginName for margin in jetMarginList">
544 <option value="" disabled>Select...</option> 547 <option value="" disabled>Select...</option>
545 </select> 548 </select>
546 </td> 549 </td>
547 <td style="width: 17%"> 550 <td style="width: 17%">
548 <select class="form-control marginSelectBox" ng-model="aircraftData.avgasMarginId" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList"> 551 <select class="form-control marginSelectBox" ng-model="aircraftData.avgasMarginId" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList">
549 <option value="" disabled>Select...</option> 552 <option value="" disabled>Select...</option>
550 </select> 553 </select>
551 </td> 554 </td>
552 </tr> 555 </tr>
553 </tbody> 556 </tbody>
554 </table> 557 </table>
555 </div> 558 </div>
556 <div class="clearfix"></div> 559 <div class="clearfix"></div>
557 </div> 560 </div>
558 </div> 561 </div>
559 <div class="clearfix"></div> 562 <div class="clearfix"></div>
560 <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;"> 563 <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;">
561 <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button> 564 <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button>
562 </div> 565 </div>
563 <!-- <div class="col-xs-12" style="margin-bottom: 20px;"> 566 <!-- <div class="col-xs-12" style="margin-bottom: 20px;">
564 <div class="pull-right"> 567 <div class="pull-right">
565 <button type="button" class="btn btn-default" ng-click="cancelCraft()">Cancel</button> 568 <button type="button" class="btn btn-default" ng-click="cancelCraft()">Cancel</button>
566 <button type="button" class="btn btn-warning" ng-click="goBack()">Go Back</button> 569 <button type="button" class="btn btn-warning" ng-click="goBack()">Go Back</button>
567 <button type="button" class="btn btn-success" ng-click="goBack()">Save</button> 570 <button type="button" class="btn btn-success" ng-click="goBack()">Save</button>
568 </div> 571 </div>
569 </div> --> 572 </div> -->
570 </div> 573 </div>
571 </div> 574 </div>
572 <div class="clearfix"></div> 575 <div class="clearfix"></div>
573 </div> 576 </div>
574 </div> 577 </div>
575 </div> 578 </div>
576 </div> 579 </div>
577 <!-- <div class="modal-body step-3" data-step="3"> 580 <!-- <div class="modal-body step-3" data-step="3">
578 This is the final step. 581 This is the final step.
579 </div> --> 582 </div> -->
580 <div class="modal-footer" style="border-top: 0;"> 583 <div class="modal-footer" style="border-top: 0;">
581 <button type="button" class="btn btn-default" ng-click="reset2()" data-dismiss="modal">Cancel</button> 584 <button type="button" class="btn btn-default" ng-click="reset2()" data-dismiss="modal">Cancel</button>
582 <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addFirstData('#demo-modal-3', 2)">Next: Add Aircraft</button> 585 <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addFirstData('#demo-modal-3', 2)">Next: Add Aircraft</button>
583 <button type="button" class="btn btn-primary step step-2" data-step="2" onclick="sendEvent('#demo-modal-3', 1)">Go Back</button> 586 <button type="button" class="btn btn-primary step step-2" data-step="2" onclick="sendEvent('#demo-modal-3', 1)">Go Back</button>
584 <!-- <button type="button" class="btn btn-primary step step-2" data-step="2" onclick="sendEvent('#demo-modal-3', 3)">Continue</button> --> 587 <!-- <button type="button" class="btn btn-primary step step-2" data-step="2" onclick="sendEvent('#demo-modal-3', 3)">Continue</button> -->
585 <button type="button" class="btn btn-success step step-2" data-step="2" ng-click="saveCompanyData()">Save</button> 588 <button type="button" class="btn btn-success step step-2" data-step="2" ng-click="saveCompanyData()">Save</button>
586 </div> 589 </div>
587 </div> 590 </div>
588 </div> 591 </div>
589 </form> 592 </form>
590 <div class="myLoader" ng-show="showLoader"> 593 <div class="myLoader" ng-show="showLoader">
591 <img src="../img/hourglass.gif" width="50px;"> 594 <img src="../img/hourglass.gif" width="50px;">
592 </div> 595 </div>
593 <script src="js/multi-step-modal.js"></script> 596 <script src="js/multi-step-modal.js"></script>
594 <script> 597 <script>
595 sendEvent = function(sel, step) { 598 sendEvent = function(sel, step) {
596 $(sel).trigger('next.m.' + step); 599 $(sel).trigger('next.m.' + step);
597 } 600 }
598 </script> 601 </script>
599 602
app/partials/dashboard/dashboard.controller.js
1 1
2 (function() { 2 (function() {
3 'use strict' 3 'use strict'
4 4
5 angular.module('acufuel') 5 angular.module('acufuel')
6 .controller('dashboardController', [ '$scope', '$filter', '$rootScope', '$state', 'dashboardService', dashboardController]); 6 .controller('dashboardController', [ '$scope', '$filter', '$rootScope', '$state', 'dashboardService', dashboardController]);
7 7
8 function dashboardController($scope, $filter, $rootScope, $state, dashboardService) { 8 function dashboardController($scope, $filter, $rootScope, $state, dashboardService) {
9 9
10 $scope.logout = function () { 10 $scope.logout = function () {
11 localStorage.removeItem("loginStatus"); 11 localStorage.removeItem("loginStatus");
12 $rootScope.path = false; 12 $rootScope.path = false;
13 $state.reload(); 13 $state.reload();
14 } 14 }
15 15
16 $scope.marginList = {} 16 $scope.marginList = {}
17 dashboardService.getMargin().then(function(result) { 17 dashboardService.getMargin().then(function(result) {
18 $scope.marginList = result; 18 $scope.marginList = result;
19 console.log("Margin result", result) 19 console.log("Margin result", result)
20 }) 20 })
21 21
22 $scope.newFuelPricing = {}; 22 $scope.newFuelPricing = {};
23 dashboardService.getFuelPricingNew().then(function(result) { 23 dashboardService.getFuelPricingNew().then(function(result) {
24 $scope.newFuelPricing = result; 24 $scope.newFuelPricing = result;
25 console.log("Fuel Pricing result", result) 25 console.log("Fuel Pricing result", result)
26 for (var i = 0; i<$scope.newFuelPricing.length; i++) { 26 for (var i = 0; i<$scope.newFuelPricing.length; i++) {
27 if ($scope.newFuelPricing[i].fuelPricing != null) { 27 if ($scope.newFuelPricing[i].fuelPricing != null) {
28 if ($scope.newFuelPricing[i].fuelPricing.expirationDate != null && $scope.newFuelPricing[i].fuelPricing.expirationDate != '') { 28 if ($scope.newFuelPricing[i].fuelPricing.expirationDate != null && $scope.newFuelPricing[i].fuelPricing.expirationDate != '') {
29 var newTime = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate); 29 var newTime = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate);
30 var month = newTime.getUTCMonth() + 1; //months from 1-12 30 var month = newTime.getUTCMonth() + 1; //months from 1-12
31 var day = newTime.getUTCDate(); 31 var day = newTime.getUTCDate();
32 var year = newTime.getUTCFullYear(); 32 var year = newTime.getUTCFullYear();
33 $scope.newFuelPricing[i].fuelPricing.expirationDate = month+'/'+day+'/'+year; 33 $scope.newFuelPricing[i].fuelPricing.expirationDate = month+'/'+day+'/'+year;
34 } 34 }
35 } 35 }
36 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 36 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
37 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 37 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
38 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration != null && $scope.newFuelPricing[i].futureFuelPricing.nextExpiration != '') { 38 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration != null && $scope.newFuelPricing[i].futureFuelPricing.nextExpiration != '') {
39 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration); 39 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration);
40 var nextMonth = newTime.getUTCMonth() + 1; //months from 1-12 40 var nextMonth = newTime.getUTCMonth() + 1; //months from 1-12
41 var nextDay = newTime.getUTCDate(); 41 var nextDay = newTime.getUTCDate();
42 var nextYear = newTime.getUTCFullYear(); 42 var nextYear = newTime.getUTCFullYear();
43 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = nextMonth+'/'+nextDay+'/'+nextYear; 43 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = nextMonth+'/'+nextDay+'/'+nextYear;
44 } 44 }
45 } 45 }
46 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 46 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
47 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate != null && $scope.newFuelPricing[i].futureFuelPricing.deployDate != '') { 47 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate != null && $scope.newFuelPricing[i].futureFuelPricing.deployDate != '') {
48 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate); 48 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate);
49 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 49 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12
50 var dday = newTime.getUTCDate(); 50 var dday = newTime.getUTCDate();
51 var dyear = newTime.getUTCFullYear(); 51 var dyear = newTime.getUTCFullYear();
52 $scope.newFuelPricing[i].futureFuelPricing.deployDate = dmonth+'/'+dday+'/'+dyear; 52 $scope.newFuelPricing[i].futureFuelPricing.deployDate = dmonth+'/'+dday+'/'+dyear;
53 } 53 }
54 } 54 }
55 } 55 }
56 var str =""+ $scope.newFuelPricing[i].name
57 if(str.startsWith("J")){
58 $scope.newFuelPricing[i].jeta = true;
59 var str1 = str.substring(0,5)
60 var str2 = str.substring(6, str.length)
61 $scope.newFuelPricing[i].name = str1
62 $scope.newFuelPricing[i].namejetrest = str2
63
64
65 }else if(str.startsWith("100")){
66 $scope.newFuelPricing[i].avgas = true;
67 var str1 = str.substring(0,5)
68 var str2 = str.substring(6, str.length)
69 $scope.newFuelPricing[i].name = str1
70 $scope.newFuelPricing[i].nameavgasrest = str2
71 }
56 } 72 }
57 $scope.showLoader = false; 73 $scope.showLoader = false;
58 }) 74 })
59 75
60 76
61 $scope.updateFuelPricing = {}; 77 $scope.updateFuelPricing = {};
62 $scope.updateFuelPricing.fuelPricingList = []; 78 $scope.updateFuelPricing.fuelPricingList = [];
63 $scope.updateFuelPricing.userProfileId = $scope.userProfileId; 79 $scope.updateFuelPricing.userProfileId = $scope.userProfileId;
64 $scope.updateFuelPricingClick = function(){ 80 $scope.updateFuelPricingClick = function(){
65 $scope.showLoader = true; 81 $scope.showLoader = true;
66 82
67 for (var i = 0; i<$scope.newFuelPricing.length; i++) { 83 for (var i = 0; i<$scope.newFuelPricing.length; i++) {
68 if ($scope.newFuelPricing[i].fuelPricing != null) { 84 if ($scope.newFuelPricing[i].fuelPricing != null) {
69 $scope.newFuelPricing[i].fuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].fuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin); 85 $scope.newFuelPricing[i].fuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].fuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin);
70 if ($scope.newFuelPricing[i].fuelPricing.cost == null) { 86 if ($scope.newFuelPricing[i].fuelPricing.cost == null) {
71 $scope.newFuelPricing[i].fuelPricing.cost = ''; 87 $scope.newFuelPricing[i].fuelPricing.cost = '';
72 } 88 }
73 if ($scope.newFuelPricing[i].fuelPricing.papMargin == null) { 89 if ($scope.newFuelPricing[i].fuelPricing.papMargin == null) {
74 $scope.newFuelPricing[i].fuelPricing.papMargin = ''; 90 $scope.newFuelPricing[i].fuelPricing.papMargin = '';
75 } 91 }
76 if ($scope.newFuelPricing[i].fuelPricing.papTotal == null) { 92 if ($scope.newFuelPricing[i].fuelPricing.papTotal == null) {
77 $scope.newFuelPricing[i].fuelPricing.papTotal = ''; 93 $scope.newFuelPricing[i].fuelPricing.papTotal = '';
78 } 94 }
79 if ($scope.newFuelPricing[i].fuelPricing.expirationDate == null) { 95 if ($scope.newFuelPricing[i].fuelPricing.expirationDate == null) {
80 $scope.newFuelPricing[i].fuelPricing.expirationDate = ''; 96 $scope.newFuelPricing[i].fuelPricing.expirationDate = '';
81 }else{ 97 }else{
82 $scope.newFuelPricing[i].fuelPricing.expirationDate = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate); 98 $scope.newFuelPricing[i].fuelPricing.expirationDate = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate);
83 console.log('$scope.newFuelPricing[i].fuelPricing.expirationDate', $scope.newFuelPricing[i].fuelPricing.expirationDate); 99 console.log('$scope.newFuelPricing[i].fuelPricing.expirationDate', $scope.newFuelPricing[i].fuelPricing.expirationDate);
84 $scope.newFuelPricing[i].fuelPricing.expirationDate = $scope.newFuelPricing[i].fuelPricing.expirationDate.getTime(); 100 $scope.newFuelPricing[i].fuelPricing.expirationDate = $scope.newFuelPricing[i].fuelPricing.expirationDate.getTime();
85 } 101 }
86 102
87 $scope.newFuelPricing[i].fuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].fuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin); 103 $scope.newFuelPricing[i].fuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].fuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin);
88 $scope.updateFuelPricing.fuelPricingList.push({ 104 $scope.updateFuelPricing.fuelPricingList.push({
89 'cost': $scope.newFuelPricing[i].fuelPricing.cost, 105 'cost': $scope.newFuelPricing[i].fuelPricing.cost,
90 'papMargin': $scope.newFuelPricing[i].fuelPricing.papMargin, 106 'papMargin': $scope.newFuelPricing[i].fuelPricing.papMargin,
91 'papTotal': $scope.newFuelPricing[i].fuelPricing.papTotal, 107 'papTotal': $scope.newFuelPricing[i].fuelPricing.papTotal,
92 'expirationDate': $scope.newFuelPricing[i].fuelPricing.expirationDate, 108 'expirationDate': $scope.newFuelPricing[i].fuelPricing.expirationDate,
93 'productId': $scope.newFuelPricing[i].id, 109 'productId': $scope.newFuelPricing[i].id,
94 'id': $scope.newFuelPricing[i].fuelPricing.id, 110 'id': $scope.newFuelPricing[i].fuelPricing.id,
95 }) 111 })
96 112
97 }else{ 113 }else{
98 /*$scope.newFuelPricing[i].fuelPricing.cost = ''; 114 /*$scope.newFuelPricing[i].fuelPricing.cost = '';
99 $scope.newFuelPricing[i].fuelPricing.papMargin = ''; 115 $scope.newFuelPricing[i].fuelPricing.papMargin = '';
100 $scope.newFuelPricing[i].fuelPricing.papTotal = ''; 116 $scope.newFuelPricing[i].fuelPricing.papTotal = '';
101 $scope.newFuelPricing[i].fuelPricing.expirationDate = '';*/ 117 $scope.newFuelPricing[i].fuelPricing.expirationDate = '';*/
102 } 118 }
103 119
104 } 120 }
105 121
106 122
107 123
108 124
109 console.log('result',$scope.marginList) 125 console.log('result',$scope.marginList)
110 dashboardService.updateFuelPricing($scope.updateFuelPricing).then(function(result) { 126 dashboardService.updateFuelPricing($scope.updateFuelPricing).then(function(result) {
111 toastr.success('Successfully Updated', { 127 toastr.success('Successfully Updated', {
112 closeButton: true 128 closeButton: true
113 }) 129 })
114 dashboardService.getFuelPricingNew().then(function(result) { 130 dashboardService.getFuelPricingNew().then(function(result) {
115 $scope.newFuelPricing = result; 131 $scope.newFuelPricing = result;
116 for (var i = 0; i<$scope.newFuelPricing.length; i++) { 132 for (var i = 0; i<$scope.newFuelPricing.length; i++) {
117 if ($scope.newFuelPricing[i].fuelPricing != null) { 133 if ($scope.newFuelPricing[i].fuelPricing != null) {
118 if ($scope.newFuelPricing[i].fuelPricing.expirationDate != null && $scope.newFuelPricing[i].fuelPricing.expirationDate != '') { 134 if ($scope.newFuelPricing[i].fuelPricing.expirationDate != null && $scope.newFuelPricing[i].fuelPricing.expirationDate != '') {
119 var newTime = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate); 135 var newTime = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate);
120 var month = newTime.getUTCMonth() + 1; //months from 1-12 136 var month = newTime.getUTCMonth() + 1; //months from 1-12
121 var day = newTime.getUTCDate(); 137 var day = newTime.getUTCDate();
122 var year = newTime.getUTCFullYear(); 138 var year = newTime.getUTCFullYear();
123 $scope.newFuelPricing[i].fuelPricing.expirationDate = month+'/'+day+'/'+year; 139 $scope.newFuelPricing[i].fuelPricing.expirationDate = month+'/'+day+'/'+year;
124 } 140 }
125 } 141 }
126 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 142 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
127 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 143 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
128 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration != null && $scope.newFuelPricing[i].futureFuelPricing.nextExpiration != '') { 144 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration != null && $scope.newFuelPricing[i].futureFuelPricing.nextExpiration != '') {
129 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration); 145 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration);
130 var nextMonth = newTime.getUTCMonth() + 1; //months from 1-12 146 var nextMonth = newTime.getUTCMonth() + 1; //months from 1-12
131 var nextDay = newTime.getUTCDate(); 147 var nextDay = newTime.getUTCDate();
132 var nextYear = newTime.getUTCFullYear(); 148 var nextYear = newTime.getUTCFullYear();
133 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = nextMonth+'/'+nextDay+'/'+nextYear; 149 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = nextMonth+'/'+nextDay+'/'+nextYear;
134 } 150 }
135 } 151 }
136 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 152 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
137 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate != null && $scope.newFuelPricing[i].futureFuelPricing.deployDate != '') { 153 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate != null && $scope.newFuelPricing[i].futureFuelPricing.deployDate != '') {
138 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate); 154 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate);
139 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 155 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12
140 var dday = newTime.getUTCDate(); 156 var dday = newTime.getUTCDate();
141 var dyear = newTime.getUTCFullYear(); 157 var dyear = newTime.getUTCFullYear();
142 $scope.newFuelPricing[i].futureFuelPricing.deployDate = dmonth+'/'+dday+'/'+dyear; 158 $scope.newFuelPricing[i].futureFuelPricing.deployDate = dmonth+'/'+dday+'/'+dyear;
143 } 159 }
144 } 160 }
145 } 161 }
146 } 162 }
147 $scope.showLoader = false; 163 $scope.showLoader = false;
148 }) 164 })
149 }) 165 })
150 166
151 } 167 }
152 168
153 169
154 170
155 // $scope.submitLogin = function() { 171 // $scope.submitLogin = function() {
156 // LoginService.setAuth(true); 172 // LoginService.setAuth(true);
157 // toastr.info("Login successfully"); 173 // toastr.info("Login successfully");
158 // $state.go('app.dashboard'); 174 // $state.go('app.dashboard');
159 // /*LoginService.login($scope.username, $scope.password).then(function(result){ 175 // /*LoginService.login($scope.username, $scope.password).then(function(result){
160 // if(typeof result == 'object') { 176 // if(typeof result == 'object') {
161 // LoginService.setAuth(true); 177 // LoginService.setAuth(true);
162 // $rootScope.path = true; 178 // $rootScope.path = true;
163 // var reqPwdChng = localStorage.getItem("requiredChangePwd"); 179 // var reqPwdChng = localStorage.getItem("requiredChangePwd");
164 // if (reqPwdChng && reqPwdChng == "Y") { 180 // if (reqPwdChng && reqPwdChng == "Y") {
165 // $state.go('resetPassword'); 181 // $state.go('resetPassword');
166 // } else { 182 // } else {
167 // $state.go('app.upload'); 183 // $state.go('app.upload');
168 // } 184 // }
169 // } else { 185 // } else {
170 // toastr.info("Error in login. Please check login name and password"); 186 // toastr.info("Error in login. Please check login name and password");
171 // } 187 // }
172 // })*/ 188 // })*/
173 // } 189 // }
174 } 190 }
175 })(); 191 })();
176 192
app/partials/dashboard/dashboard.html
1 <style> 1 <style>
2 .subnavbar .mainnav > li:first-child > a{ 2 .subnavbar .mainnav > li:first-child > a{
3 color: #ff9900; 3 color: #ff9900;
4 } 4 }
5 </style> 5 </style>
6 6
7 7
8 <div class="main"> 8 <div class="main">
9 <div class="container"> 9 <div class="container">
10 <div class="row"> 10 <div class="row">
11 <div class="col-md-7"> 11 <div class="col-md-7">
12 <div class="widget stacked"> 12 <div class="widget stacked">
13 <div class="row"> 13 <div class="row">
14 <div class="col-md-3"> 14 <div class="col-md-3">
15 <div class="widget-header"> 15 <div class="widget-header">
16 <i class="fa fa-tint"></i> &nbsp; Fuel Orders 16 <i class="fa fa-tint"></i> &nbsp; Fuel Orders
17 </div> 17 </div>
18 <div class="custom-widget-content"> 18 <div class="custom-widget-content">
19 <div> 19 <div>
20 <div class="col-xs-12"> 20 <div class="col-xs-12">
21 <span class="pull-left">Completed</span> 21 <span class="pull-left">Completed</span>
22 <button class="btn btn-success btn-xs pull-right"> 22 <button class="btn btn-success btn-xs pull-right">
23 <span style="font-size:9px;">Monthly</span> 23 <span style="font-size:9px;">Monthly</span>
24 </button> 24 </button>
25 <div class="clearfix"></div> 25 <div class="clearfix"></div>
26 </div> 26 </div>
27 <div class="clearfix"></div> 27 <div class="clearfix"></div>
28 </div> 28 </div>
29 <hr class="hr"> 29 <hr class="hr">
30 <div class="col-xs-12"> 30 <div class="col-xs-12">
31 <h2 style="margin-bottom: 0px;">280</h2> 31 <h2 style="margin-bottom: 0px;">280</h2>
32 <span>Fuel Orders</span> 32 <span>Fuel Orders</span>
33 </div> 33 </div>
34 <div class="clearfix"></div> 34 <div class="clearfix"></div>
35 </div> 35 </div>
36 </div> 36 </div>
37 <div class="col-md-3"> 37 <div class="col-md-3">
38 <div class="widget-header"> 38 <div class="widget-header">
39 <i class="fa fa-tint"></i> &nbsp; Fuel Orders 39 <i class="fa fa-tint"></i> &nbsp; Fuel Orders
40 </div> 40 </div>
41 <div class="custom-widget-content"> 41 <div class="custom-widget-content">
42 <div> 42 <div>
43 <div class="col-xs-12"> 43 <div class="col-xs-12">
44 <span class="pull-left">Pending</span> 44 <span class="pull-left">Pending</span>
45 <button class="btn btn-success btn-xs pull-right pull-right-color "> 45 <button class="btn btn-success btn-xs pull-right pull-right-color ">
46 <span style="font-size:9px;">Monthly</span> 46 <span style="font-size:9px;">Monthly</span>
47 </button> 47 </button>
48 <div class="clearfix"></div> 48 <div class="clearfix"></div>
49 </div> 49 </div>
50 <div class="clearfix"></div> 50 <div class="clearfix"></div>
51 </div> 51 </div>
52 <hr class="hr"> 52 <hr class="hr">
53 <div class="col-xs-12"> 53 <div class="col-xs-12">
54 <h2 style="margin-bottom: 0px;">280</h2> 54 <h2 style="margin-bottom: 0px;">280</h2>
55 <span>Fuel Orders</span> 55 <span>Fuel Orders</span>
56 </div> 56 </div>
57 <div class="clearfix"></div> 57 <div class="clearfix"></div>
58 </div> 58 </div>
59 </div> 59 </div>
60 <div class="col-md-6"> 60 <div class="col-md-6">
61 <div class="widget-header"> 61 <div class="widget-header">
62 <i class="fa fa-list-alt "></i> 62 <i class="fa fa-list-alt "></i>
63 <h3>Fuel Order</h3> 63 <h3>Fuel Order</h3>
64 </div> 64 </div>
65 <div class="custom-widget-content"> 65 <div class="custom-widget-content">
66 <div> 66 <div>
67 <div class="col-xs-12"> 67 <div class="col-xs-12">
68 <span class="pull-left">Activity: Airport Operations</span> 68 <span class="pull-left">Activity: Airport Operations</span>
69 <button class="btn btn-primary btn-xs pull-right"> 69 <button class="btn btn-primary btn-xs pull-right">
70 <span style="font-size:9px;">Monthly</span> 70 <span style="font-size:9px;">Monthly</span>
71 </button> 71 </button>
72 <div class="clearfix"></div> 72 <div class="clearfix"></div>
73 </div> 73 </div>
74 <div class="clearfix"></div> 74 <div class="clearfix"></div>
75 </div> 75 </div>
76 <hr class="hr"> 76 <hr class="hr">
77 <div class="col-xs-6"> 77 <div class="col-xs-6">
78 <h2 style="margin-bottom:0px;">280</h2> 78 <h2 style="margin-bottom:0px;">280</h2>
79 <span>Based-Aircraft</span> 79 <span>Based-Aircraft</span>
80 </div> 80 </div>
81 <div class="col-xs-6"> 81 <div class="col-xs-6">
82 <h2 style="margin-bottom: 0px;">280</h2> 82 <h2 style="margin-bottom: 0px;">280</h2>
83 <span>Take-offs & Landings</span> 83 <span>Take-offs & Landings</span>
84 </div> 84 </div>
85 <div class="clearfix"></div> 85 <div class="clearfix"></div>
86 </div> 86 </div>
87 </div> 87 </div>
88 </div> 88 </div>
89 </br> 89 </br>
90 <div class="row"> 90 <div class="row">
91 <div class="col-md-12"> 91 <div class="col-md-12">
92 <div class="widget-header"> 92 <div class="widget-header">
93 <i class="fa fa-signal" aria-hidden="true"></i> 93 <i class="fa fa-signal" aria-hidden="true"></i>
94 <h3>Chart</h3> 94 <h3>Chart</h3>
95 </div> 95 </div>
96 <!-- /widget-header --> 96 <!-- /widget-header -->
97 <div class="widget-content"> 97 <div class="widget-content">
98 <div class="stats"> 98 <div class="stats">
99 <div class="stat"> 99 <div class="stat">
100 <span class="stat-value">12,386</span> 100 <span class="stat-value">12,386</span>
101 Site Visits 101 Site Visits
102 </div> 102 </div>
103 <!-- /stat --> 103 <!-- /stat -->
104 <div class="stat"> 104 <div class="stat">
105 <span class="stat-value">9,249</span> 105 <span class="stat-value">9,249</span>
106 Unique Visits 106 Unique Visits
107 </div> 107 </div>
108 <!-- /stat --> 108 <!-- /stat -->
109 <div class="stat"> 109 <div class="stat">
110 <span class="stat-value">70%</span> 110 <span class="stat-value">70%</span>
111 New Visits 111 New Visits
112 </div> 112 </div>
113 <!-- /stat --> 113 <!-- /stat -->
114 </div> 114 </div>
115 <!-- /stats --> 115 <!-- /stats -->
116 <div id="chart-stats" class="stats"> 116 <div id="chart-stats" class="stats">
117 <div class="stat stat-chart"> 117 <div class="stat stat-chart">
118 <!-- <div id="donut-chart" class="chart-holder"></div> --> <!-- #donut --> 118 <!-- <div id="donut-chart" class="chart-holder"></div> --> <!-- #donut -->
119 <div id="area-chart" class="chart-holder" style="height: 250px;"></div> 119 <div id="area-chart" class="chart-holder" style="height: 250px;"></div>
120 <!-- /area-chart --> 120 <!-- /area-chart -->
121 </div> 121 </div>
122 <!-- /substat --> 122 <!-- /substat -->
123 <div class="stat stat-time"> 123 <div class="stat stat-time">
124 <span class="stat-value">00:28:13</span> 124 <span class="stat-value">00:28:13</span>
125 Average Time on Site 125 Average Time on Site
126 </div> 126 </div>
127 <!-- /substat --> 127 <!-- /substat -->
128 </div> 128 </div>
129 <!-- /substats --> 129 <!-- /substats -->
130 </div> 130 </div>
131 <!-- /widget-content --> 131 <!-- /widget-content -->
132 </div> 132 </div>
133 <!-- /widget --> 133 <!-- /widget -->
134 </div> 134 </div>
135 </div> 135 </div>
136 </div> 136 </div>
137 <!-- /span6 --> 137 <!-- /span6 -->
138 <div class="col-md-5"> 138 <div class="col-md-5">
139 <div class="widget stacked"> 139 <div class="widget stacked">
140 <div class="widget-header"> 140 <div class="widget-header">
141 <i class="fa fa-pencil"></i> 141 <i class="fa fa-pencil"></i>
142 <h3>Price Manager</h3> 142 <h3>Price Manager</h3>
143 <select style="float: right; margin: 7px 10px; width: 150px; height: 26px; padding: 0 0;" class="form-control" ng-model="sendEmail.pricing" ng-change="confirmMail()"> 143 <select style="float: right; margin: 7px 10px; width: 150px; height: 26px; padding: 0 0;" class="btn btn-primary" class="form-control" ng-model="sendEmail.pricing" ng-change="confirmMail()">
144 <option value="" disabled selected="selected">Send Pricing Email</option> 144 <option value="" disabled selected="selected">Email All Pricing</option>
145 <option ng-repeat="margins in marginList" value="{{margins.id}}">{{margins.marginName}}</option> 145 <option value="JET-A">Email JET-A pricing only</option>
146 <option disabled>_______________</option> 146 <option value="AVGAS">Email AVGAS pricing only</option>
147 <option disabled>_______________________________</option>
147 <option value="all">Distribute All</option> 148 <option value="all">Distribute All</option>
148 </select> 149 </select>
149 </div> 150 </div>
150 <!-- /widget-header --> 151 <!-- /widget-header -->
151 <div class="widget-content"> 152 <div class="widget-content">
152 <h4>Update Fuel Price Here</h4> 153 <h4>Deployed Fuel Prices</h4>
153 <table class="table"> 154 <table class="table">
154 <thead> 155 <thead>
155 <tr> 156 <tr>
156 <th> Product</th> 157 <th> Product</th>
157 <th> Cost</th> 158 <th> Cost</th>
158 <th> Margin</th> 159 <th> Margin</th>
159 <th> PAP(Total)</th> 160 <th> PAP(Total)</th>
160 <th style="color: #F90;"> Expires</th> 161 <th style="color: #F90;"> Expires</th>
161 </tr> 162 </tr>
162 </thead> 163 </thead>
163 <tbody> 164 <tbody>
164 <tr ng-repeat="fuelPricing in newFuelPricing"> 165 <tr ng-repeat="fuelPricing in newFuelPricing | filter:{ status: true }">
165 <td> 166 <td>
166 <span>{{fuelPricing.name}}</span> 167 <span style="color: #2196f3" ng-show="fuelPricing.jeta">{{fuelPricing.name}}</span>
168 <span ng-show="fuelPricing.jeta">{{fuelPricing.namejetrest}}</span>
169 <span style="color: 39c" ng-show="fuelPricing.avgas">{{fuelPricing.name}}</span>
170 <span ng-show="fuelPricing.avgas">{{fuelPricing.nameavgasrest}}</span>
167 </td> 171 </td>
168 <td> 172 <td>
169 <input type="text" class="form-control" ng-model="fuelPricing.fuelPricing.cost" style="height:31px; width: 50px; padding: 6px 6px"> 173 <span>{{fuelPricing.fuelPricing.cost}}</span>
170 </td> 174 </td>
171 <td> 175 <td>
172 <input type="text" class="form-control" ng-model="fuelPricing.fuelPricing.papMargin" style="height:31px; width: 50px; padding: 6px 6px;"> 176 <span>{{fuelPricing.fuelPricing.papMargin}}</span>
173 </td> 177 </td>
174 <td> 178 <td>
175 <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.fuelPricing.cost -- fuelPricing.fuelPricing.papMargin}}</span> 179 <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.fuelPricing.cost -- fuelPricing.fuelPricing.papMargin | number : 2 }}</span>
176 </td> 180 </td>
177 <td> 181 <td>
178 <input type="text" class="form-control" datepicker ng-model="fuelPricing.fuelPricing.expirationDate" style="height:31px; width: 100px; padding: 6px 6px;"> 182 <span>{{fuelPricing.fuelPricing.expirationDate}}</span>
179 </td> 183 </td>
180 </tr> 184 </tr>
181 </tbody> 185 </tbody>
182 </table> 186 </table>
183 <div class="row" style="margin-left: 0px;"> 187
184 <div class="col-md-12" style= "text-align: right;">
185 <button type="button" class="btn btn-success btn-xs" ng-click="updateFuelPricingClick()">Save</button>
186 </div>
187 </div>
188 </div> 188 </div>
189 <!-- /widget-content --> 189 <!-- /widget-content -->
190 </div> 190 </div>
191 <!-- /widget --> 191 <!-- /widget -->
192 <div class="widget widget-nopad stacked"> 192 <div class="widget widget-nopad stacked">
193 <div class="widget-header"> 193 <div class="widget-header">
194 <i class="fa fa-comment" aria-hidden="true"></i> 194 <i class="fa fa-comment" aria-hidden="true"></i>
195 <h3>Messages</h3> 195 <h3>Messages</h3>
196 </div> 196 </div>
197 <!-- /widget-header --> 197 <!-- /widget-header -->
198 <div class="widget-content"> 198 <div class="widget-content">
199 <h4 style="padding:10px">Messages</h4> 199 <h4 style="padding:10px">Messages</h4>
200 <hr class="hr"> 200 <hr class="hr">
201 <ul class="news-items"> 201 <ul class="news-items">
202 <li> 202 <li>
203 <div class="news-item-detail"> 203 <div class="news-item-detail">
204 <a href="javascript:;" class="news-item-title">Duis aute irure dolor in reprehenderit</a> 204 <a href="javascript:;" class="news-item-title">Duis aute irure dolor in reprehenderit</a>
205 <p class="news-item-preview">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p> 205 <p class="news-item-preview">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p>
206 </div> 206 </div>
207 <div class="news-item-date"> 207 <div class="news-item-date">
208 <span class="news-item-day">08</span> 208 <span class="news-item-day">08</span>
209 <span class="news-item-month">Mar</span> 209 <span class="news-item-month">Mar</span>
210 </div> 210 </div>
211 </li> 211 </li>
212 <li> 212 <li>
213 <div class="news-item-detail"> 213 <div class="news-item-detail">
214 <a href="javascript:;" class="news-item-title">Duis aute irure dolor in reprehenderit</a> 214 <a href="javascript:;" class="news-item-title">Duis aute irure dolor in reprehenderit</a>
215 <p class="news-item-preview">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p> 215 <p class="news-item-preview">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p>
216 </div> 216 </div>
217 <div class="news-item-date"> 217 <div class="news-item-date">
218 <span class="news-item-day">08</span> 218 <span class="news-item-day">08</span>
219 <span class="news-item-month">Mar</span> 219 <span class="news-item-month">Mar</span>
220 </div> 220 </div>
221 </li> 221 </li>
222 </ul> 222 </ul>
223 </div> 223 </div>
224 <!-- /widget-content --> 224 <!-- /widget-content -->
225 </div> 225 </div>
226 <!-- /widget --> 226 <!-- /widget -->
227 </div> 227 </div>
228 <!-- /span6 --> 228 <!-- /span6 -->
229 </div> 229 </div>
230 <!-- /row --> 230 <!-- /row -->
app/partials/updateFuelManager/updateFuelManager.html
1 1
2 2
3 <style> 3 <style>
4 .subnavbar .mainnav > li:nth-child(2) > a{ 4 .subnavbar .mainnav > li:nth-child(2) > a{
5 color: #ff9900; 5 color: #ff9900;
6 } 6 }
7 </style> 7 .extraClasToMerge{
8 <div class="myLoader" ng-show="showLoader"> 8 color: #fff;
9 <img src="../img/hourglass.gif" width="50px;"> 9 }
10 </div> 10 </style>
11 <div style="width: 96%; margin-left: 2%;"> 11 <div class="myLoader" ng-show="showLoader">
12 <div class="row"> 12 <img src="../img/hourglass.gif" width="50px;">
13 13 </div>
14 <div class="col-md-6"> 14 <div style="width: 90%; margin-left: 5%;">
15 <div class="widget stacked"> 15 <div class="row">
16 <div class="widget-header"> 16
17 <i class="fa fa-pencil"></i> 17 <div class="col-md-6">
18 <h3>Price Manager Staging</h3> 18 <div class="widget stacked">
19 </div> 19 <div class="widget-header">
20 <!-- /widget-header --> 20 <i class="fa fa-pencil"></i>
21 <div class="widget-content"> 21 <h3>Price Manager Staging</h3>
22 <h6 style="color:#F90">Queue Pricing for Deployment in the Price Manager below</h6> 22 </div>
23 <form> 23 <!-- /widget-header -->
24 <table class="table"> 24 <div class="widget-content">
25 <thead> 25 <h6 style="color:#F90">Queue Pricing for Deployment in the Price Manager below</h6>
26 <tr> 26 <form>
27 <th> Product</th> 27 <table class="table">
28 <th> Cost</th> 28 <thead>
29 <th> PAP(Margin)</th> 29 <tr>
30 <th> Deploy Date</th> 30 <th> Product</th>
31 <th style="color: #F90;">Price Expires</th> 31 <th> Cost</th>
32 <th> PAP(Total)</th> 32 <th> PAP(Margin)</th>
33 </tr> 33 <th> Deploy Date</th>
34 </thead> 34 <th style="color: #F90;">Price Expires</th>
35 <tbody> 35 <th> PAP(Total)</th>
36 <tr ng-repeat="fuelPricing in newFuelPricing"> 36 </tr>
37 <td> 37 </thead>
38 <span style="color: #2196f3" ng-show="fuelPricing.jeta">{{fuelPricing.name}}</span> 38 <tbody>
39 <span ng-show="fuelPricing.jeta">{{fuelPricing.namejetrest}}</span> 39 <tr ng-repeat="fuelPricing in newFuelPricing | filter:{ status: true }">
40 <span style="color: 39c" ng-show="fuelPricing.avgas">{{fuelPricing.name}}</span> 40 <td>
41 <span ng-show="fuelPricing.avgas">{{fuelPricing.nameavgasrest}}</span> 41 <span style="color: #2196f3" ng-show="fuelPricing.jeta">{{fuelPricing.name}}</span>
42 </td> 42 <span ng-show="fuelPricing.jeta">{{fuelPricing.namejetrest}}</span>
43 <td> 43 <span style="color: 39c" ng-show="fuelPricing.avgas">{{fuelPricing.name}}</span>
44 <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.cost" style="height:31px; width: 50px; padding: 6px 6px;"> 44 <span ng-show="fuelPricing.avgas">{{fuelPricing.nameavgasrest}}</span>
45 </td> 45 </td>
46 <td> 46 <td>
47 <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.papMargin" style="height:31px; width: 80px; padding: 6px 6px;"> 47 <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.cost" style="height:31px; width: 50px; padding: 6px 6px;">
48 </td> 48 </td>
49 <td> 49 <td>
50 <input type="text" class="form-control" ng-disabled="fuelPricing.futureFuelPricing.cost == undefined || fuelPricing.futureFuelPricing.cost == null || fuelPricing.futureFuelPricing.cost == ''" datepicker ng-model="fuelPricing.futureFuelPricing.deployDate" style="height:31px; width: 80px; padding: 6px 6px;"> 50 <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.papMargin" style="height:31px; width: 80px; padding: 6px 6px;">
51 </td> 51 </td>
52 <td> 52 <td>
53 <input type="text" class="form-control" datepicker ng-disabled="fuelPricing.futureFuelPricing.cost == undefined || fuelPricing.futureFuelPricing.cost == null || fuelPricing.futureFuelPricing.cost == ''" ng-model="fuelPricing.futureFuelPricing.nextExpiration" style="height:31px; width: 80px; padding: 6px 6px;"> 53 <input type="text" class="form-control" ng-disabled="fuelPricing.futureFuelPricing.cost == undefined || fuelPricing.futureFuelPricing.cost == null || fuelPricing.futureFuelPricing.cost == ''" datepicker ng-model="fuelPricing.futureFuelPricing.deployDate" style="height:31px; width: 80px; padding: 6px 6px;">
54 </td> 54 </td>
55 <td> 55 <td>
56 <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.futureFuelPricing.cost -- fuelPricing.futureFuelPricing.papMargin | number : 2}}</span> 56 <input type="text" class="form-control" datepicker ng-disabled="fuelPricing.futureFuelPricing.cost == undefined || fuelPricing.futureFuelPricing.cost == null || fuelPricing.futureFuelPricing.cost == ''" ng-model="fuelPricing.futureFuelPricing.nextExpiration" style="height:31px; width: 80px; padding: 6px 6px;">
57 </td> 57 </td>
58 </tr> 58 <td>
59 </tbody> 59 <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.futureFuelPricing.cost -- fuelPricing.fuelPricing.papMargin | number : 2}}</span>
60 </table> 60 </td>
61 <div class="row" style="margin-left: 0px;"> 61 </tr>
62 <div class="col-md-12" style= "text-align: right;"> 62 </tbody>
63 <div style="float: left;"> 63 </table>
64 <button type="button" class="btn btn-primary btn-xs" ng-click="updateFutureFuelPricingImmediatelyClick()" style= "text-align: center; font-size:12px">Save & Deploy Immediately</button> 64 <div class="row" style="margin-left: 0px;">
65 65 <div class="col-md-12" style= "text-align: right;">
66 <button type="reset" class="btn btn-default btn-xs">Reset All</button> 66 <div style="float: left;">
67 </div> 67 <button type="button" class="btn btn-primary btn-xs" ng-click="updateFutureFuelPricingImmediatelyClick()" style= "text-align: center; font-size:12px">Save & Deploy Immediately</button>
68 <div style="float: right;"> 68
69 <button type="button" class="btn btn-success btn-xs" ng-click="updateFutureFuelPricingClick()" style="margin-right:3%">Save & Stage for Deploy</button> 69 <button type="reset" class="btn btn-default btn-xs">Reset All</button>
70 </div> 70 </div>
71 <div style="clear: both;"></div> 71 <div style="float: right;">
72 </div> 72 <button type="button" class="btn btn-success btn-xs" ng-click="updateFutureFuelPricingClick()" style="margin-right:3%">Save & Stage for Deploy</button>
73 </div> 73 </div>
74 </form> 74 <div style="clear: both;"></div>
75 </div> 75 </div>
76 <!-- /widget-content --> 76 </div>
77 </div> 77 </form>
78 <!-- /widget --> 78 </div>
79 </div> 79 <!-- /widget-content -->
80 80 </div>
81 <div class="col-md-6"> 81 <!-- /widget -->
82 <div class="widget stacked"> 82 </div>
83 <div class="widget-header"> 83
84 <i class="fa fa-pencil"></i> 84 <div class="col-md-6">
85 <h3 style="font-style: italic"><b style="color: #2196f3; font-style: normal">JET-A</b> Customer Margin Template</h3> 85 <div class="widget stacked">
86 86 <div class="widget-header">
87 </div> 87 <i class="fa fa-pencil"></i>
88 <!-- /widget-header --> 88 <h3 style="font-style: italic"><b style="color: #2196f3; font-style: normal">JET-A</b> Customer Margin Template</h3>
89 <div class="widget-content" style="padding-top: 10px;"> 89
90 <section id="accordions"> 90 </div>
91 <div class="newCustomAccordian"> 91 <!-- /widget-header -->
92 <!-- tab 1 --> 92 <div class="widget-content" style="padding-top: 10px;">
93 <div ng-repeat="jets in aTypeJets"> 93 <section id="accordions">
94 <div class="customAccordianHeader" id="{{jets.id}}"> 94 <div class="newCustomAccordian">
95 <span>{{jets.marginName}}</span> 95 <!-- tab 1 -->
96 <select class="form-control" disabled="true" ng-model="jets.pricingStructure"> 96 <div ng-repeat="jets in aTypeJets">
97 <option value="" disabled selected>Pricing Structure</option> 97 <div class="customAccordianHeader" id="{{jets.id}}">
98 <option value="minus">Retail/PAP-(minus)</option> 98 <span>{{jets.marginName}}</span>
99 <option value="plus">Cost+(plus)</option> 99 <select class="form-control" disabled="true" ng-model="jets.pricingStructure">
100 </select> 100 <option value="" disabled selected>Pricing Structure</option>
101 <span style="margin-right: 0;">$</span> 101 <option value="minus">Retail/PAP-(minus)</option>
102 <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue"> 102 <option value="plus">Cost+(plus)</option>
103 <div class="pull-right"> 103 </select>
104 <button class="btn btn-success" style="display: none; background-image: none; background-color: #f3f3f3; color: #333; border:0;" ng-click="closeAccordian(jets)">Close</button> 104 <span style="margin-right: 0;">$</span>
105 <button class="btn btn-success" style="display: none;" ng-click="saveJetAccordian(jets)">Save</button> 105 <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue">
106 <button class="btn btn-danger" style="display: none;" ng-click="deleteJetAccordian(jets.id)">Delete</button> 106 <div class="pull-right">
107 <button type="button" class="btn btn-primary" ng-click="emailPricingForMargin(jets.id)" style= "font-weight: normal; text-align: center; font-size:12px">Email Pricing for this Margin</button> 107 <button class="btn btn-success" style="display: none; background-image: none; background-color: #f3f3f3; color: #333; border:0;" ng-click="closeAccordian(jets)">Close</button>
108 <button class="btn btn-default" ng-click="toggleJestAccordian(jets.id, $index)" style= "text-align: center; font-size:12px">Edit</button> 108 <button class="btn btn-success" style="display: none;" ng-click="saveJetAccordian(jets)">Save</button>
109 </div> 109 <button class="btn btn-danger" style="display: none;" ng-click="deleteJetAccordian(jets.id)">Delete</button>
110 <div class="clearfix"></div> 110 <button type="button" class="btn btn-primary" ng-model="" ng-click="emailPricingForMargin(jets.id)" style= "font-weight: normal; text-align: center; font-size:12px">Email Pricing for this Margin</button>
111 </div> 111 <button class="btn btn-default" ng-click="toggleJestAccordian(jets.id, $index)" style= "text-align: center; font-size:12px">Edit</button>
112 <div class="customAccordianTabBody {{jets.id}}" style="display: none;"> 112 </div>
113 <div class="tierListWrap" ng-repeat="tier in aTypeJets[$index].tierList"> 113 <div class="clearfix"></div>
114 <div class="tierListHead" style="height: 36px;"> 114 </div>
115 <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal. 115 <div class="customAccordianTabBody {{jets.id}}" style="display: none;">
116 </span> 116 <div class="tierListWrap" ng-repeat="tier in aTypeJets[$index].tierList">
117 <i class="fa fa-pencil-square-o pull-right" ng-click="showEditTier = ! showEditTier" ng-hide="showEditTier" style="margin-top: 5px; cursor: pointer;" aria-hidden="true"></i> 117 <div class="tierListHead" style="height: 36px;">
118 118 <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal.
119 <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier"> 119 </span>
120 <span ng-show="showEditTier">-</span> 120 <i class="fa fa-pencil-square-o pull-right" ng-click="showEditTier = ! showEditTier" ng-hide="showEditTier" style="margin-top: 5px; cursor: pointer;" aria-hidden="true"></i>
121 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.maxTierBreak" ng-show="showEditTier"> <b ng-show="showEditTier">gal.</b> 121
122 <div class="clearfix"></div> 122 <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier">
123 </div> 123 <span ng-show="showEditTier">-</span>
124 <div class="tierListBody" style="height: 35px;"> 124 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.maxTierBreak" ng-show="showEditTier"> <b ng-show="showEditTier">gal.</b>
125 <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span> 125 <div class="clearfix"></div>
126 126 </div>
127 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> &nbsp; 127 <div class="tierListBody" style="height: 35px;">
128 128 <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span>
129 <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span> 129
130 130 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> &nbsp;
131 <button class="addTierBtn" ng-click="editTier(tier, $parent.$index)" ng-show="showEditTier">Save</button> 131
132 132 <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span>
133 <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i> 133
134 134 <button class="addTierBtn" ng-click="editTier(tier, $parent.$index)" ng-show="showEditTier">Save</button>
135 <div class="clearfix"></div> 135
136 </div> 136 <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i>
137 </div> 137
138 <div class="tierListWrap" style="width: 160px;"> 138 <div class="clearfix"></div>
139 <div class="tierListHead" style="border-right: 1px solid #ddd;"> 139 </div>
140 <input type="text" placeholder="min" ng-model="trData[$index].minTierBreak"> 140 </div>
141 <span>-</span> 141 <div class="tierListWrap" style="width: 160px;">
142 <input type="text" placeholder="max" ng-model="trData[$index].maxTierBreak"> <b>gal.</b> 142 <div class="tierListHead" style="border-right: 1px solid #ddd;">
143 <div class="clearfix"></div> 143 <input type="text" placeholder="min" ng-model="trData[$index].minTierBreak">
144 </div> 144 <span>-</span>
145 <div class="tierListBody" style="border-right: 1px solid #ddd;"> 145 <input type="text" placeholder="max" ng-model="trData[$index].maxTierBreak"> <b>gal.</b>
146 <span style="color: #449d44;">$</span> 146 <div class="clearfix"></div>
147 <input type="text" placeholder="margin" ng-model="trData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;"> 147 </div>
148 <button class="addTierBtn" ng-click="addNewTier(jets.id, trData, $index)">Add Tier</button> 148 <div class="tierListBody" style="border-right: 1px solid #ddd;">
149 <div class="clearfix"></div> 149 <span style="color: #449d44;">$</span>
150 </div> 150 <input type="text" placeholder="margin" ng-model="trData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;">
151 </div> 151 <button class="addTierBtn" ng-click="addNewTier(jets.id, trData, $index)">Add Tier</button>
152 <!-- <div class="tierListWrap" style="width: 32px;"> 152 <div class="clearfix"></div>
153 <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;"> 153 </div>
154 &nbsp; 154 </div>
155 </div> 155 <!-- <div class="tierListWrap" style="width: 32px;">
156 <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;"> 156 <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;">
157 <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i> 157 &nbsp;
158 </div> 158 </div>
159 </div> --> 159 <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;">
160 <div class="clearfix"></div> 160 <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i>
161 <!-- <textarea class="form-control resizeTextarea" ng-model="jets.message" placeholder="Message..."></textarea> --> 161 </div>
162 <br/> 162 </div> -->
163 <div ckeditor="options" ng-model="jets.message" ready="onReady()"></div> 163 <div class="clearfix"></div>
164 </div> 164 <!-- <textarea class="form-control resizeTextarea" ng-model="jets.message" placeholder="Message..."></textarea> -->
165 </div> 165 <br/>
166 </div> 166 <div ckeditor="options" ng-model="jets.message" ready="onReady()"></div>
167 <div class="pull-right"> 167 </div>
168 <button type="submit" class="btn btn-success btn-sm" ng-click="addNewMarginBtn()" style="margin-top: 4px; margin-right: 10px;"><i class="fa fa-plus" aria-hidden="true"></i> Add New Margin</button> 168 </div>
169 </div> 169 </div>
170 </section> 170 <div class="pull-right">
171 <!-- <div class="row">&nbsp;</div> 171 <button type="submit" class="btn btn-success btn-sm" ng-click="addNewMarginBtn()" style="margin-top: 4px; margin-right: 10px;"><i class="fa fa-plus" aria-hidden="true"></i> Add New Margin</button>
172 <div class="row"> 172 </div>
173 <div class="form-group"> 173 </section>
174 <div class="col-lg-12 text-right"> 174 <!-- <div class="row">&nbsp;</div>
175 <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button>&nbsp;&nbsp; 175 <div class="row">
176 <button type="reset" class="btn btn-default">Cancel</button> 176 <div class="form-group">
177 </div> 177 <div class="col-lg-12 text-right">
178 </div> 178 <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button>&nbsp;&nbsp;
179 </div> --> 179 <button type="reset" class="btn btn-default">Cancel</button>
180 </div> 180 </div>
181 <!-- /widget-content --> 181 </div>
182 </div> 182 </div> -->
183 <!-- /widget --> 183 </div>
184 </div> 184 <!-- /widget-content -->
185 <!-- /span6 --> 185 </div>
186 </div> 186 <!-- /widget -->
187 <!-- /span12 --> 187 </div>
188 </div> 188 <!-- /span6 -->
189 <!-- /row --> 189 </div>
190 <div style="width: 96%; margin-left: 2%;"> 190 <!-- /span12 -->
191 <div class="row"> 191 </div>
192 <div class="col-md-6"> 192 <!-- /row -->
193 <div class="widget stacked"> 193 <div style="width: 96%; margin-left: 2%;">
194 <div class="widget-header"> 194 <div class="row">
195 <i class="fa fa-pencil"></i> 195 <div class="col-md-6">
196 <h3>Price Manager</h3> 196 <div class="widget stacked">
197 <select style="float: right; margin: 7px 10px; width: 150px; height: 26px; padding: 0 0;" class="btn btn-primary" class="form-control" ng-model="sendEmail.pricing" ng-change="confirmMail()"> 197 <div class="widget-header">
198 <option value="" disabled selected="selected">Email All Pricing</option> 198 <i class="fa fa-pencil"></i>
199 <option value="JET-A">Email JET-A pricing only</option> 199 <h3>Price Manager</h3>
200 <option value="AVGAS">Email AVGAS pricing only</option> 200 <select style="float: right; margin: 7px 10px; width: 150px; height: 26px; padding: 0 0;" class="btn btn-primary" class="form-control" ng-model="sendEmail.pricing" ng-change="confirmMail()">
201 <option disabled>_______________________________</option> 201 <option value="" disabled selected="selected">Email All Pricing</option>
202 <option value="all">Distribute All</option> 202 <option value="JET-A">Email JET-A pricing only</option>
203 </select> 203 <option value="AVGAS">Email AVGAS pricing only</option>
204 </div> 204 <option disabled>_______________________________</option>
205 <!-- /widget-header --> 205 <option value="all">Distribute All</option>
206 <div class="widget-content"> 206 </select>
207 <h4>Update Fuel Price Here</h4> 207 </div>
208 <table class="table"> 208 <!-- /widget-header -->
209 <thead> 209 <div class="widget-content">
210 <tr> 210 <h4>Deployed Fuel Prices</h4>
211 <th> Product</th> 211 <table class="table">
212 <th> Cost</th> 212 <thead>
213 <th> Margin</th> 213 <tr>
214 <th> PAP(Total)</th> 214 <th> Product</th>
215 <th style="color: #F90;"> Expires</th> 215 <th> Cost</th>
216 </tr> 216 <th> Margin</th>
217 </thead> 217 <th> PAP(Total)</th>
218 <tbody> 218 <th style="color: #F90;"> Expires</th>
219 <tr ng-repeat="fuelPricing in newFuelPricing"> 219 </tr>
220 <td> 220 </thead>
221 <span style="color: #2196f3" ng-show="fuelPricing.jeta">{{fuelPricing.name}}</span> 221 <tbody>
222 <span ng-show="fuelPricing.jeta">{{fuelPricing.namejetrest}}</span> 222 <tr ng-repeat="fuelPricing in newFuelPricing | filter:{ status: true }">
223 <span style="color: 39c" ng-show="fuelPricing.avgas">{{fuelPricing.name}}</span> 223 <td>
224 <span ng-show="fuelPricing.avgas">{{fuelPricing.nameavgasrest}}</span> 224 <span style="color: #2196f3" ng-show="fuelPricing.jeta">{{fuelPricing.name}}</span>
225 </td> 225 <span ng-show="fuelPricing.jeta">{{fuelPricing.namejetrest}}</span>
226 <td> 226 <span style="color: 39c" ng-show="fuelPricing.avgas">{{fuelPricing.name}}</span>
227 <span>{{fuelPricing.fuelPricing.cost}}</span> 227 <span ng-show="fuelPricing.avgas">{{fuelPricing.nameavgasrest}}</span>
228 </td> 228 </td>
229 <td> 229 <td>
230 <span>{{fuelPricing.fuelPricing.papMargin}}</span> 230 <span>{{fuelPricing.fuelPricing.cost}}</span>
231 </td> 231 </td>
232 <td> 232 <td>
233 <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.fuelPricing.cost -- fuelPricing.fuelPricing.papMargin | number : 2 }}</span> 233 <span>{{fuelPricing.fuelPricing.papMargin}}</span>
234 </td> 234 </td>
235 <td> 235 <td>
236 <span>{{fuelPricing.fuelPricing.expirationDate}}</span> 236 <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.fuelPricing.cost -- fuelPricing.fuelPricing.papMargin | number : 2 }}</span>
237 </td> 237 </td>
238 </tr> 238 <td>
239 </tbody> 239 <span>{{fuelPricing.fuelPricing.expirationDate}}</span>
240 </table> 240 </td>
241 <div class="row" style="margin-left: 0px;"> 241 </tr>
242 <div class="col-md-12" style= "text-align: right;">
243 <button type="button" class="btn btn-success btn-xs" ng-click="updateFuelPricingClick()" style="font-size:14px; margin-right:3%">Save</button>
244 </div>
245 </div>
246 </div> 242 </tbody>
247 <!-- /widget-content --> 243 </table>
248 </div> 244
249 <!-- /widget --> 245 </div>
250 </div> 246 <!-- /widget-content -->
251 247 </div>
252 <div class="col-md-6"> 248 <!-- /widget -->
253 <div class="widget stacked"> 249 </div>
254 <div class="widget-header"> 250
255 <i class="fa fa-pencil"></i> 251 <div class="col-md-6">
256 <h3><b style="color: 39c;">AVGAS 100LL </b> <i>Customer Margin Template</i></h3> 252 <div class="widget stacked">
257 253 <div class="widget-header">
258 </div> 254 <i class="fa fa-pencil"></i>
259 <!-- /widget-header --> 255 <h3><b style="color: 39c;">AVGAS 100LL </b> <i>Customer Margin Template</i></h3>
260 <div class="widget-content" style="padding-top: 10px;"> 256
261 <section id="accordions"> 257 </div>
262 <div class="newCustomAccordian"> 258 <!-- /widget-header -->
263 <!-- tab 1 --> 259 <div class="widget-content" style="padding-top: 10px;">
264 <div ng-repeat="jets in vTypeJets"> 260 <section id="accordions">
265 <div class="customAccordianHeader" id="{{jets.id}}"> 261 <div class="newCustomAccordian">
266 <span>{{jets.marginName}}</span> 262 <!-- tab 1 -->
267 <select class="form-control" disabled="true" ng-model="jets.pricingStructure"> 263 <div ng-repeat="jets in vTypeJets">
268 <option value="" disabled selected>Pricing Structure</option> 264 <div class="customAccordianHeader" id="{{jets.id}}">
269 <option value="minus">Retail-(minus)</option> 265 <span>{{jets.marginName}}</span>
270 <option value="plus">Cost+(plus)</option> 266 <select class="form-control" disabled="true" ng-model="jets.pricingStructure">
271 <option value="equal">Direct=(equal)</option> 267 <option value="" disabled selected>Pricing Structure</option>
272 </select> 268 <option value="minus">Retail-(minus)</option>
273 <span style="margin-right: 0;">$</span> 269 <option value="plus">Cost+(plus)</option>
274 <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue"> 270 <option value="equal">Direct=(equal)</option>
275 <div class="pull-right"> 271 </select>
276 <button class="btn btn-success" style="display: none; background-image: none; background-color: #f3f3f3; color: #333; border:0;" ng-click="closeAccordianVtype(jets)">Close</button> 272 <span style="margin-right: 0;">$</span>
277 <button class="btn btn-success" style="display: none;" ng-click="saveVtypeJetAccordian(jets)">Save</button> 273 <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue">
278 <button class="btn btn-danger" style="display: none;" ng-click="deleteVtypeJetAccordian(jets.id)">Delete</button> 274 <div class="pull-right">
279 <button type="button" class="btn btn-primary" ng-click="emailPricingForMargin()" style= "font-weight: normal; text-align: center; font-size:12px">Email Pricing for this Margin</button> 275 <button class="btn btn-success" style="display: none; background-image: none; background-color: #f3f3f3; color: #333; border:0;" ng-click="closeAccordianVtype(jets)">Close</button>
280 <button class="btn btn-default" ng-click="toggleVtypeJestAccordian(jets.id, $index)" style= "text-align: center; font-size:12px">Edit</button> 276 <button class="btn btn-success" style="display: none;" ng-click="saveVtypeJetAccordian(jets)">Save</button>
281 </div> 277 <button class="btn btn-danger" style="display: none;" ng-click="deleteVtypeJetAccordian(jets.id)">Delete</button>
282 <div class="clearfix"></div> 278 <button type="button" class="btn btn-primary" ng-click="emailPricingForMargin()" style= "font-weight: normal; text-align: center; font-size:12px">Email Pricing for this Margin</button>
283 </div> 279 <button class="btn btn-default" ng-click="toggleVtypeJestAccordian(jets.id, $index)" style= "text-align: center; font-size:12px">Edit</button>
284 <div class="customAccordianTabBody {{jets.id}}" style="display: none;"> 280 </div>
285 <div class="tierListWrap" ng-repeat="tier in vTypeJets[$index].tierList"> 281 <div class="clearfix"></div>
286 <div class="tierListHead" style="height: 36px;"> 282 </div>
287 <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal. 283 <div class="customAccordianTabBody {{jets.id}}" style="display: none;">
288 </span> 284 <div class="tierListWrap" ng-repeat="tier in vTypeJets[$index].tierList">
289 <i class="fa fa-pencil-square-o pull-right" ng-click="showEditTier = ! showEditTier" ng-hide="showEditTier" style="margin-top: 5px; cursor: pointer;" aria-hidden="true"></i> 285 <div class="tierListHead" style="height: 36px;">
290 286 <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal.
291 <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier"> 287 </span>
292 <span ng-show="showEditTier">-</span> 288 <i class="fa fa-pencil-square-o pull-right" ng-click="showEditTier = ! showEditTier" ng-hide="showEditTier" style="margin-top: 5px; cursor: pointer;" aria-hidden="true"></i>
293 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.maxTierBreak" ng-show="showEditTier"> <b ng-show="showEditTier">gal.</b> 289
294 <div class="clearfix"></div> 290 <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier">
295 </div> 291 <span ng-show="showEditTier">-</span>
296 <div class="tierListBody" style="height: 35px;"> 292 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.maxTierBreak" ng-show="showEditTier"> <b ng-show="showEditTier">gal.</b>
297 <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span> 293 <div class="clearfix"></div>
298 294 </div>
299 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> &nbsp; 295 <div class="tierListBody" style="height: 35px;">
300 296 <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span>
301 <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span> 297
302 298 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> &nbsp;
303 <button class="addTierBtn" ng-click="editVtypeTier(tier, $parent.$index)" ng-show="showEditTier">Save</button> 299
304 300 <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span>
305 <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteVtypeTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i> 301
306 302 <button class="addTierBtn" ng-click="editVtypeTier(tier, $parent.$index)" ng-show="showEditTier">Save</button>
307 <div class="clearfix"></div> 303
308 </div> 304 <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteVtypeTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i>
309 </div> 305
310 <div class="tierListWrap" style="width: 160px;"> 306 <div class="clearfix"></div>
311 <div class="tierListHead" style="border-right: 1px solid #ddd;"> 307 </div>
312 <input type="text" placeholder="min" ng-model="vtrData[$index].minTierBreak"> 308 </div>
313 <span>-</span> 309 <div class="tierListWrap" style="width: 160px;">
314 <input type="text" placeholder="max" ng-model="vtrData[$index].maxTierBreak"> <b>gal.</b> 310 <div class="tierListHead" style="border-right: 1px solid #ddd;">
315 <div class="clearfix"></div> 311 <input type="text" placeholder="min" ng-model="vtrData[$index].minTierBreak">
316 </div> 312 <span>-</span>
317 <div class="tierListBody" style="border-right: 1px solid #ddd;"> 313 <input type="text" placeholder="max" ng-model="vtrData[$index].maxTierBreak"> <b>gal.</b>
318 <span style="color: #449d44;">$</span> 314 <div class="clearfix"></div>
319 <input type="text" placeholder="margin" ng-model="vtrData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;"> 315 </div>
320 <button class="addTierBtn" ng-click="addNewVtypeTier(jets.id, vtrData, $index)">Add Tier</button> 316 <div class="tierListBody" style="border-right: 1px solid #ddd;">
321 <div class="clearfix"></div> 317 <span style="color: #449d44;">$</span>
322 </div> 318 <input type="text" placeholder="margin" ng-model="vtrData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;">
323 </div> 319 <button class="addTierBtn" ng-click="addNewVtypeTier(jets.id, vtrData, $index)">Add Tier</button>
324 <!-- <div class="tierListWrap" style="width: 32px;"> 320 <div class="clearfix"></div>
325 <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;"> 321 </div>
326 &nbsp; 322 </div>
327 </div> 323 <!-- <div class="tierListWrap" style="width: 32px;">
328 <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;"> 324 <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;">
329 <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i> 325 &nbsp;
330 </div> 326 </div>
331 </div> --> 327 <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;">
332 <div class="clearfix"></div> 328 <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i>
333 <br/> 329 </div>
334 <div ckeditor="options" ng-model="jets.message" ready="onReady()"></div> 330 </div> -->
335 </div> 331 <div class="clearfix"></div>
336 </div> 332 <br/>
337 </div> 333 <div ckeditor="options" ng-model="jets.message" ready="onReady()"></div>
338 <div class="pull-right"> 334 </div>
339 <button type="submit" class="btn btn-success btn-sm" ng-click="addNewVtypePop()" style="margin-top: 4px; margin-right: 10px;"><i class="fa fa-plus" aria-hidden="true"></i> Add New Margin</button> 335 </div>
340 </div> 336 </div>
341 </section> 337 <div class="pull-right">
342 <!-- <div class="row">&nbsp;</div> 338 <button type="submit" class="btn btn-success btn-sm" ng-click="addNewVtypePop()" style="margin-top: 4px; margin-right: 10px;"><i class="fa fa-plus" aria-hidden="true"></i> Add New Margin</button>
343 <div class="row"> 339 </div>
344 <div class="form-group"> 340 </section>
345 <div class="col-lg-12 text-right"> 341 <!-- <div class="row">&nbsp;</div>
346 <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button>&nbsp;&nbsp; 342 <div class="row">
347 <button type="reset" class="btn btn-default">Cancel</button> 343 <div class="form-group">
348 </div> 344 <div class="col-lg-12 text-right">
349 </div> 345 <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button>&nbsp;&nbsp;
350 </div> --> 346 <button type="reset" class="btn btn-default">Cancel</button>
351 </div> 347 </div>
352 <!-- /widget-content --> 348 </div>
353 </div> 349 </div> -->
354 <!-- /widget --> 350 </div>
355 </div> 351 <!-- /widget-content -->
356 <!-- /span6 --> 352 </div>
357 </div> 353 <!-- /widget -->
358 </div> 354 </div>
359 </div> 355 <!-- /span6 -->
360 </div> <!-- /container --> 356 </div>
361 357 </div>
362 358 </div>
363 <div class="addNewMargin" style="display: none;"> 359 </div> <!-- /container -->
364 <div class="customBackdrop"> 360
365 <div class="customModalInner" style="max-width: 700px;"> 361
366 <div class="customModelHead"> 362 <div class="addNewMargin" style="display: none;">
367 <p class="pull-left"> 363 <div class="customBackdrop">
368 <i class="fa fa-list-alt" aria-hidden="true"></i> 364 <div class="customModalInner" style="max-width: 700px;">
369 Add New JET-A Customer Margin 365 <div class="customModelHead">
370 </p> 366 <p class="pull-left">
371 <p class="pull-right"> 367 <i class="fa fa-list-alt" aria-hidden="true"></i>
372 <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeMarginPopup()"></i> 368 Add New JET-A Customer Margin
373 </p> 369 </p>
374 <div class="clearfix"></div> 370 <p class="pull-right">
375 </div> 371 <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeMarginPopup()"></i>
376 <div class="customModelBody"> 372 </p>
377 373 <div class="clearfix"></div>
378 <div class="customAccordianHeader customActive"> 374 </div>
379 <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newJet.marginName"> 375 <div class="customModelBody">
380 <select class="form-control" ng-model="newJet.pricingStructure"> 376
381 <option value="" disabled selected>Pricing Structure</option> 377 <div class="customAccordianHeader customActive">
382 <option value="minus">Retail-(minus)</option> 378 <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newJet.marginName">
383 <option value="plus">Cost+(plus)</option> 379 <select class="form-control" ng-model="newJet.pricingStructure">
384 <option value="equal">Direct=(equal)</option> 380 <option value="" disabled selected>Pricing Structure</option>
385 </select> 381 <option value="minus">Retail-(minus)</option>
386 <span style="margin-right: 0;">$</span> 382 <option value="plus">Cost+(plus)</option>
387 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newJet.marginValue"> 383 <option value="equal">Direct=(equal)</option>
388 <div class="clearfix"></div> 384 </select>
389 </div> 385 <span style="margin-right: 0;">$</span>
390 <div class="customAccordianTabBody"> 386 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newJet.marginValue">
391 <div ckeditor="options" ng-model="newJet.message" ready="onReady()"></div> 387 <div class="clearfix"></div>
392 </div> 388 </div>
393 389 <div class="customAccordianTabBody">
394 </div> 390 <div ckeditor="options" ng-model="newJet.message" ready="onReady()"></div>
395 <div class="customModelFooter text-center"> 391 </div>
396 <input type="submit" value="Save" class="btn" ng-click="addNewATypeJet()"> 392
397 <button class="btn" ng-click="closeMarginPopup()">Cancel</button> 393 </div>
398 </div> 394 <div class="customModelFooter text-center">
399 </div> 395 <input type="submit" value="Save" class="btn" ng-click="addNewATypeJet()">
400 </div> 396 <button class="btn" ng-click="closeMarginPopup()">Cancel</button>
401 </div> 397 </div>
402 398 </div>
403 <div class="addNewVtype" style="display: none;"> 399 </div>
404 <div class="customBackdrop"> 400 </div>
405 <div class="customModalInner" style="max-width: 700px;"> 401
406 <div class="customModelHead"> 402 <div class="addNewVtype" style="display: none;">
407 <p class="pull-left"> 403 <div class="customBackdrop">
408 <i class="fa fa-list-alt" aria-hidden="true"></i> 404 <div class="customModalInner" style="max-width: 700px;">
409 Add New AVGAS 100LL Customer Margin Template 405 <div class="customModelHead">
410 </p> 406 <p class="pull-left">
411 <p class="pull-right"> 407 <i class="fa fa-list-alt" aria-hidden="true"></i>
412 <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeNewVtypePop()"></i> 408 Add New AVGAS 100LL Customer Margin Template
413 </p> 409 </p>
414 <div class="clearfix"></div> 410 <p class="pull-right">
415 </div> 411 <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeNewVtypePop()"></i>
416 <div class="customModelBody"> 412 </p>
417 413 <div class="clearfix"></div>
418 <div class="customAccordianHeader customActive"> 414 </div>
419 <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newVtypeJet.marginName"> 415 <div class="customModelBody">
420 <select class="form-control" ng-model="newVtypeJet.pricingStructure"> 416
421 <option value="" disabled selected>Pricing Structure</option> 417 <div class="customAccordianHeader customActive">
422 <option value="minus">Retail-(minus)</option> 418 <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newVtypeJet.marginName">
423 <option value="plus">Cost+(plus)</option> 419 <select class="form-control" ng-model="newVtypeJet.pricingStructure">
424 <option value="equal">Direct=(equal)</option> 420 <option value="" disabled selected>Pricing Structure</option>
425 </select> 421 <option value="minus">Retail-(minus)</option>
426 <span style="margin-right: 0;">$</span> 422 <option value="plus">Cost+(plus)</option>
427 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newVtypeJet.marginValue"> 423 <option value="equal">Direct=(equal)</option>
428 <div class="clearfix"></div> 424 </select>
429 </div> 425 <span style="margin-right: 0;">$</span>
430 <div class="customAccordianTabBody"> 426 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newVtypeJet.marginValue">
431 <div ckeditor="options" ng-model="newVtypeJet.message" ready="onReady()"></div> 427 <div class="clearfix"></div>
432 </div> 428 </div>
433 429 <div class="customAccordianTabBody">
434 </div> 430 <div ckeditor="options" ng-model="newVtypeJet.message" ready="onReady()"></div>
435 <div class="customModelFooter text-center"> 431 </div>
436 <input type="submit" value="Save" class="btn" ng-click="addNewVTypeJet()"> 432
437 <button class="btn" ng-click="closeNewVtypePop()">Cancel</button> 433 </div>
438 </div> 434 <div class="customModelFooter text-center">
439 </div> 435 <input type="submit" value="Save" class="btn" ng-click="addNewVTypeJet()">
440 </div> 436 <button class="btn" ng-click="closeNewVtypePop()">Cancel</button>
441 </div> 437 </div>
442 438 </div>
443 <div class="customConfirmPopBackdrop" id="confirm1" style="display: none;"> 439 </div>
444 <div class="customModalInner"> 440 </div>
445 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 441
446 <table> 442 <div class="customConfirmPopBackdrop" id="confirm1" style="display: none;">
447 <tr> 443 <div class="customModalInner">
448 <td> 444 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
449 <img src="img/info.png" style="width: 50px;"> 445 <table>
450 </td> 446 <tr>
451 <td> 447 <td>
452 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p> 448 <img src="img/info.png" style="width: 50px;">
453 </td> 449 </td>
454 </tr> 450 <td>
455 </table> 451 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p>
456 </div> 452 </td>
457 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 453 </tr>
458 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="saveAndCloseConfirm()">Yes</button> 454 </table>
459 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button> 455 </div>
460 </div> 456 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
461 </div> 457 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="saveAndCloseConfirm()">Yes</button>
462 </div> 458 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button>
463 <div class="customConfirmPopBackdrop" id="confirm2" style="display: none;"> 459 </div>
464 <div class="customModalInner"> 460 </div>
465 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 461 </div>
466 <table> 462 <div class="customConfirmPopBackdrop" id="confirm2" style="display: none;">
467 <tr> 463 <div class="customModalInner">
468 <td> 464 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
469 <img src="img/info.png" style="width: 50px;"> 465 <table>
470 </td> 466 <tr>
471 <td> 467 <td>
472 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing for this margin?</p> 468 <img src="img/info.png" style="width: 50px;">
473 </td> 469 </td>
474 </tr> 470 <td>
475 </table> 471 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing for this margin?</p>
476 </div> 472 </td>
477 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 473 </tr>
478 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="saveAndCloseForMarginConfirm()">Yes</button> 474 </table>
479 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseForMarginConfirm()">Cancel</button> 475 </div>
480 </div> 476 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
481 </div> 477 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="saveAndCloseForMarginConfirm()">Yes</button>
482 </div> 478 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseForMarginConfirm()">Cancel</button>
483 479 </div>
484 <div class="customConfirmPopBackdrop" id="deleteTierConfirm" style="display: none;"> 480 </div>
485 <div class="customModalInner"> 481 </div>
486 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 482
487 <table> 483 <div class="customConfirmPopBackdrop" id="deleteTierConfirm" style="display: none;">
488 <tr> 484 <div class="customModalInner">
489 <td> 485 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
490 <img src="img/info.png" style="width: 50px;"> 486 <table>
491 </td> 487 <tr>
492 <td> 488 <td>
493 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p> 489 <img src="img/info.png" style="width: 50px;">
494 </td> 490 </td>
495 </tr> 491 <td>
496 </table> 492 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p>
497 </div> 493 </td>
498 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 494 </tr>
499 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteTier()">Yes</button> 495 </table>
500 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelTierDelete()">Cancel</button> 496 </div>
501 </div> 497 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
502 </div> 498 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteTier()">Yes</button>
503 </div> 499 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelTierDelete()">Cancel</button>
504 500 </div>
505 <div class="customConfirmPopBackdrop" id="deleteVtypeTierConfirm" style="display: none;"> 501 </div>
506 <div class="customModalInner"> 502 </div>
507 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 503
508 <table> 504 <div class="customConfirmPopBackdrop" id="deleteVtypeTierConfirm" style="display: none;">
509 <tr> 505 <div class="customModalInner">
510 <td> 506 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
511 <img src="img/info.png" style="width: 50px;"> 507 <table>
512 </td> 508 <tr>
513 <td> 509 <td>
514 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p> 510 <img src="img/info.png" style="width: 50px;">
515 </td> 511 </td>
516 </tr> 512 <td>
517 </table> 513 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p>
518 </div> 514 </td>
519 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 515 </tr>
520 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteVtypeTier()">Yes</button> 516 </table>
521 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeTierDelete()">Cancel</button> 517 </div>
522 </div> 518 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
523 </div> 519 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteVtypeTier()">Yes</button>
524 </div> 520 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeTierDelete()">Cancel</button>
525 521 </div>
526 <div class="customConfirmPopBackdrop" id="deleteMargin" style="display: none;"> 522 </div>
527 <div class="customModalInner"> 523 </div>
528 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 524
529 <table> 525 <div class="customConfirmPopBackdrop" id="deleteMargin" style="display: none;">
530 <tr> 526 <div class="customModalInner">
531 <td> 527 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
532 <img src="img/info.png" style="width: 50px;"> 528 <table>
533 </td> 529 <tr>
534 <td> 530 <td>
535 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p> 531 <img src="img/info.png" style="width: 50px;">
536 </td> 532 </td>
537 </tr> 533 <td>
538 </table> 534 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p>
539 </div> 535 </td>
540 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 536 </tr>
541 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteMargin()">Yes</button> 537 </table>
542 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelMarginDelete()">Cancel</button> 538 </div>
543 </div> 539 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
544 </div> 540 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteMargin()">Yes</button>
545 </div> 541 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelMarginDelete()">Cancel</button>
546 542 </div>
547 <div class="customConfirmPopBackdrop" id="deleteVtypeMargin" style="display: none;"> 543 </div>
548 <div class="customModalInner"> 544 </div>
549 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 545
550 <table> 546 <div class="customConfirmPopBackdrop" id="deleteVtypeMargin" style="display: none;">
551 <tr> 547 <div class="customModalInner">
552 <td> 548 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
553 <img src="img/info.png" style="width: 50px;"> 549 <table>
554 </td> 550 <tr>
555 <td> 551 <td>
556 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p> 552 <img src="img/info.png" style="width: 50px;">
557 </td> 553 </td>
558 </tr> 554 <td>
559 </table> 555 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p>
560 </div> 556 </td>
561 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 557 </tr>
562 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeletVtypeMargin()">Yes</button> 558 </table>
563 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeMarginDelete()">Cancel</button> 559 </div>
564 </div> 560 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
565 </div> 561 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeletVtypeMargin()">Yes</button>
566 </div> 562 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeMarginDelete()">Cancel</button>
567 563 </div>
568 <!-- Le javascript 564 </div>
569 ================================================== --> 565 </div>
570 <!-- Placed at the end of the document so the pages load faster --> 566
571 <!-- <script> 567 <!-- Le javascript
572 CKEDITOR.replace( 'editor2', { 568 ================================================== -->
573 height: 250, 569 <!-- Placed at the end of the document so the pages load faster -->
574 extraPlugins: 'divarea' 570 <!-- <script>
575 } ); 571 CKEDITOR.replace( 'editor2', {
576 </script> --> 572 height: 250,
app/partials/viewCompany/viewCompany.controller.js
1 1
2 'use strict'; 2 'use strict';
3 3
4 //Load controller 4 //Load controller
5 angular.module('acufuel') 5 angular.module('acufuel')
6 6
7 .controller('viewCompanyController', ['$scope','$uibModal', '$stateParams', 'ViewCompanyService', 'CustomersService', 'updateFuelManagerService', 'ViewFuelVendorService', 'ViewcontactService', function($scope , $uibModal, $stateParams, ViewCompanyService, CustomersService, updateFuelManagerService, ViewFuelVendorService, ViewcontactService) { 7 .controller('viewCompanyController', ['$scope','$uibModal', '$stateParams', 'ViewCompanyService', 'CustomersService', 'updateFuelManagerService', 'ViewFuelVendorService', 'ViewcontactService', function($scope , $uibModal, $stateParams, ViewCompanyService, CustomersService, updateFuelManagerService, ViewFuelVendorService, ViewcontactService) {
8 $scope.data = {}; 8 $scope.data = {};
9 $scope.data.priceEmail = true; 9 $scope.data.priceEmail = true;
10 $scope.aircraft = {}; 10 $scope.aircraft = {};
11 $scope.primayData = {}; 11 $scope.primayData = {};
12 $scope.showLoader = false; 12 $scope.showLoader = false;
13 $scope.showUpdateBtn = false; 13 $scope.showUpdateBtn = false;
14 $scope.userProfileId = JSON.parse(localStorage.getItem('userProfileId')); 14 $scope.userProfileId = JSON.parse(localStorage.getItem('userProfileId'));
15 15
16 $(document).ready(function() { 16 $(document).ready(function() {
17 $("#reset").click(function() { 17 $("#reset").click(function() {
18 $("input").val(""); 18 $("input").val("");
19 }); 19 });
20 }); 20 });
21 21
22 // CustomersService.getMargin().then(function(result) { 22 // CustomersService.getMargin().then(function(result) {
23 // $scope.marginList = result; 23 // $scope.marginList = result;
24 // }) 24 // })
25 25
26 var value = ""; 26 var value = "";
27 var companyId = $stateParams.id; 27 var companyId = $stateParams.id;
28 $scope.companyData = {}; 28 $scope.companyData = {};
29 $scope.multipleMsg = false; 29 $scope.multipleMsg = false;
30 $scope.companyData.masterMargin = ""; 30 $scope.companyData.masterMargin = "";
31 getCompanyDetail(); 31 getCompanyDetail();
32 function getCompanyDetail(){ 32 function getCompanyDetail(){
33 $scope.showLoader = true;
33 ViewCompanyService.getCompany(companyId).then(function(result) { 34 ViewCompanyService.getCompany(companyId).then(function(result) {
34 $scope.companyData = result; 35 $scope.companyData = result;
35 if(result.margin != null){ 36 if(result.margin != null){
36 $scope.companyData.masterMargin = result.margin.id; 37 $scope.companyData.masterMargin = result.margin.id;
37 } 38 }
38 if(result.marginAVGAS != null){ 39 if(result.marginAVGAS != null){
39 $scope.companyData.avgasMargin = result.marginAVGAS.id; 40 $scope.companyData.avgasMargin = result.marginAVGAS.id;
40 } 41 }
41 getAircraftList(); 42 getAircraftList();
42 $scope.showLoader = false; 43 $scope.showLoader = false;
43 }) 44 })
44 } 45 }
45 46
46 47
47 $scope.changeCompanyStatus = function(){ 48 $scope.changeCompanyStatus = function(){
48 $('#delete3').css('display', 'block'); 49 $('#delete3').css('display', 'block');
49 if($scope.companyData.activate == true){ 50 if($scope.companyData.activate == true){
50 $scope.statusMessage = 'Please confirm! Are you sure you want to ACTIVATE this company?' 51 $scope.statusMessage = 'Please confirm! Are you sure you want to ACTIVATE this company?'
51 }else{ 52 }else{
52 $scope.statusMessage = 'Please confirm! Are you sure you want to DEACTIVATE this company?' 53 $scope.statusMessage = 'Please confirm! Are you sure you want to DEACTIVATE this company?'
53 } 54 }
54 } 55 }
55 56
56 $scope.companyStatus = function(){ 57 $scope.companyStatus = function(){
58 $scope.showLoader = true;
57 var statusData = "status=" + $scope.companyData.activate; 59 var statusData = "status=" + $scope.companyData.activate;
58 ViewCompanyService.changeStatus(companyId, statusData).then(function(result) { 60 ViewCompanyService.changeStatus(companyId, statusData).then(function(result) {
59 if(result.success){ 61 if(result.success){
60 $('#delete3').css('display', 'none'); 62 $('#delete3').css('display', 'none');
61 toastr.success(''+result.success+'', { 63 toastr.success(''+result.success+'', {
62 closeButton: true 64 closeButton: true
63 }) 65 })
64 getContactList(); 66 getContactList();
65 } 67 }
66 }) 68 })
69 $scope.showLoader = false;
67 } 70 }
68 71
69 72
70 $scope.cancelStatus = function(){ 73 $scope.cancelStatus = function(){
71 $('#delete3').css('display', 'none'); 74 $('#delete3').css('display', 'none');
72 $scope.companyData.activate = !$scope.companyData.activate; 75 $scope.companyData.activate = !$scope.companyData.activate;
73 } 76 }
74 77
75 getContactList(); 78 getContactList();
76 function getContactList(){ 79 function getContactList(){
77 ViewCompanyService.getContact(companyId).then(function(result) { 80 ViewCompanyService.getContact(companyId).then(function(result) {
78 $scope.companyContactList = result; 81 $scope.companyContactList = result;
79 }) 82 })
80 } 83 }
81 $scope.aircraftmargins = []; 84 $scope.aircraftmargins = [];
82 85
83 function getAircraftList(){ 86 function getAircraftList(){
84 ViewCompanyService.getAircraft(companyId).then(function(result) { 87 ViewCompanyService.getAircraft(companyId).then(function(result) {
85 $scope.contactAircraftList = result; 88 $scope.contactAircraftList = result;
86 for (var i = 0; i < $scope.contactAircraftList.length; i++) { 89 for (var i = 0; i < $scope.contactAircraftList.length; i++) {
87 if($scope.contactAircraftList[i].aircraftsMargin != null){ 90 if($scope.contactAircraftList[i].aircraftsMargin != null){
88 $scope.aircraftmargins.push({ 91 $scope.aircraftmargins.push({
89 'id': $scope.contactAircraftList[i].aircraftsMargin.id 92 'id': $scope.contactAircraftList[i].aircraftsMargin.id
90 }) 93 })
91 } 94 }
92 } 95 }
93 if($scope.aircraftmargins.length > 0) { 96 if($scope.aircraftmargins.length > 0) {
94 for (var i = 0; i < $scope.aircraftmargins.length; i++) { 97 for (var i = 0; i < $scope.aircraftmargins.length; i++) {
95 if($scope.aircraftmargins[i].id != $scope.companyData.masterMargin){ 98 if($scope.aircraftmargins[i].id != $scope.companyData.masterMargin){
96 $scope.multiple = true; 99 $scope.multiple = true;
97 $scope.multipleMsg = true; 100 $scope.multipleMsg = true;
98 if($scope.multiple) { 101 if($scope.multiple) {
99 $scope.companyData.masterMargin = "multiple"; 102 $scope.companyData.masterMargin = "multiple";
100 } 103 }
101 } 104 }
102 } 105 }
103 } 106 }
104 }) 107 })
105 } 108 }
106 109
107 $scope.contactData = {}; 110 $scope.contactData = {};
108 $scope.contactData.contactList = []; 111 $scope.contactData.contactList = [];
109 $scope.addContact = function(){ 112 $scope.addContact = function(){
113 $scope.showLoader = true;
110 $scope.data.companyId = companyId; 114 $scope.data.companyId = companyId;
111 $scope.contactData.contactList.push($scope.data); 115 $scope.contactData.contactList.push($scope.data);
112 ViewCompanyService.addContact($scope.contactData).then(function(result) { 116 ViewCompanyService.addContact($scope.contactData).then(function(result) {
113 console.log(result) 117 console.log(result)
114 if(result.status == 200){ 118 if(result.status == 200){
115 // toastr.success(''+result.success+'', { 119 // toastr.success(''+result.success+'', {
116 // closeButton: true 120 // closeButton: true
117 // }) 121 // })
118 $('#contact-modal-3').modal('hide'); 122 $('#contact-modal-3').modal('hide');
119 $scope.primayData.id = result.data; 123 $scope.primayData.id = result.data;
120 $scope.data = {}; 124 $scope.data = {};
121 $scope.sendPrimaryContact(); 125 $scope.sendPrimaryContact();
122 getContactList(); 126 getContactList();
123 }else{ 127 }else{
124 toastr.error(''+result.statusText+'', { 128 toastr.error(''+result.statusText+'', {
125 closeButton: true 129 closeButton: true
126 }) 130 })
127 } 131 }
128 }) 132 })
133 $scope.showLoader = false;
129 } 134 }
130 135
131 getData(); 136 getData();
132 function getData(){ 137 function getData(){
138 $scope.showLoader = true;
133 CustomersService.getAircraftMake().then(function(result) { 139 CustomersService.getAircraftMake().then(function(result) {
134 $scope.aircraftMakeList = result; 140 $scope.aircraftMakeList = result;
135 }) 141 })
142 $scope.showLoader = false;
136 } 143 }
137 144
138 $scope.clearAircrafts = function(){ 145 $scope.clearAircrafts = function(){
139 $scope.aircraftDetails = []; 146 $scope.aircraftDetails = [];
140 $scope.aircraftDetails = [{ 147 $scope.aircraftDetails = [{
141 'tail':'', 148 'tail':'',
142 'make': '', 149 'make': '',
143 'model': '', 150 'model': '',
144 'sizeId' : '', 151 'sizeId' : '',
145 'marginId': '', 152 'marginId': '',
146 'avgasMarginId': '' 153 'avgasMarginId': ''
147 }]; 154 }];
148 } 155 }
149 156
150 $scope.addNew = function(){ 157 $scope.addNew = function(){
151 $scope.aircraftDetails.push({ 158 $scope.aircraftDetails.push({
152 'tail':'', 159 'tail':'',
153 'make': '', 160 'make': '',
154 'model': '', 161 'model': '',
155 'sizeId' : '', 162 'sizeId' : '',
156 'marginId': '', 163 'marginId': '',
157 'avgasMarginId': '' 164 'avgasMarginId': ''
158 }); 165 });
159 console.log($scope.aircraftDetails) 166 console.log($scope.aircraftDetails)
160 }; 167 };
161 168
162 $scope.getModal = function(makeId, index){ 169 $scope.getModal = function(makeId, index){
163 $scope.showLoader = true; 170 $scope.showLoader = true;
164 $scope.aircraft.make = makeId; 171 $scope.aircraft.make = makeId;
165 //var makeId = makeId; 172 //var makeId = makeId;
166 CustomersService.getModal($scope.aircraft.make).then(function(result) { 173 CustomersService.getModal($scope.aircraft.make).then(function(result) {
167 $scope.showLoader = false; 174 $scope.showLoader = false;
168 $scope.aircraftDetails[index].aircraftModalList = result; 175 $scope.aircraftDetails[index].aircraftModalList = result;
169 //$scope.aircraftDetails[index].model = $scope.aircraftModalList[0]; 176 //$scope.aircraftDetails[index].model = $scope.aircraftModalList[0];
170 }) 177 })
171 } 178 }
172 179
173 $scope.getSize = function(model, index){ 180 $scope.getSize = function(model, index){
174 $scope.showLoader = true; 181 $scope.showLoader = true;
175 CustomersService.getAircraftSize($scope.aircraft.make, model).then(function(result) { 182 CustomersService.getAircraftSize($scope.aircraft.make, model).then(function(result) {
176 $scope.showLoader = false; 183 $scope.showLoader = false;
177 $scope.aircraftDetails[index].aircraftSizeList = result; 184 $scope.aircraftDetails[index].aircraftSizeList = result;
178 //$scope.aircraftDetails[index].size = $scope.aircraftSizeList[0]; 185 //$scope.aircraftDetails[index].size = $scope.aircraftSizeList[0];
179 }) 186 })
180 } 187 }
181 188
182 $scope.aircraftListData = {}; 189 $scope.aircraftListData = {};
183 //$scope.addData = []; 190 //$scope.addData = [];
184 $scope.saveCompanyData = function(){ 191 $scope.saveCompanyData = function(){
185 for(var i=0; i<$scope.aircraftDetails.length;i++){ 192 for(var i=0; i<$scope.aircraftDetails.length;i++){
186 $scope.addData = []; 193 $scope.addData = [];
187 $scope.addData.push({ 194 $scope.addData.push({
188 'tail': $scope.aircraftDetails[i].tail, 195 'tail': $scope.aircraftDetails[i].tail,
189 'make': $scope.aircraftDetails[i].make, 196 'make': $scope.aircraftDetails[i].make,
190 'model': $scope.aircraftDetails[i].model, 197 'model': $scope.aircraftDetails[i].model,
191 'sizeId' : $scope.aircraftDetails[i].sizeId, 198 'sizeId' : $scope.aircraftDetails[i].sizeId,
192 'marginId': $scope.aircraftDetails[i].marginId, 199 'marginId': $scope.aircraftDetails[i].marginId,
193 'avgasMarginId': $scope.aircraftDetails[i].avgasMarginId 200 'avgasMarginId': $scope.aircraftDetails[i].avgasMarginId
194 }); 201 });
195 } 202 }
196 console.log($scope.addData) 203 console.log($scope.addData)
197 $scope.aircraftListData.aircraftList = $scope.addData; 204 $scope.aircraftListData.aircraftList = $scope.addData;
198 $scope.aircraftListData.accountId = companyId; 205 $scope.aircraftListData.accountId = companyId;
199 206
200 CustomersService.addAircraft($scope.aircraftListData).then(function(result) { 207 CustomersService.addAircraft($scope.aircraftListData).then(function(result) {
201 if(result != null && result.success){ 208 if(result != null && result.success){
202 toastr.success(''+result.success+'', { 209 toastr.success(''+result.success+'', {
203 closeButton: true 210 closeButton: true
204 }) 211 })
205 $('#aircraft-modal-3').modal('hide'); 212 $('#aircraft-modal-3').modal('hide');
206 getAircraftList(); 213 getAircraftList();
207 }else{ 214 }else{
208 toastr.error(''+result.statusText+'', { 215 toastr.error(''+result.statusText+'', {
209 closeButton: true 216 closeButton: true
210 }) 217 })
211 } 218 }
212 }); 219 });
213 220
214 } 221 }
215 $scope.showNoteData = true; 222 $scope.showNoteData = true;
216 $scope.showCompanyName = true; 223 $scope.showCompanyName = true;
217 $scope.showAddress = true; 224 $scope.showAddress = true;
218 $scope.showNote = function(){ 225 $scope.showNote = function(){
219 $scope.showNoteData = false; 226 $scope.showNoteData = false;
220 $scope.showUpdateBtn = true; 227 $scope.showUpdateBtn = true;
221 } 228 }
222 229
223 $scope.company = function(){ 230 $scope.company = function(){
224 $scope.showCompanyName = false; 231 $scope.showCompanyName = false;
225 $scope.showUpdateBtn = true; 232 $scope.showUpdateBtn = true;
226 } 233 }
227 234
228 $scope.base = function(){ 235 $scope.base = function(){
229 $scope.showUpdateBtn = true; 236 $scope.showUpdateBtn = true;
230 } 237 }
231 238
232 $scope.addressChange = function(){ 239 $scope.addressChange = function(){
233 $scope.showAddress = false; 240 $scope.showAddress = false;
234 $scope.showUpdateBtn = true; 241 $scope.showUpdateBtn = true;
235 } 242 }
236 243
237 $scope.editData = function(inputName) { 244 $scope.editData = function(inputName) {
238 console.log($scope.companyData) 245 console.log($scope.companyData)
239 $scope.showLoader = true; 246 $scope.showLoader = true;
240 /*if(inputName == 'showNoteData'){ 247 /*if(inputName == 'showNoteData'){
241 $scope.showNoteData = true; 248 $scope.showNoteData = true;
242 }else if(inputName == 'showCompanyName'){ 249 }else if(inputName == 'showCompanyName'){
243 $scope.showCompanyName = true; 250 $scope.showCompanyName = true;
244 }else if(inputName == 'showAddress'){ 251 }else if(inputName == 'showAddress'){
245 $scope.showAddress = true; 252 $scope.showAddress = true;
246 }*/ 253 }*/
247 $scope.showNoteData = true; 254 $scope.showNoteData = true;
248 $scope.showCompanyName = true; 255 $scope.showCompanyName = true;
249 $scope.showAddress = true; 256 $scope.showAddress = true;
250 257
251 var companyData = "companyName=" + $scope.companyData.companyName + "&masterMargin=" + $scope.companyData.masterMargin + "&avgasMargin=" + $scope.companyData.avgasMargin 258 var companyData = "companyName=" + $scope.companyData.companyName + "&masterMargin=" + $scope.companyData.masterMargin + "&avgasMargin=" + $scope.companyData.avgasMargin
252 + "&addressOne=" + $scope.companyData.addressOne + "&addressTwo=" + $scope.companyData.addressTwo + "&city=" + $scope.companyData.city + "&state=" 259 + "&addressOne=" + $scope.companyData.addressOne + "&addressTwo=" + $scope.companyData.addressTwo + "&city=" + $scope.companyData.city + "&state="
253 + $scope.companyData.state + "&country=" + $scope.companyData.country + "&zipcode=" + $scope.companyData.zipcode + "&internalNote=" 260 + $scope.companyData.state + "&country=" + $scope.companyData.country + "&zipcode=" + $scope.companyData.zipcode + "&internalNote="
254 + $scope.companyData.internalNote + "&certificateType=" + $scope.companyData.certificateType + "&baseTenant=" + $scope.companyData.baseTenant 261 + $scope.companyData.internalNote + "&certificateType=" + $scope.companyData.certificateType + "&baseTenant=" + $scope.companyData.baseTenant
255 + "&fuelerlinxCustomer=" + $scope.companyData.fuelerlinxCustomer + "&contractFuelVendor=" + $scope.companyData.contractFuelVendor 262 + "&fuelerlinxCustomer=" + $scope.companyData.fuelerlinxCustomer + "&contractFuelVendor=" + $scope.companyData.contractFuelVendor
256 + "&activate=" + $scope.companyData.activate + "&baseIcao=" + $scope.companyData.baseIcao + "&companyId=" + companyId; 263 + "&activate=" + $scope.companyData.activate + "&baseIcao=" + $scope.companyData.baseIcao + "&companyId=" + companyId;
257 264
258 ViewCompanyService.updateCompany(companyData).then(function(result) { 265 ViewCompanyService.updateCompany(companyData).then(function(result) {
259 if(result != null && result.success){ 266 if(result != null && result.success){
260 toastr.success(''+result.success+'', { 267 toastr.success(''+result.success+'', {
261 closeButton: true 268 closeButton: true
262 }) 269 })
263 $scope.showUpdateBtn = false; 270 $scope.showUpdateBtn = false;
264 getCompanyDetail(); 271 getCompanyDetail();
265 }else{ 272 }else{
266 toastr.error(''+result.statusText+'', { 273 toastr.error(''+result.statusText+'', {
267 closeButton: true 274 closeButton: true
268 }) 275 })
269 $scope.showUpdateBtn = true; 276 $scope.showUpdateBtn = true;
270 } 277 }
271 $scope.showLoader = false; 278 $scope.showLoader = false;
272 }) 279 })
273 280
274 281
275 282
276 } 283 }
277 284
278 $scope.cancelData = function(){ 285 $scope.cancelData = function(){
279 $scope.showNoteData = true; 286 $scope.showNoteData = true;
280 $scope.showCompanyName = true; 287 $scope.showCompanyName = true;
281 $scope.showAddress = true; 288 $scope.showAddress = true;
282 $scope.showUpdateBtn = false; 289 $scope.showUpdateBtn = false;
283 } 290 }
284 291
285 $scope.sendMail = function(){ 292 $scope.sendMail = function(){
286 $('#confirm1').css('display', 'none'); 293 $('#confirm1').css('display', 'none');
287 ViewCompanyService.sendMail(companyId).then(function(result) { 294 ViewCompanyService.sendMail(companyId).then(function(result) {
288 if(result != null && result.success){ 295 if(result != null && result.success){
289 toastr.success(''+result.success+'', { 296 toastr.success(''+result.success+'', {
290 closeButton: true 297 closeButton: true
291 }) 298 })
292 }else{ 299 }else{
293 toastr.error(''+result.statusText+'', { 300 toastr.error(''+result.statusText+'', {
294 closeButton: true 301 closeButton: true
295 }) 302 })
296 } 303 }
297 }) 304 })
298 } 305 }
299 306
300 $scope.openConfirmMail = function(){ 307 $scope.openConfirmMail = function(){
301 $('#confirm1').css('display', 'block'); 308 $('#confirm1').css('display', 'block');
302 } 309 }
303 310
304 311
305 $scope.cancelAndCloseConfirm = function(){ 312 $scope.cancelAndCloseConfirm = function(){
306 $('#confirm1').css('display', 'none'); 313 $('#confirm1').css('display', 'none');
307 } 314 }
308 315
309 $scope.primaryContact = false; 316 $scope.primaryContact = false;
310 $scope.cancelPrimaryContact = function(){ 317 $scope.cancelPrimaryContact = function(){
311 $('#primaryContact').css('display', 'none'); 318 $('#primaryContact').css('display', 'none');
312 $scope.primaryContact = false; 319 $scope.primaryContact = false;
313 } 320 }
314 321
315 $scope.checkPrimaryContact = function(){ 322 $scope.checkPrimaryContact = function(){
316 if($scope.primaryContact == true){ 323 if($scope.primaryContact == true){
317 $scope.primaryContact = true; 324 $scope.primaryContact = true;
318 ViewCompanyService.checkPrimaryContact(companyId).then(function(result) { 325 ViewCompanyService.checkPrimaryContact(companyId).then(function(result) {
319 console.log(result) 326 console.log(result)
320 if(result.status == 422){ 327 if(result.status == 422){
321 $('#primaryContact').css('display', 'block'); 328 $('#primaryContact').css('display', 'block');
322 } 329 }
323 }) 330 })
324 } 331 }
325 } 332 }
326 333
327 $scope.sendPrimaryContact = function(){ 334 $scope.sendPrimaryContact = function(){
328 $('#primaryContact').css('display', 'none'); 335 $('#primaryContact').css('display', 'none');
329 if($scope.primayData.id != null || $scope.primayData.id != undefined){ 336 if($scope.primayData.id != null || $scope.primayData.id != undefined){
330 var priamryContactData = "companyContactId=" + $scope.primayData.id + "&primary=" + $scope.primaryContact; 337 var priamryContactData = "companyContactId=" + $scope.primayData.id + "&primary=" + $scope.primaryContact;
331 338
332 ViewCompanyService.addPrimaryContact(priamryContactData).then(function(result) { 339 ViewCompanyService.addPrimaryContact(priamryContactData).then(function(result) {
333 console.log(result) 340 console.log(result)
334 }) 341 })
335 } 342 }
336 343
337 } 344 }
338 345
339 var newContactName = ""; 346 var newContactName = "";
340 $scope.updateData = "" 347 $scope.updateData = ""
341 $scope.showContact = function(data, value){ 348 $scope.showContact = function(data, value){
342 $('#updateContact').css('display', 'block'); 349 $('#updateContact').css('display', 'block');
343 $scope.updateData = data; 350 $scope.updateData = data;
344 newContactName = value; 351 newContactName = value;
345 console.log($scope.updateData) 352 console.log($scope.updateData)
346 if($scope.updateData.email == null){ 353 if($scope.updateData.email == null){
347 $scope.updateData.content = data.contactNumber; 354 $scope.updateData.content = data.contactNumber;
348 }else{ 355 }else{
349 $scope.updateData.content = data.email; 356 $scope.updateData.content = data.email;
350 } 357 }
351 } 358 }
352 359
353 $scope.acceptUpdateField = function(){ 360 $scope.acceptUpdateField = function(){
354 console.log($scope.updateData) 361 console.log($scope.updateData)
355 if($scope.updateData.content == undefined){ 362 if($scope.updateData.content == undefined){
356 toastr.error('Please add some content', { 363 toastr.error('Please add some content', {
357 closeButton: true 364 closeButton: true
358 }) 365 })
359 }else{ 366 }else{
360 if(newContactName == 'phone'){ 367 if(newContactName == 'phone'){
361 var updateCustomData = "companyId=" + companyId + "&contactNumber=" + $scope.updateData.content + "&contactId=" + $scope.updateData.id 368 var updateCustomData = "companyId=" + companyId + "&contactNumber=" + $scope.updateData.content + "&contactId=" + $scope.updateData.id
362 + "&title=" + $scope.updateData.title; 369 + "&title=" + $scope.updateData.title;
363 }else{ 370 }else{
364 var updateCustomData = "companyId=" + companyId + "&email=" + $scope.updateData.content + "&contactId=" + $scope.updateData.id 371 var updateCustomData = "companyId=" + companyId + "&email=" + $scope.updateData.content + "&contactId=" + $scope.updateData.id
365 + "&title=" + $scope.updateData.title; 372 + "&title=" + $scope.updateData.title;
366 } 373 }
367 ViewCompanyService.updateCustomField(updateCustomData).then(function(result) { 374 ViewCompanyService.updateCustomField(updateCustomData).then(function(result) {
368 console.log(result) 375 console.log(result)
369 if(result != null && result.success){ 376 if(result != null && result.success){
370 $('#updateContact').css('display', 'none'); 377 $('#updateContact').css('display', 'none');
371 getCompanyDetail(); 378 getCompanyDetail();
372 } 379 }
373 }) 380 })
374 } 381 }
375 } 382 }
376 383
377 $scope.cancelUpdateField = function(){ 384 $scope.cancelUpdateField = function(){
378 $('#updateContact').css('display', 'none'); 385 $('#updateContact').css('display', 'none');
379 } 386 }
380 387
381 $scope.showEditTier2 = function(number){ 388 $scope.showEditTier2 = function(number){
382 console.log(number) 389 console.log(number)
383 $scope.contactNumber = number; 390 $scope.contactNumber = number;
384 } 391 }
385 392
386 393
387 394
388 var contactName = ''; 395 var contactName = '';
389 $scope.addCustom = function(value){ 396 $scope.addCustom = function(value){
390 console.log(value) 397 console.log(value)
391 if(value != null){ 398 if(value != null){
392 contactName = value; 399 contactName = value;
393 $('#customField').css('display', 'block'); 400 $('#customField').css('display', 'block');
394 } 401 }
395 $scope.custom = {}; 402 $scope.custom = {};
396 } 403 }
397 404
398 $scope.cancelCustomField = function(){ 405 $scope.cancelCustomField = function(){
399 $('#customField').css('display', 'none'); 406 $('#customField').css('display', 'none');
400 } 407 }
401 408
402 $scope.acceptCustomField = function(){ 409 $scope.acceptCustomField = function(){
403 if($scope.custom.content == undefined){ 410 if($scope.custom.content == undefined){
404 toastr.error('Please add some content', { 411 toastr.error('Please add some content', {
405 closeButton: true 412 closeButton: true
406 }) 413 })
407 }else{ 414 }else{
408 if(contactName == 'phone'){ 415 if(contactName == 'phone'){
409 var customData = "companyId=" + companyId + "&contactNumber=" + $scope.custom.content 416 var customData = "companyId=" + companyId + "&contactNumber=" + $scope.custom.content
410 + "&title=" + $scope.custom.title; 417 + "&title=" + $scope.custom.title;
411 }else{ 418 }else{
412 var customData = "companyId=" + companyId + "&email=" + $scope.custom.content 419 var customData = "companyId=" + companyId + "&email=" + $scope.custom.content
413 + "&title=" + $scope.custom.title; 420 + "&title=" + $scope.custom.title;
414 } 421 }
415 console.log(customData.email) 422 console.log(customData.email)
416 ViewCompanyService.addCustomField(customData).then(function(result) { 423 ViewCompanyService.addCustomField(customData).then(function(result) {
417 console.log(result) 424 console.log(result)
418 if(result != null && result.success){ 425 if(result != null && result.success){
419 $('#customField').css('display', 'none'); 426 $('#customField').css('display', 'none');
420 getCompanyDetail(); 427 getCompanyDetail();
421 } 428 }
422 }) 429 })
423 } 430 }
424 } 431 }
425 432
426 updateFuelManagerService.getFuelPricingNew().then(function(result) { 433 updateFuelManagerService.getFuelPricingNew().then(function(result) {
427 $scope.fuelPricing = result; 434 $scope.fuelPricing = result;
428 for (var i = 0; i<$scope.fuelPricing.length; i++) { 435 for (var i = 0; i<$scope.fuelPricing.length; i++) {
429 if ($scope.fuelPricing[i].fuelPricing.expirationDate != null) { 436 if ($scope.fuelPricing[i].fuelPricing.expirationDate != null) {
430 $scope.fuelPricing[i].fuelPricing.expirationDate = new Date($scope.fuelPricing[i].fuelPricing.expirationDate); 437 $scope.fuelPricing[i].fuelPricing.expirationDate = new Date($scope.fuelPricing[i].fuelPricing.expirationDate);
431 var newTime = new Date($scope.fuelPricing[i].fuelPricing.expirationDate); 438 var newTime = new Date($scope.fuelPricing[i].fuelPricing.expirationDate);
432 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 439 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12
433 var dday = newTime.getUTCDate(); 440 var dday = newTime.getUTCDate();
434 var dyear = newTime.getUTCFullYear(); 441 var dyear = newTime.getUTCFullYear();
435 $scope.fuelPricing[i].fuelPricing.expirationDate = dmonth+'/'+dday+'/'+dyear; 442 $scope.fuelPricing[i].fuelPricing.expirationDate = dmonth+'/'+dday+'/'+dyear;
436 } 443 }
437 } 444 }
438 }) 445 })
439 446
440 var deleteAircraftId = ""; 447 var deleteAircraftId = "";
441 $scope.deleteAircraft = function(id){ 448 $scope.deleteAircraft = function(id){
442 $('#delete1').css('display', 'block'); 449 $('#delete1').css('display', 'block');
443 deleteAircraftId = id; 450 deleteAircraftId = id;
444 } 451 }
445 452
446 $scope.aircraftDelete = function(){ 453 $scope.aircraftDelete = function(){
447 ViewCompanyService.deleteAircraft(deleteAircraftId).then(function(result) { 454 ViewCompanyService.deleteAircraft(deleteAircraftId).then(function(result) {
448 console.log(result) 455 console.log(result)
449 getAircraftList(); 456 getAircraftList();
450 getCompanyDetail(); 457 getCompanyDetail();
451 $('#delete1').css('display', 'none'); 458 $('#delete1').css('display', 'none');
452 }) 459 })
453 } 460 }
454 461
455 $scope.cancelDelete = function(){ 462 $scope.cancelDelete = function(){
456 $('#delete1').css('display', 'none'); 463 $('#delete1').css('display', 'none');
457 } 464 }
458 465
459 CustomersService.getJetMargin($scope.userProfileId).then(function(result) { 466 CustomersService.getJetMargin($scope.userProfileId).then(function(result) {
460 $scope.jetMarginList = result; 467 $scope.jetMarginList = result;
461 }) 468 })
462 469
463 CustomersService.getAvgMargin($scope.userProfileId).then(function(result) { 470 CustomersService.getAvgMargin($scope.userProfileId).then(function(result) {
464 $scope.avgsMarginList = result; 471 $scope.avgsMarginList = result;
465 }) 472 })
466 473
467 $scope.changePriceEmail = function(id, index){ 474 $scope.changePriceEmail = function(id, index){
468 event.stopPropagation(); 475 event.stopPropagation();
469 var contactId = id; 476 var contactId = id;
470 var statusData = "status=" + $scope.companyContactList[index].priceEmail; 477 var statusData = "status=" + $scope.companyContactList[index].priceEmail;
471 ViewcontactService.changePriceEmail(contactId, statusData).then(function(result) { 478 ViewcontactService.changePriceEmail(contactId, statusData).then(function(result) {
472 if(result.success){ 479 if(result.success){
473 $('#toogleMail').css('display', 'block'); 480 $('#toogleMail').css('display', 'block');
474 if($scope.companyContactList[index].priceEmail == true){ 481 if($scope.companyContactList[index].priceEmail == true){
475 $scope.messageText = 'You have enabled price distribution for this contact'; 482 $scope.messageText = 'You have enabled price distribution for this contact';
476 }else{ 483 }else{
477 $scope.messageText = 'You have disabled price distribution for this contact'; 484 $scope.messageText = 'You have disabled price distribution for this contact';
478 } 485 }
479 } 486 }
480 }) 487 })
481 } 488 }
482 489
483 $scope.cancelToogle = function(){ 490 $scope.cancelToogle = function(){
484 $('#toogleMail').css('display', 'none'); 491 $('#toogleMail').css('display', 'none');
485 } 492 }
486 493
487 $scope.checkboxStatus = function(value){ 494 $scope.checkboxStatus = function(value){
488 console.log("checkbox",value) 495 console.log("checkbox",value)
489 $scope.showUpdateBtn = true; 496 $scope.showUpdateBtn = true;
490 } 497 }
491 498
492 $scope.fuelercheckboxStatus = function(value){ 499 $scope.fuelercheckboxStatus = function(value){
493 $('#fuelerchange').css('display', 'block'); 500 $('#fuelerchange').css('display', 'block');
494 if(value == true){ 501 if(value == true){
495 $scope.statusMessage = 'Please confirm! Enabling FuelerLinx for this customer will enable price distribution web services and disable price emails for the contacts in this company' 502 $scope.statusMessage = 'Please confirm! Enabling FuelerLinx for this customer will enable price distribution web services and disable price emails for the contacts in this company'
496 }else{ 503 }else{
497 $scope.statusMessage = 'Please confirm! Disabling FuelerLinx for this customer will disable price distribution web services into their FuelerLinx account. If you proceed then remember to enable price emails for the appropriate contacts in this company.' 504 $scope.statusMessage = 'Please confirm! Disabling FuelerLinx for this customer will disable price distribution web services into their FuelerLinx account. If you proceed then remember to enable price emails for the appropriate contacts in this company.'
498 } 505 }
499 506
500 507
501 } 508 }
502 509
503 $scope.fuelerCancelStatus = function(){ 510 $scope.fuelerCancelStatus = function(){
504 $('#fuelerchange').css('display', 'none'); 511 $('#fuelerchange').css('display', 'none');
505 $scope.companyData.fuelerlinxCustomer = !$scope.companyData.fuelerlinxCustomer; 512 $scope.companyData.fuelerlinxCustomer = !$scope.companyData.fuelerlinxCustomer;
506 } 513 }
507 514
508 $scope.fuelerAcceptStatus = function(){ 515 $scope.fuelerAcceptStatus = function(){
509 $('#fuelerchange').css('display', 'none'); 516 $('#fuelerchange').css('display', 'none');
510 $scope.showLoader = true; 517 $scope.showLoader = true;
511 var statusData; 518 var statusData;
512 if($scope.companyData.fuelerlinxCustomer == false){ 519 if($scope.companyData.fuelerlinxCustomer == false){
513 statusData = "status=true"; 520 statusData = "status=true";
514 } else { 521 } else {
515 statusData = "status=false"; 522 statusData = "status=false";
516 } 523 }
517 ViewCompanyService.fuelerPricingChange(companyId, statusData).then(function(result) { 524 ViewCompanyService.fuelerPricingChange(companyId, statusData).then(function(result) {
518 if(result.success){ 525 if(result.success){
519 $scope.showLoader = false; 526 $scope.showLoader = false;
520 527
521 $scope.editData(); 528 $scope.editData();
522 getContactList(); 529 getContactList();
523 530
524 } 531 }
525 }) 532 })
526 } 533 }
527 534
528 $scope.updateOmit = function(fuel, omit) { 535 $scope.updateOmit = function(fuel, omit) {
529 $scope.fuelData = {}; 536 $scope.fuelData = {};
530 $scope.fuelData.expirationDate = new Date(fuel.expirationDate); 537 $scope.fuelData.expirationDate = new Date(fuel.expirationDate);
531 $scope.fuelData.id = fuel.id; 538 $scope.fuelData.id = fuel.id;
532 $scope.fuelData.omit = fuel.omit; 539 $scope.fuelData.omit = fuel.omit;
533 $scope.fuelData.papMargin = fuel.papMargin; 540 $scope.fuelData.papMargin = fuel.papMargin;
534 $scope.fuelData.papTotal = fuel.papTotal; 541 $scope.fuelData.papTotal = fuel.papTotal;
535 $scope.fuelData.cost = fuel.cost; 542 $scope.fuelData.cost = fuel.cost;
536 ViewFuelVendorService.omitFuelPricing($scope.fuelData).then(function(result) { 543 ViewFuelVendorService.omitFuelPricing($scope.fuelData).then(function(result) {
537 if(result.success){ 544 if(result.success){
538 toastr.success(''+result.success+'', { 545 toastr.success(''+result.success+'', {
539 closeButton: true 546 closeButton: true
540 }) 547 })
541 }else{ 548 }else{
542 toastr.error(''+result.statusText+'', { 549 toastr.error(''+result.statusText+'', {
543 closeButton: true 550 closeButton: true
544 }) 551 })
545 } 552 }
546 }) 553 })
547 } 554 }
548 555
549 }]); 556 }]);
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 121
122 <div class="myLoader" ng-show="showLoader"> 122 <div class="myLoader" ng-show="showLoader">
123 <img src="../img/hourglass.gif" width="50px;"> 123 <img src="../img/hourglass.gif" width="50px;">
124 </div> 124 </div>
125 125
126 <div class="col-xs-12 col-md-12"> 126 <div class="col-xs-12 col-md-12">
127 <div class="row" style="margin-left:0px"> 127 <div class="row" style="margin-left:0px">
128 <div class="col-md-12"> 128 <div class="col-md-12">
129 <div class="widget"> 129 <div class="widget">
130 <div class="widget-header"> 130 <div class="widget-header">
131 <i class="fa fa-building-o" aria-hidden="true"></i> 131 <i class="fa fa-building-o" aria-hidden="true"></i>
132 <h3>{{companyData.companyName}} <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteCompany(companyData.id)" aria-hidden="true"></i></h3> 132 <h3>{{companyData.companyName}} <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteCompany(companyData.id)" aria-hidden="true"></i></h3>
133 <i class="fa fa-times timess" ui-sref="app.customers" aria-hidden="true"></i> 133 <i class="fa fa-times timess" ui-sref="app.customers" aria-hidden="true"></i>
134 </div> 134 </div>
135 <!-- /widget-header --> 135 <!-- /widget-header -->
136 <div class="widget-content"> 136 <div class="widget-content">
137 <div class="row" style="margin-left:0px"> 137 <div class="row" style="margin-left:0px">
138 <div class="col-md-6"> 138 <div class="col-md-6">
139 <div class="widget"> 139 <div class="widget">
140 <div class="widget-header"> 140 <div class="widget-header">
141 <i class="fa fa-building-o" aria-hidden="true"></i> 141 <i class="fa fa-building-o" aria-hidden="true"></i>
142 <h3>Company Details</h3> 142 <h3>Company Details</h3>
143 <label>BASE ICAO</label> 143 <label>BASE ICAO</label>
144 <input type="tel" ng-model="companyData.baseIcao" ng-click="base()" style="line-height: 18px;width: 80px;padding: 0px 9px;" /> 144 <input type="tel" ng-model="companyData.baseIcao" ng-click="base()" style="line-height: 18px;width: 80px;padding: 0px 9px;" />
145 145
146 <div class="pull-right" style="margin-top: 5px; margin-right: 10px;"> 146 <div class="pull-right" style="margin-top: 5px; margin-right: 10px;">
147 <toggle ng-model="companyData.activate" ng-change="changeCompanyStatus()" size="customToogle" on="Active" off="Dactive"></toggle> 147 <toggle ng-model="companyData.activate" ng-change="changeCompanyStatus()" size="customToogle" on="Active" off="Dactive"></toggle>
148 </div> 148 </div>
149 149
150 </div> 150 </div>
151 <div class="widget-content"> 151 <div class="widget-content">
152 <div class="row" style="margin-left:0px;"> 152 <div class="row" style="margin-left:0px;">
153 <div class="col-md-7" style="padding-left: 0;"> 153 <div class="col-md-7" style="padding-left: 0;">
154 <h4 ng-show="showCompanyName"> 154 <h4 ng-show="showCompanyName">
155 <b style="color:#F90;">{{companyData.companyName}}</b> &nbsp;<i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i> 155 <b style="color:#F90;">{{companyData.companyName}}</b> &nbsp;<i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i>
156 </h4> 156 </h4>
157 <input type="tel" ng-hide="showCompanyName" ng-model="companyData.companyName" class="form-control"/> 157 <input type="tel" ng-hide="showCompanyName" ng-model="companyData.companyName" class="form-control"/>
158 </div> 158 </div>
159 <div class="col-md-5"> 159 <div class="col-md-5">
160 <select class="form-control" style="padding: 4px 8px;background: #ebebeb;" ng-model="companyData.certificateType"> 160 <select class="form-control" style="padding: 4px 8px;background: #ebebeb;" ng-model="companyData.certificateType">
161 <option class="optionclass" value="" disabled selected>Certificate Type</option> 161 <option class="optionclass" value="" disabled selected>Certificate Type</option>
162 <option class="optionclass" value="corporate">Part 91 (Corporate)</option> 162 <option class="optionclass" value="corporate">Part 91 (Corporate)</option>
163 <option class="optionclass" value="charter">Part 135 (Charter)</option> 163 <option class="optionclass" value="charter">Part 135 (Charter)</option>
164 <option class="optionclass" value="scheduled">Part 121 (Scheduled)</option> 164 <option class="optionclass" value="scheduled">Part 121 (Scheduled)</option>
165 <option class="optionclass" value="military">Military</option> 165 <option class="optionclass" value="military">Military</option>
166 <option class="optionclass" value="government">Government</option> 166 <option class="optionclass" value="government">Government</option>
167 </select> 167 </select>
168 </div> 168 </div>
169 </div> 169 </div>
170 <div> 170 <div>
171 <p class="new-label"> 171 <p class="new-label">
172 <span>JET A Margin </span> 172 <span>JET A Margin </span>
173 <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-change="editData()" ng-model="companyData.masterMargin"> 173 <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-change="editData()" ng-model="companyData.masterMargin">
174 <option ng-if="multiple" value="multiple">Multiple</option> 174 <option ng-if="multiple" value="multiple">Multiple</option>
175 <option ng-repeat="margin in jetMarginList" value="{{margin.id}}">{{margin.marginName}}</option> 175 <option ng-repeat="margin in jetMarginList" value="{{margin.id}}">{{margin.marginName}}</option>
176 </select> 176 </select>
177 <span ng-show="multipleMsg">&nbsp;See Aircrart List</span> 177 <span ng-show="multipleMsg">&nbsp;See Aircrart List</span>
178 <div class="clearfix"></div> 178 <div class="clearfix"></div>
179 </p> 179 </p>
180 </div> 180 </div>
181 <div> 181 <div>
182 <p class="new-label"> 182 <p class="new-label">
183 <span>AVGAS 100LL </span> 183 <span>AVGAS 100LL </span>
184 <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-change="editData()" ng-model="companyData.avgasMargin"> 184 <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-change="editData()" ng-model="companyData.avgasMargin">
185 <option value="">N/A</option> 185 <option value="">N/A</option>
186 <option ng-repeat="margin in avgsMarginList" value="{{margin.id}}">{{margin.marginName}}</option> 186 <option ng-repeat="margin in avgsMarginList" value="{{margin.id}}">{{margin.marginName}}</option>
187 </select> 187 </select>
188 <div class="clearfix"></div> 188 <div class="clearfix"></div>
189 </p> 189 </p>
190 </div> 190 </div>
191 <div class="row" style="margin-left:0px;"> 191 <div class="row" style="margin-left:0px;">
192 <div class="col-md-5" style="padding-left: 0;"> 192 <div class="col-md-5" style="padding-left: 0;">
193 <input type="checkbox" name="" ng-model="companyData.baseTenant" ng-change="checkboxStatus(companyData.baseTenant)"> Tenant/Base Customer 193 <input type="checkbox" name="" ng-model="companyData.baseTenant" ng-change="checkboxStatus(companyData.baseTenant)"> Tenant/Base Customer
194 </div> 194 </div>
195 <div class="col-md-5" style="padding-left: 0;"> 195 <div class="col-md-5" style="padding-left: 0;">
196 <input type="checkbox" name="" ng-model="companyData.fuelerlinxCustomer" ng-change="fuelercheckboxStatus(companyData.fuelerlinxCustomer)"> FuelerLinx Customer 196 <input type="checkbox" name="" ng-model="companyData.fuelerlinxCustomer" ng-change="fuelercheckboxStatus(companyData.fuelerlinxCustomer)"> FuelerLinx Customer
197 </div> 197 </div>
198 </div> 198 </div>
199 <div> 199 <div>
200 <input type="checkbox" name="" ng-model="companyData.contractFuelVendor" ng-change="checkboxStatus(companyData.contractFuelVendor)"> CAA Member 200 <input type="checkbox" name="" ng-model="companyData.contractFuelVendor" ng-change="checkboxStatus(companyData.contractFuelVendor)"> CAA Member
201 </div> 201 </div>
202 </br> 202 </br>
203 <div class="new-address"> 203 <div class="new-address">
204 <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{companyData.addressOne}} {{companyData.addressTwo}} &nbsp;<i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p> 204 <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{companyData.addressOne}} {{companyData.addressTwo}} &nbsp;<i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p>
205 205
206 <div ng-hide="showAddress"> 206 <div ng-hide="showAddress">
207 <label>Address1</label> 207 <label>Address1</label>
208 <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="companyData.addressOne" class="form-control" /> 208 <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="companyData.addressOne" class="form-control" />
209 <label>Address2</label> 209 <label>Address2</label>
210 <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="companyData.addressTwo" class="form-control" /> 210 <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="companyData.addressTwo" class="form-control" />
211 </div> 211 </div>
212 212
213 <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.contactNumber != null"> 213 <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.contactNumber != null">
214 <i class="fa fa-phone" ng-hide="showEditContact"></i> 214 <i class="fa fa-phone" ng-hide="showEditContact"></i>
215 <span ng-hide="showEditContact">{{data.contactNumber}} &nbsp;</span> 215 <span ng-hide="showEditContact">{{data.contactNumber}} &nbsp;</span>
216 <i ng-click="showContact(data, 'phone')" ng-hide="showEditContact" class="fa fa-pencil-square-o" aria-hidden="true"></i> 216 <i ng-click="showContact(data, 'phone')" ng-hide="showEditContact" class="fa fa-pencil-square-o" aria-hidden="true"></i>
217 217
218 </p> 218 </p>
219 <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.email != null"> 219 <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.email != null">
220 <i class="fa fa-envelope" ng-hide="showEditEmail"></i> 220 <i class="fa fa-envelope" ng-hide="showEditEmail"></i>
221 <span ng-hide="showEditEmail">{{data.email}} &nbsp;</span> 221 <span ng-hide="showEditEmail">{{data.email}} &nbsp;</span>
222 <i ng-click="showContact(data, 'email')" ng-hide="showEditEmail" class="fa fa-pencil-square-o" aria-hidden="true"></i> 222 <i ng-click="showContact(data, 'email')" ng-hide="showEditEmail" class="fa fa-pencil-square-o" aria-hidden="true"></i>
223 223
224 </p> 224 </p>
225 </div> 225 </div>
226 <div class="new-add-select"> 226 <div class="new-add-select">
227 <select class="form-control" ng-model="value" ng-click="addCustom(value)" style="background: #ebebeb;padding: 4px 8px;width: 115px;"> 227 <select class="form-control" ng-model="value" ng-click="addCustom(value)" style="background: #ebebeb;padding: 4px 8px;width: 115px;">
228 <option value="" disabled selected>Add Field</option> 228 <option value="" disabled selected>Add Field</option>
229 <option value="phone" class="optionclass">Add Phone</option> 229 <option value="phone" class="optionclass">Add Phone</option>
230 <option value="email" class="optionclass">Add Email</option> 230 <option value="email" class="optionclass">Add Email</option>
231 </select> 231 </select>
232 </div> 232 </div>
233 <div> 233 <div>
234 <p style="margin-bottom: 0;"><b>Company Notes</b> &nbsp;<i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p> 234 <p style="margin-bottom: 0;"><b>Company Notes</b> &nbsp;<i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p>
235 <p ng-show="showNoteData">{{companyData.internalNote}}</p> 235 <p ng-show="showNoteData">{{companyData.internalNote}}</p>
236 <textarea name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="companyData.internalNote" rows="4" cols="34"></textarea> 236 <textarea name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="companyData.internalNote" rows="4" cols="34"></textarea>
237 </div> 237 </div>
238 <div class="pull-left"> 238 <div class="pull-left">
239 <button ng-click="editData()" ng-show="showUpdateBtn" class="btn btn-success">Save</button> 239 <button ng-click="editData()" ng-show="showUpdateBtn" class="btn btn-success">Save</button>
240 <button ng-click="cancelData()" ng-show="showUpdateBtn" class="btn btn-default">Cancel</button> 240 <button ng-click="cancelData()" ng-show="showUpdateBtn" class="btn btn-default">Cancel</button>
241 </div> 241 </div>
242 <div class="pull-right"> 242 <div class="pull-right">
243 <button type="button" ng-click="openConfirmMail()" class="btn btn-primary">Distribute Price to Company Contacts</button> 243 <button type="button" ng-click="openConfirmMail()" class="btn btn-primary">Distribute Price to Company Contacts</button>
244 <button type="button" class="btn btn-info" ui-sref="app.updateFuelManager">Setup Fuel</button> 244 <button type="button" class="btn btn-info" ui-sref="app.updateFuelManager">Setup Fuel</button>
245 </div> 245 </div>
246 <div class="clearfix"></div> 246 <div class="clearfix"></div>
247 </div> 247 </div>
248 </div> 248 </div>
249 </div> 249 </div>
250 <div class="col-md-6"> 250 <div class="col-md-6">
251 <div class="widget" style="min-height: 350px;"> 251 <div class="widget" style="min-height: 350px;">
252 <div class="widget-header"> 252 <div class="widget-header">
253 <i class="fa fa-plane"></i> 253 <i class="fa fa-plane"></i>
254 <h3>Aircraft List</h3> 254 <h3>Aircraft List</h3>
255 <div class="pull-right"> 255 <div class="pull-right">
256 <button type="submit" class="btn btn-success btn-sm" data-toggle="modal" ng-click="clearAircrafts()" data-target="#aircraft-modal-3" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i>&nbsp; Add Aircraft</button> 256 <button type="submit" class="btn btn-success btn-sm" data-toggle="modal" ng-click="clearAircrafts()" data-target="#aircraft-modal-3" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i>&nbsp; Add Aircraft</button>
257 </div> 257 </div>
258 </div> 258 </div>
259 <div class="widget-content" style="padding:0px;min-height: 350px;"> 259 <div class="widget-content" style="padding:0px;min-height: 350px;">
260 <div class="table-responsive"> 260 <div class="table-responsive">
261 <table class="table table-bordered table-hover table-striped"> 261 <table class="table table-bordered table-hover table-striped">
262 <thead> 262 <thead>
263 <tr> 263 <tr>
264 <th>Tail #</th> 264 <th>Tail #</th>
265 <th>Make</th> 265 <th>Make</th>
266 <th>Model</th> 266 <th>Model</th>
267 <th>JET-A</th> 267 <th>JET-A</th>
268 <th>All In</th> 268 <th>All In</th>
269 <th>AVGAS</th> 269 <th>AVGAS</th>
270 <th>All In</th> 270 <th>All In</th>
271 <th></th> 271 <th></th>
272 </tr> 272 </tr>
273 </thead> 273 </thead>
274 <tbody> 274 <tbody>
275 <tr ng-repeat="aircraft in contactAircraftList"> 275 <tr ng-repeat="aircraft in contactAircraftList">
276 <td>{{aircraft.tail}}</td> 276 <td>{{aircraft.tail}}</td>
277 <td>{{aircraft.make}}</td> 277 <td>{{aircraft.make}}</td>
278 <td>{{aircraft.model}}</td> 278 <td>{{aircraft.model}}</td>
279 <td> 279 <td>
280 <select class="form-control" style="height:31px;" ng-model="aircraft.aircraftsMargin.id" ng-options="margin.id as margin.marginName for margin in jetMarginList" required></select> 280 <select class="form-control" style="height:31px;" ng-model="aircraft.aircraftsMargin.id" ng-options="margin.id as margin.marginName for margin in jetMarginList" required></select>
281 </td> 281 </td>
282 <td style="color:#55AF8B;">${{aircraft.marginAllIn}}</td> 282 <td style="color:#55AF8B;">${{aircraft.marginAllIn}}</td>
283 <td> 283 <td>
284 <select class="form-control" style="height:31px;" ng-model="aircraft.aircraftsAVGASMargin.id"> 284 <select class="form-control" style="height:31px;" ng-model="aircraft.aircraftsAVGASMargin.id">
285 <option value="">N/A</option> 285 <option value="">N/A</option>
286 <option ng-repeat="margin in avgsMarginList" value="{{margin.id}}">{{margin.marginName}}</option> 286 <option ng-repeat="margin in avgsMarginList" value="{{margin.id}}">{{margin.marginName}}</option>
287 </select> 287 </select>
288 </td> 288 </td>
289 <td style="color:#55AF8B;">${{aircraft.marginAvgasAllIn}}</td> 289 <td style="color:#55AF8B;">${{aircraft.marginAvgasAllIn}}</td>
290 <td> 290 <td>
291 <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteAircraft(aircraft.id)" aria-hidden="true"></i> 291 <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteAircraft(aircraft.id)" aria-hidden="true"></i>
292 </td> 292 </td>
293 </tr> 293 </tr>
294 </tbody> 294 </tbody>
295 </table> 295 </table>
296 </div> 296 </div>
297 </div> 297 </div>
298 </div> 298 </div>
299 </div> 299 </div>
300 </div> 300 </div>
301 <div class="row" style="margin-left:0px"> 301 <div class="row" style="margin-left:0px">
302 <div class="col-md-6"> 302 <div class="col-md-6">
303 <div class="widget"> 303 <div class="widget">
304 <div class="widget-header"> 304 <div class="widget-header">
305 <i class="fa fa-user"></i> 305 <i class="fa fa-user"></i>
306 <h3>Contact List</h3> 306 <h3>Contact List</h3>
307 <div class="pull-right"> 307 <div class="pull-right">
308 <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>&nbsp; Add Contact</button> 308 <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>&nbsp; Add Contact</button>
309 </div> 309 </div>
310 </div> 310 </div>
311 <div class="widget-content" style="padding:0px"> 311 <div class="widget-content" style="padding:0px">
312 <div class="table-responsive"> 312 <div class="table-responsive">
313 <table class="table table-bordered table-hover table-striped"> 313 <table class="table table-bordered table-hover table-striped">
314 <thead> 314 <thead>
315 <tr> 315 <tr>
316 <th>Price Email</th> 316 <th>Price Email</th>
317 <th>First Name</th> 317 <th>First Name</th>
318 <th>Last Name</th> 318 <th>Last Name</th>
319 <th>Title</th> 319 <th>Title</th>
320 </tr> 320 </tr>
321 </thead> 321 </thead>
322 <tbody> 322 <tbody>
323 <tr ng-repeat="contact in companyContactList" style="cursor: pointer;" ui-sref="app.viewContact({id : contact.id})"> 323 <tr ng-repeat="contact in companyContactList" style="cursor: pointer;" ui-sref="app.viewContact({id : contact.id})">
324 <td><toggle ng-model="contact.priceEmail" ng-change="changePriceEmail(contact.id, $index)" size="customToogle"></toggle></td> 324 <td><toggle ng-model="contact.priceEmail" ng-change="changePriceEmail(contact.id, $index)" size="customToogle"></toggle></td>
325 <td> 325 <td>
326 {{contact.firstName}} 326 {{contact.firstName}}
327 </td> 327 </td>
328 <td>{{contact.lastName}}</td> 328 <td>{{contact.lastName}}</td>
329 <td>{{contact.title}}</td> 329 <td>{{contact.title}}</td>
330 </tr> 330 </tr>
331 </tbody> 331 </tbody>
332 </table> 332 </table>
333 </div> 333 </div>
334 </div> 334 </div>
335 </div> 335 </div>
336 </div> 336 </div>
337 <div class="col-md-6"> 337 <div class="col-md-6">
338 <div class="widget"> 338 <div class="widget">
339 <div class="widget-header"> 339 <div class="widget-header">
340 <i class="fa fa-pencil"></i> 340 <i class="fa fa-pencil"></i>
341 <h3>Price Manager Reference</h3> 341 <h3>Price Manager Reference</h3>
342 </div> 342 </div>
343 <div class="widget-content"> 343 <div class="widget-content">
344 <div class="table-responsive"> 344 <div class="table-responsive">
345 <table class="table table-striped" style="position: relative; top: -33px; margin-bottom: 0;"> 345 <table class="table table-striped" style="position: relative; top: -33px; margin-bottom: 0;">
346 <thead> 346 <thead>
347 <tr> 347 <tr>
348 <th>Omit</th> 348 <th>Omit</th>
349 <th>Product</th> 349 <th>Product</th>
350 <th>Cost</th> 350 <th>Cost</th>
351 <th>PAP (Margin)</th> 351 <th>PAP (Margin)</th>
352 <th>PAP (Total)</th> 352 <th>PAP (Total)</th>
353 <th style="color:#F90">Expires</th> 353 <th style="color:#F90">Expires</th>
354 </tr> 354 </tr>
355 </thead> 355 </thead>
356 <tbody> 356 <tbody>
357 <tr ng-repeat="fuel in fuelPricing"> 357 <tr ng-repeat="fuel in fuelPricing | filter:{ status: true }">
358 <td><input type="checkbox" ng-model="fuel.fuelPricing.omit" ng-change="updateOmit(fuel.fuelPricing, fuel.status)"></td> 358 <td><input type="checkbox" ng-model="fuel.fuelPricing.omit" ng-change="updateOmit(fuel.fuelPricing, fuel.status)"></td>
359 <td>{{fuel.name}}</td> 359 <td>{{fuel.name}}</td>
360 <td>${{fuel.fuelPricing.cost}}</td> 360 <td>${{fuel.fuelPricing.cost}}</td>
361 <td>${{fuel.fuelPricing.papMargin}}</td> 361 <td>${{fuel.fuelPricing.papMargin}}</td>
362 <td style="color:#55AF8B;">${{fuel.fuelPricing.papTotal}}</td> 362 <td style="color:#55AF8B;">${{fuel.fuelPricing.papTotal}}</td>
363 <td style="color:#F90">{{fuel.fuelPricing.expirationDate}}</td> 363 <td style="color:#F90">{{fuel.fuelPricing.expirationDate}}</td>
364 </tr> 364 </tr>
365 </tbody> 365 </tbody>
366 </table> 366 </table>
367 </div> 367 </div>
368 </div> 368 </div>
369 </div> 369 </div>
370 </div> 370 </div>
371 </div> 371 </div>
372 </div> 372 </div>
373 <!-- /widget-content --> 373 <!-- /widget-content -->
374 </div> 374 </div>
375 <!-- /widget --> 375 <!-- /widget -->
376 </div> 376 </div>
377 <!-- /span6 --> 377 <!-- /span6 -->
378 </div> 378 </div>
379 <!-- /widget --> 379 <!-- /widget -->
380 </div> 380 </div>
381 <!-- /container --> 381 <!-- /container -->
382 <form class="modal multi-step" id="contact-modal-3" name="companyForm"> 382 <form class="modal multi-step" id="contact-modal-3" name="companyForm">
383 <div class="modal-dialog modal-lg"> 383 <div class="modal-dialog modal-lg">
384 <div class="modal-content"> 384 <div class="modal-content">
385 <div class="modal-body step-1" data-step="1" style="padding: 0;"> 385 <div class="modal-body step-1" data-step="1" style="padding: 0;">
386 <div> 386 <div>
387 <div class="row" style="margin: 0;"> 387 <div class="row" style="margin: 0;">
388 <div> 388 <div>
389 <div class="widget" style="margin-bottom: 0; box-shadow: none;"> 389 <div class="widget" style="margin-bottom: 0; box-shadow: none;">
390 <div class="widget-header"> 390 <div class="widget-header">
391 <i class="icon-pencil"></i> 391 <i class="icon-pencil"></i>
392 <i class="fa fa-tasks" aria-hidden="true"></i> 392 <i class="fa fa-tasks" aria-hidden="true"></i>
393 <h3>Add a New Contact</h3> 393 <h3>Add a New Contact</h3>
394 <div class="clearfix"></div> 394 <div class="clearfix"></div>
395 </div> 395 </div>
396 <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> 396 <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;">
397 <div class="col-xs-12"> 397 <div class="col-xs-12">
398 <div class="col-md-6"> 398 <div class="col-md-6">
399 <div class="pull-left" style="width: 110px;"> 399 <div class="pull-left" style="width: 110px;">
400 <label class="new-input-label"><b>First Name</b></label> 400 <label class="new-input-label"><b>First Name</b></label>
401 </div> 401 </div>
402 <div class="pull-left" style="margin-left: 15px;"> 402 <div class="pull-left" style="margin-left: 15px;">
403 <input type="tel" ng-model="data.firstName" class="form-control" placeholder=""> 403 <input type="tel" ng-model="data.firstName" class="form-control" placeholder="">
404 </div> 404 </div>
405 <div class="clearfix"></div> 405 <div class="clearfix"></div>
406 </div> 406 </div>
407 <div class="col-md-6"> 407 <div class="col-md-6">
408 408
409 <div class="pull-left" style="width: 110px;"> 409 <div class="pull-left" style="width: 110px;">
410 <label class="new-input-label"><b>Last Name</b></label> 410 <label class="new-input-label"><b>Last Name</b></label>
411 </div> 411 </div>
412 <div class="pull-left" style="margin-left: 15px;"> 412 <div class="pull-left" style="margin-left: 15px;">
413 <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder=""> 413 <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder="">
414 </div> 414 </div>
415 <div class="clearfix"></div> 415 <div class="clearfix"></div>
416 </div> 416 </div>
417 </div> 417 </div>
418 <div class="clearfix"></div><br> 418 <div class="clearfix"></div><br>
419 <div class="col-xs-12"> 419 <div class="col-xs-12">
420 <div class="col-md-6"> 420 <div class="col-md-6">
421 <div class="pull-left" style="width: 110px;"> 421 <div class="pull-left" style="width: 110px;">
422 <label class="new-input-label"><b>Title</b></label> 422 <label class="new-input-label"><b>Title</b></label>
423 </div> 423 </div>
424 <div class="pull-left" style="margin-left: 15px;"> 424 <div class="pull-left" style="margin-left: 15px;">
425 <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder=""> 425 <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder="">
426 </div> 426 </div>
427 <div class="clearfix"></div> 427 <div class="clearfix"></div>
428 </div> 428 </div>
429 <div class="col-md-6"> 429 <div class="col-md-6">
430 430
431 <div class="pull-left" style="width: 110px;"> 431 <div class="pull-left" style="width: 110px;">
432 <label class="new-input-label"><b>Email</b></label> 432 <label class="new-input-label"><b>Email</b></label>
433 </div> 433 </div>
434 <div class="pull-left" style="margin-left: 15px;"> 434 <div class="pull-left" style="margin-left: 15px;">
435 <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder=""> 435 <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder="">
436 </div> 436 </div>
437 <div class="clearfix"></div> 437 <div class="clearfix"></div>
438 </div> 438 </div>
439 </div> 439 </div>
440 <div class="clearfix"></div><br> 440 <div class="clearfix"></div><br>
441 <div class="col-xs-12"> 441 <div class="col-xs-12">
442 <div class="col-md-6"> 442 <div class="col-md-6">
443 <div class="pull-left" style="width: 110px;"> 443 <div class="pull-left" style="width: 110px;">
444 <label class="new-input-label"><b>Username</b></label> 444 <label class="new-input-label"><b>Username</b></label>
445 </div> 445 </div>
446 <div class="pull-left" style="margin-left: 15px;"> 446 <div class="pull-left" style="margin-left: 15px;">
447 <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder=""> 447 <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder="">
448 </div> 448 </div>
449 <div class="clearfix"></div> 449 <div class="clearfix"></div>
450 </div> 450 </div>
451 <div class="col-md-6"> 451 <div class="col-md-6">
452 452
453 <div class="pull-left" style="width: 110px;"> 453 <div class="pull-left" style="width: 110px;">
454 <label class="new-input-label"><b>Password</b></label> 454 <label class="new-input-label"><b>Password</b></label>
455 </div> 455 </div>
456 <div class="pull-left" style="margin-left: 15px;"> 456 <div class="pull-left" style="margin-left: 15px;">
457 <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder=""> 457 <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder="">
458 </div> 458 </div>
459 <div class="clearfix"></div> 459 <div class="clearfix"></div>
460 </div> 460 </div>
461 </div> 461 </div>
462 <div class="clearfix"></div><br> 462 <div class="clearfix"></div><br>
463 <div class="col-xs-12"> 463 <div class="col-xs-12">
464 <div class="col-md-6"> 464 <div class="col-md-6">
465 <div class="pull-left" style="width: 110px;"> 465 <div class="pull-left" style="width: 110px;">
466 <label class="new-input-label"><b>Work Phone</b></label> 466 <label class="new-input-label"><b>Work Phone</b></label>
467 </div> 467 </div>
468 <div class="pull-left" style="margin-left: 15px;"> 468 <div class="pull-left" style="margin-left: 15px;">
469 <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder=""> 469 <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder="">
470 </div> 470 </div>
471 <div class="clearfix"></div> 471 <div class="clearfix"></div>
472 </div> 472 </div>
473 <div class="col-md-6"> 473 <div class="col-md-6">
474 474
475 <div class="pull-left" style="width: 110px;"> 475 <div class="pull-left" style="width: 110px;">
476 <label class="new-input-label"><b>Mobile Phone</b></label> 476 <label class="new-input-label"><b>Mobile Phone</b></label>
477 </div> 477 </div>
478 <div class="pull-left" style="margin-left: 15px;"> 478 <div class="pull-left" style="margin-left: 15px;">
479 <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder=""> 479 <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder="">
480 </div> 480 </div>
481 <div class="clearfix"></div> 481 <div class="clearfix"></div>
482 </div> 482 </div>
483 </div> 483 </div>
484 <div class="clearfix"></div><br> 484 <div class="clearfix"></div><br>
485 <div class="col-xs-12"> 485 <div class="col-xs-12">
486 <div class="col-md-12"> 486 <div class="col-md-12">
487 <div class="pull-left" style="width: 110px;"> 487 <div class="pull-left" style="width: 110px;">
488 <label class="new-input-label"><b>Address</b></label> 488 <label class="new-input-label"><b>Address</b></label>
489 </div> 489 </div>
490 <div class="pull-right" style="width: calc(100% - 123px);"> 490 <div class="pull-right" style="width: calc(100% - 123px);">
491 <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder=""> 491 <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder="">
492 </div> 492 </div>
493 <div class="clearfix"></div> 493 <div class="clearfix"></div>
494 </div> 494 </div>
495 </div> 495 </div>
496 <div class="clearfix"></div> 496 <div class="clearfix"></div>
497 <br/> 497 <br/>
498 <div class="col-xs-12"> 498 <div class="col-xs-12">
499 <div class="col-md-3"> 499 <div class="col-md-3">
500 <div class="pull-left my-toggle-switch"> 500 <div class="pull-left my-toggle-switch">
501 <div style="color: #ff9a01;">Price Email &nbsp &nbsp 501 <div style="color: #ff9a01;">Price Email &nbsp &nbsp
502 <toggle ng-model="data.priceEmail" size="customToogle"></toggle> 502 <toggle ng-model="data.priceEmail" size="customToogle"></toggle>
503 </div> 503 </div>
504 </div> 504 </div>
505 <div class="clearfix"></div> 505 <div class="clearfix"></div>
506 </div> 506 </div>
507 <div class="col-md-3"> 507 <div class="col-md-3">
508 <div class="pull-left my-toggle-switch"> 508 <div class="pull-left my-toggle-switch">
509 <div style="color: #ff9a01;">Primary Contact &nbsp &nbsp 509 <div style="color: #ff9a01;">Primary Contact &nbsp &nbsp
510 <input type="checkbox" ng-click="checkPrimaryContact()" ng-model="primaryContact"> 510 <input type="checkbox" ng-click="checkPrimaryContact()" ng-model="primaryContact">
511 </div> 511 </div>
512 </div> 512 </div>
513 <div class="clearfix"></div> 513 <div class="clearfix"></div>
514 </div> 514 </div>
515 <div class="col-md-6"> 515 <div class="col-md-6">
516 <div class="pull-left" style="width: 110px;"> 516 <div class="pull-left" style="width: 110px;">
517 <label class="new-input-label"><b>Internal Note</b></label> 517 <label class="new-input-label"><b>Internal Note</b></label>
518 </div> 518 </div>
519 <div class="pull-left" style="width: calc(100% - 110px);"> 519 <div class="pull-left" style="width: calc(100% - 110px);">
520 <textarea name="message" ng-model="data.note" rows="4" cols="34"></textarea> 520 <textarea name="message" ng-model="data.note" rows="4" cols="34"></textarea>
521 </div> 521 </div>
522 </div> 522 </div>
523 <div class="clearfix"></div> 523 <div class="clearfix"></div>
524 </div> 524 </div>
525 <div class="clearfix"></div><br> 525 <div class="clearfix"></div><br>
526 </div> 526 </div>
527 </div> 527 </div>
528 <div class="clearfix"></div> 528 <div class="clearfix"></div>
529 </div> 529 </div>
530 </div> 530 </div>
531 </div> 531 </div>
532 </div> 532 </div>
533 <div class="modal-footer" style="border-top: 0;"> 533 <div class="modal-footer" style="border-top: 0;">
534 <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button> 534 <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button>
535 <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button> 535 <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button>
536 </div> 536 </div>
537 </div> 537 </div>
538 </div> 538 </div>
539 </form> 539 </form>
540 <div class="clearfix"></div> 540 <div class="clearfix"></div>
541 541
542 <form class="modal multi-step" id="aircraft-modal-3" name="aircraftForm"> 542 <form class="modal multi-step" id="aircraft-modal-3" name="aircraftForm">
543 <div class="modal-dialog modal-lg"> 543 <div class="modal-dialog modal-lg">
544 <div class="modal-content"> 544 <div class="modal-content">
545 <div class="modal-body step-2" data-step="2" style="padding: 0;"> 545 <div class="modal-body step-2" data-step="2" style="padding: 0;">
546 <div> 546 <div>
547 <div class="row" style="margin: 0;"> 547 <div class="row" style="margin: 0;">
548 <div> 548 <div>
549 <div class="widget" style="margin-bottom: 0;box-shadow: none;"> 549 <div class="widget" style="margin-bottom: 0;box-shadow: none;">
550 <div class="widget-header"> 550 <div class="widget-header">
551 <i class="icon-pencil"></i> 551 <i class="icon-pencil"></i>
552 <i class="fa fa-tasks" aria-hidden="true"></i> 552 <i class="fa fa-tasks" aria-hidden="true"></i>
553 <h3>Add a New Aircraft</h3> 553 <h3>Add a New Aircraft</h3>
554 <div class="clearfix"></div> 554 <div class="clearfix"></div>
555 </div> 555 </div>
556 <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> 556 <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;">
557 <div class="col-xs-12"> 557 <div class="col-xs-12">
558 <div class="widget-header"> 558 <div class="widget-header">
559 <i class="fa fa-list"></i> 559 <i class="fa fa-list"></i>
560 <h3>Aircraft List</h3> 560 <h3>Aircraft List</h3>
561 </div> 561 </div>
562 <div class="widget-content" style="padding:0px;border: 0px; padding: 0px !important;"> 562 <div class="widget-content" style="padding:0px;border: 0px; padding: 0px !important;">
563 <div class="table-responsive"> 563 <div class="table-responsive">
564 <table class="table table-striped table-bordered"> 564 <table class="table table-striped table-bordered">
565 <thead> 565 <thead>
566 <tr> 566 <tr>
567 <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> --> 567 <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> -->
568 <th>Tail</th> 568 <th>Tail</th>
569 <th>Make</th> 569 <th>Make</th>
570 <th>Model</th> 570 <th>Model</th>
571 <th>Size</th> 571 <th>Size</th>
572 <th>JET A Margin</th> 572 <th>JET A Margin</th>
573 <th>AVGS 100LL Margin</th> 573 <th>AVGS 100LL Margin</th>
574 </tr> 574 </tr>
575 </thead> 575 </thead>
576 <tbody> 576 <tbody>
577 <tr ng-repeat="aircraftData in aircraftDetails track by $index"> 577 <tr ng-repeat="aircraftData in aircraftDetails track by $index">
578 <!-- <td> 578 <!-- <td>
579 <input type="checkbox" ng-model="aircraftData.selected"/> 579 <input type="checkbox" ng-model="aircraftData.selected"/>
580 </td> --> 580 </td> -->
581 <td style="width: 15%"> 581 <td style="width: 15%">
582 <input type="tel" class="form-control" ng-model="aircraftData.tail" required/> 582 <input type="tel" class="form-control" ng-model="aircraftData.tail" required/>
583 </td> 583 </td>
584 <td style="width: 17%"> 584 <td style="width: 17%">
585 <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)"> 585 <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)">
586 <option ng-repeat="make in aircraftMakeList">{{make}}</option> 586 <option ng-repeat="make in aircraftMakeList">{{make}}</option>
587 </select> 587 </select>
588 </td> 588 </td>
589 <td style="width: 17%"> 589 <td style="width: 17%">
590 <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)"> 590 <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)">
591 <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option> 591 <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option>
592 </select> 592 </select>
593 </td> 593 </td>
594 <td style="width: 17%"> 594 <td style="width: 17%">
595 <select class="form-control" ng-model="aircraftData.sizeId" ng-options="size.aircraftSize.id as size.aircraftSize.size for size in aircraftData.aircraftSizeList"></select> 595 <select class="form-control" ng-model="aircraftData.sizeId" ng-options="size.aircraftSize.id as size.aircraftSize.size for size in aircraftData.aircraftSizeList"></select>
596 <!-- <select class="form-control" ng-model="aircraftData.size"> 596 <!-- <select class="form-control" ng-model="aircraftData.size">
597 <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option> 597 <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option>
598 </select> --> 598 </select> -->
599 </td> 599 </td>
600 <td style="width: 17%"> 600 <td style="width: 17%">
601 <select class="form-control" ng-model="aircraftData.marginId" ng-options="margin.id as margin.marginName for margin in jetMarginList"> 601 <select class="form-control" ng-model="aircraftData.marginId" ng-options="margin.id as margin.marginName for margin in jetMarginList">
602 <option value="" disabled>Select...</option> 602 <option value="" disabled>Select...</option>
603 </select> 603 </select>
604 </td> 604 </td>
605 <td style="width: 17%"> 605 <td style="width: 17%">
606 <select class="form-control marginSelectBox" ng-model="aircraftData.avgasMarginId" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList"> 606 <select class="form-control marginSelectBox" ng-model="aircraftData.avgasMarginId" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList">
607 <option value="" disabled>Select...</option> 607 <option value="" disabled>Select...</option>
608 </select> 608 </select>
609 </td> 609 </td>
610 </tr> 610 </tr>
611 </tbody> 611 </tbody>
612 </table> 612 </table>
613 </div> 613 </div>
614 <div class="clearfix"></div> 614 <div class="clearfix"></div>
615 </div> 615 </div>
616 </div> 616 </div>
617 <div class="clearfix"></div> 617 <div class="clearfix"></div>
618 <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;"> 618 <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;">
619 <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button> 619 <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button>
620 </div> 620 </div>
621 </div> 621 </div>
622 </div> 622 </div>
623 <div class="clearfix"></div> 623 <div class="clearfix"></div>
624 </div> 624 </div>
625 </div> 625 </div>
626 </div> 626 </div>
627 </div> 627 </div>
628 <div class="modal-footer" style="border-top: 0;"> 628 <div class="modal-footer" style="border-top: 0;">
629 <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button> 629 <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button>
630 <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="saveCompanyData()">Save</button> 630 <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="saveCompanyData()">Save</button>
631 </div> 631 </div>
632 </div> 632 </div>
633 </div> 633 </div>
634 </form> 634 </form>
635 <div class="customConfirmPopBackdrop" id="fuelerchange" > 635 <div class="customConfirmPopBackdrop" id="fuelerchange" >
636 <div class="customModalInner" style="max-width: 550px;"> 636 <div class="customModalInner" style="max-width: 550px;">
637 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 637 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
638 <table> 638 <table>
639 <tr> 639 <tr>
640 <td> 640 <td>
641 <img src="img/info.png" style="width: 50px;"> 641 <img src="img/info.png" style="width: 50px;">
642 </td> 642 </td>
643 <td> 643 <td>
644 <p style="padding: 5px 10px; margin-bottom: 0;">{{statusMessage}}</p> 644 <p style="padding: 5px 10px; margin-bottom: 0;">{{statusMessage}}</p>
645 </td> 645 </td>
646 </tr> 646 </tr>
647 </table> 647 </table>
648 </div> 648 </div>
649 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 649 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
650 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="fuelerAcceptStatus()">Accept</button> 650 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="fuelerAcceptStatus()">Accept</button>
651 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="fuelerCancelStatus()">Cancel</button> 651 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="fuelerCancelStatus()">Cancel</button>
652 </div> 652 </div>
653 </div> 653 </div>
654 </div> 654 </div>
655 <div class="customConfirmPopBackdrop" id="confirm1"> 655 <div class="customConfirmPopBackdrop" id="confirm1">
656 <div class="customModalInner" style="max-width: 400px;"> 656 <div class="customModalInner" style="max-width: 400px;">
657 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 657 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
658 <table> 658 <table>
659 <tr> 659 <tr>
660 <td> 660 <td>
661 <img src="img/info.png" style="width: 50px;"> 661 <img src="img/info.png" style="width: 50px;">
662 </td> 662 </td>
663 <td> 663 <td>
664 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p> 664 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p>
665 </td> 665 </td>
666 </tr> 666 </tr>
667 </table> 667 </table>
668 </div> 668 </div>
669 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 669 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
670 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendMail()">Yes</button> 670 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendMail()">Yes</button>
671 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button> 671 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button>
672 </div> 672 </div>
673 </div> 673 </div>
674 </div> 674 </div>
675 <div class="customConfirmPopBackdrop" id="primaryContact"> 675 <div class="customConfirmPopBackdrop" id="primaryContact">
676 <div class="customModalInner" style="max-width: 400px;"> 676 <div class="customModalInner" style="max-width: 400px;">
677 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 677 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
678 <table> 678 <table>
679 <tr> 679 <tr>
680 <td> 680 <td>
681 <img src="img/info.png" style="width: 50px;"> 681 <img src="img/info.png" style="width: 50px;">
682 </td> 682 </td>
683 <td> 683 <td>
684 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure you want to set this person as your primary contact?</p> 684 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure you want to set this person as your primary contact?</p>
685 </td> 685 </td>
686 </tr> 686 </tr>
687 </table> 687 </table>
688 </div> 688 </div>
689 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 689 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
690 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendPrimaryContact()">Yes</button> 690 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendPrimaryContact()">Yes</button>
691 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelPrimaryContact()">Cancel</button> 691 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelPrimaryContact()">Cancel</button>
692 </div> 692 </div>
693 </div> 693 </div>
694 </div> 694 </div>
695 <div class="customConfirmPopBackdrop" id="customField"> 695 <div class="customConfirmPopBackdrop" id="customField">
696 <div class="customModalInner" style="max-width: 400px;"> 696 <div class="customModalInner" style="max-width: 400px;">
697 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 697 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
698 <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div> 698 <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div>
699 <div class="col-md-10"> 699 <div class="col-md-10">
700 <form> 700 <form>
701 Title:<br> 701 Title:<br>
702 <input type="text" name="firstname" ng-model="custom.title"><br> 702 <input type="text" name="firstname" ng-model="custom.title"><br>
703 Content:<br> 703 Content:<br>
704 <input type="text" name="lastname" ng-model="custom.content"> 704 <input type="text" name="lastname" ng-model="custom.content">
705 </form> 705 </form>
706 </div> 706 </div>
707 <div class="clearfix"></div> 707 <div class="clearfix"></div>
708 </div> 708 </div>
709 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 709 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
710 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptCustomField()">Accept</button> 710 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptCustomField()">Accept</button>
711 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelCustomField()">Cancel</button> 711 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelCustomField()">Cancel</button>
712 </div> 712 </div>
713 </div> 713 </div>
714 </div> 714 </div>
715 <div class="customConfirmPopBackdrop" id="updateContact"> 715 <div class="customConfirmPopBackdrop" id="updateContact">
716 <div class="customModalInner" style="max-width: 400px;"> 716 <div class="customModalInner" style="max-width: 400px;">
717 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 717 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
718 <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div> 718 <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div>
719 <div class="col-md-10"> 719 <div class="col-md-10">
720 <form> 720 <form>
721 Title:<br> 721 Title:<br>
722 <input type="text" name="firstname" ng-model="updateData.title"><br> 722 <input type="text" name="firstname" ng-model="updateData.title"><br>
723 Content:<br> 723 Content:<br>
724 <input type="text" name="lastname" ng-model="updateData.content"> 724 <input type="text" name="lastname" ng-model="updateData.content">
725 </form> 725 </form>
726 </div> 726 </div>
727 <div class="clearfix"></div> 727 <div class="clearfix"></div>
728 </div> 728 </div>
729 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 729 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
730 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptUpdateField()">Accept</button> 730 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptUpdateField()">Accept</button>
731 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelUpdateField()">Cancel</button> 731 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelUpdateField()">Cancel</button>
732 </div> 732 </div>
733 </div> 733 </div>
734 </div> 734 </div>
735 <div class="customConfirmPopBackdrop" id="delete1"> 735 <div class="customConfirmPopBackdrop" id="delete1">
736 <div class="customModalInner" style="max-width: 400px;"> 736 <div class="customModalInner" style="max-width: 400px;">
737 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 737 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
738 <table> 738 <table>
739 <tr> 739 <tr>
740 <td> 740 <td>
741 <img src="img/info.png" style="width: 50px;"> 741 <img src="img/info.png" style="width: 50px;">
742 </td> 742 </td>
743 <td> 743 <td>
744 <p style="padding: 5px 10px; margin-bottom: 0;">Please confirm! Are you sure you want to DELETE this Aircraft?</p> 744 <p style="padding: 5px 10px; margin-bottom: 0;">Please confirm! Are you sure you want to DELETE this Aircraft?</p>
745 </td> 745 </td>
746 </tr> 746 </tr>
747 </table> 747 </table>
748 </div> 748 </div>
749 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 749 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
750 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="aircraftDelete()">Accept</button> 750 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="aircraftDelete()">Accept</button>
751 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelDelete()">Cancel</button> 751 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelDelete()">Cancel</button>
752 </div> 752 </div>
753 </div> 753 </div>
754 </div> 754 </div>
755 <div class="customConfirmPopBackdrop" id="delete3"> 755 <div class="customConfirmPopBackdrop" id="delete3">
756 <div class="customModalInner" style="max-width: 400px;"> 756 <div class="customModalInner" style="max-width: 400px;">
757 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 757 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
758 <table> 758 <table>
759 <tr> 759 <tr>
760 <td> 760 <td>
761 <img src="img/info.png" style="width: 50px;"> 761 <img src="img/info.png" style="width: 50px;">
762 </td> 762 </td>
763 <td> 763 <td>
764 <p style="padding: 5px 10px; margin-bottom: 0;">{{statusMessage}}</p> 764 <p style="padding: 5px 10px; margin-bottom: 0;">{{statusMessage}}</p>
765 </td> 765 </td>
766 </tr> 766 </tr>
767 </table> 767 </table>
768 </div> 768 </div>
769 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 769 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
770 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="companyStatus()">Accept</button> 770 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="companyStatus()">Accept</button>
771 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelStatus()">Cancel</button> 771 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelStatus()">Cancel</button>
772 </div> 772 </div>
773 </div> 773 </div>
774 </div> 774 </div>
775 <div class="customConfirmPopBackdrop" id="toogleMail"> 775 <div class="customConfirmPopBackdrop" id="toogleMail">
776 <div class="customModalInner" style="max-width: 400px;"> 776 <div class="customModalInner" style="max-width: 400px;">
777 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 777 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
778 <table> 778 <table>
779 <tr> 779 <tr>
780 <!-- <td> 780 <!-- <td>
781 <img src="" style="width: 50px;"> 781 <img src="" style="width: 50px;">
782 </td> --> 782 </td> -->
783 <td> 783 <td>
784 <p style="padding: 5px 10px; margin-bottom: 0;text-align: center;">{{messageText}}</p> 784 <p style="padding: 5px 10px; margin-bottom: 0;text-align: center;">{{messageText}}</p>
785 </td> 785 </td>
786 </tr> 786 </tr>
787 </table> 787 </table>
788 </div> 788 </div>
789 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 789 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
790 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelToogle()">Cancel</button> 790 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelToogle()">Cancel</button>
791 </div> 791 </div>
792 </div> 792 </div>
793 </div> 793 </div>
794 <div class="myLoader" ng-show="showLoader"> 794 <div class="myLoader" ng-show="showLoader">
795 <img src="../img/hourglass.gif" width="50px;"> 795 <img src="../img/hourglass.gif" width="50px;">
796 </div> 796 </div>
797 797
798 <!-- Le javascript 798 <!-- Le javascript
799 ================================================== --> 799 ================================================== -->
800 <!-- Placed at the end of the document so the pages load faster --> 800 <!-- Placed at the end of the document so the pages load faster -->
801 <!-- <script 801 <!-- <script
802 CKEDITOR.replace( 'editor2', { 802 CKEDITOR.replace( 'editor2', {
803 height: 250, 803 height: 250,
804 extraPlugins: 'divarea' 804 extraPlugins: 'divarea'
805 } ); 805 } );
806 </script> --> 806 </script> -->
807 807
app/partials/viewFuelVendor/viewFuelVendor.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="myLoader" ng-show="showLoader"> 121 <div class="myLoader" ng-show="showLoader">
122 <img src="../img/hourglass.gif" width="50px;"> 122 <img src="../img/hourglass.gif" width="50px;">
123 </div> 123 </div>
124 124
125 <div class="col-xs-12 col-md-12"> 125 <div class="col-xs-12 col-md-12">
126 <div class="row" style="margin-left:0px"> 126 <div class="row" style="margin-left:0px">
127 <div class="col-md-12"> 127 <div class="col-md-12">
128 <div class="widget"> 128 <div class="widget">
129 <div class="widget-header"> 129 <div class="widget-header">
130 <i class="fa fa-building-o" aria-hidden="true"></i> 130 <i class="fa fa-building-o" aria-hidden="true"></i>
131 <h3>{{vendorData.vendorName}} <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteVendor(vendorData.id)" aria-hidden="true"></i></h3> 131 <h3>{{vendorData.vendorName}} <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteVendor(vendorData.id)" aria-hidden="true"></i></h3>
132 <i class="fa fa-times timess" ui-sref="app.FuelVendors" aria-hidden="true"></i> 132 <i class="fa fa-times timess" ui-sref="app.FuelVendors" aria-hidden="true"></i>
133 </div> 133 </div>
134 <!-- /widget-header --> 134 <!-- /widget-header -->
135 <div class="widget-content"> 135 <div class="widget-content">
136 <div class="row" style="margin-left:0px"> 136 <div class="row" style="margin-left:0px">
137 <div class="col-md-6"> 137 <div class="col-md-6">
138 <div class="widget"> 138 <div class="widget">
139 <div class="widget-header"> 139 <div class="widget-header">
140 <i class="fa fa-building-o" aria-hidden="true"></i> 140 <i class="fa fa-building-o" aria-hidden="true"></i>
141 <h3>Vendor Details</h3> 141 <h3>Vendor Details</h3>
142 <div class="pull-right" style="margin-top: 5px; margin-right: 10px;"> 142 <div class="pull-right" style="margin-top: 5px; margin-right: 10px;">
143 <toggle ng-model="vendorData.activate" ng-change="changeCompanyStatus()" size="customToogle" on="Active" off="Dactive"></toggle> 143 <toggle ng-model="vendorData.activate" ng-change="changeCompanyStatus()" size="customToogle" on="Active" off="Dactive"></toggle>
144 </div> 144 </div>
145 </div> 145 </div>
146 <div class="widget-content"> 146 <div class="widget-content">
147 <div class="row" style="margin-left:0px;"> 147 <div class="row" style="margin-left:0px;">
148 <div class="col-md-7" style="padding-left: 0;"> 148 <div class="col-md-7" style="padding-left: 0;">
149 <h4 ng-show="showCompanyName" ng-if="vendorData.vendorName != 'undefined'"> 149 <h4 ng-show="showCompanyName" ng-if="vendorData.vendorName != 'undefined'">
150 <b style="color:#F90;">{{vendorData.vendorName}}</b> &nbsp;<i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i> 150 <b style="color:#F90;">{{vendorData.vendorName}}</b> &nbsp;<i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i>
151 </h4> 151 </h4>
152 <input type="tel" ng-hide="showCompanyName" ng-model="vendorData.vendorName" class="form-control"> 152 <input type="tel" ng-hide="showCompanyName" ng-model="vendorData.vendorName" class="form-control">
153 </div> 153 </div>
154 </div> 154 </div>
155 <div> 155 <div>
156 <p class="new-label"> 156 <p class="new-label">
157 <span>Master Margin Setting </span> 157 <span>Master Margin Setting </span>
158 <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-change="editData()" ng-model="vendorData.masterMargin"> 158 <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-change="editData()" ng-model="vendorData.masterMargin">
159 <option ng-repeat="margin in jetMarginList" value="{{margin.id}}">{{margin.marginName}}</option> 159 <option ng-repeat="margin in jetMarginList" value="{{margin.id}}">{{margin.marginName}}</option>
160 </select> 160 </select>
161 <span>&nbsp;${{vendorData.margin.marginValue}}</span> 161 <span>&nbsp;${{vendorData.margin.marginValue}}</span>
162 <div class="clearfix"></div> 162 <div class="clearfix"></div>
163 </p> 163 </p>
164 </div> 164 </div>
165 165
166 </br> 166 </br>
167 <div class="new-address"> 167 <div class="new-address">
168 168
169 <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{vendorData.addressOne}} {{vendorData.addressTwo}} &nbsp;<i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p> 169 <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{vendorData.addressOne}} {{vendorData.addressTwo}} &nbsp;<i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p>
170 170
171 <div ng-hide="showAddress"> 171 <div ng-hide="showAddress">
172 <label>Address1</label> 172 <label>Address1</label>
173 <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="vendorData.addressOne" class="form-control" /> 173 <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="vendorData.addressOne" class="form-control" />
174 <label>Address2</label> 174 <label>Address2</label>
175 <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="vendorData.addressTwo" class="form-control" /> 175 <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="vendorData.addressTwo" class="form-control" />
176 </div> 176 </div>
177 177
178 <p ng-repeat="data in vendorData.vendorCustomContacts" ng-if="data.contactNumber != null"> 178 <p ng-repeat="data in vendorData.vendorCustomContacts" ng-if="data.contactNumber != null">
179 <i class="fa fa-phone" ng-hide="showEditContact"></i> 179 <i class="fa fa-phone" ng-hide="showEditContact"></i>
180 <span ng-hide="showEditContact">{{data.contactNumber}} &nbsp;</span> 180 <span ng-hide="showEditContact">{{data.contactNumber}} &nbsp;</span>
181 <i ng-click="showContact(data, 'phone')" ng-hide="showEditContact" class="fa fa-pencil-square-o" aria-hidden="true"></i> 181 <i ng-click="showContact(data, 'phone')" ng-hide="showEditContact" class="fa fa-pencil-square-o" aria-hidden="true"></i>
182 182
183 </p> 183 </p>
184 <p ng-repeat="data in vendorData.vendorCustomContacts" ng-if="data.email != null"> 184 <p ng-repeat="data in vendorData.vendorCustomContacts" ng-if="data.email != null">
185 <i class="fa fa-envelope" ng-hide="showEditEmail"></i> 185 <i class="fa fa-envelope" ng-hide="showEditEmail"></i>
186 <span ng-hide="showEditEmail">{{data.email}} &nbsp;</span> 186 <span ng-hide="showEditEmail">{{data.email}} &nbsp;</span>
187 <i ng-click="showContact(data, 'email')" ng-hide="showEditEmail" class="fa fa-pencil-square-o" aria-hidden="true"></i> 187 <i ng-click="showContact(data, 'email')" ng-hide="showEditEmail" class="fa fa-pencil-square-o" aria-hidden="true"></i>
188 188
189 </p> 189 </p>
190 </div> 190 </div>
191 <div class="new-add-select"> 191 <div class="new-add-select">
192 <select class="form-control" ng-model="value" ng-click="addCustom(value)" style="background: #ebebeb;padding: 4px 8px;width: 115px;"> 192 <select class="form-control" ng-model="value" ng-click="addCustom(value)" style="background: #ebebeb;padding: 4px 8px;width: 115px;">
193 <option value="" disabled selected>Add Field</option> 193 <option value="" disabled selected>Add Field</option>
194 <option value="phone" class="optionclass">Add Phone</option> 194 <option value="phone" class="optionclass">Add Phone</option>
195 <option value="email" class="optionclass">Add Email</option> 195 <option value="email" class="optionclass">Add Email</option>
196 </select> 196 </select>
197 </div> 197 </div>
198 <div> 198 <div>
199 <p style="margin-bottom: 0;"><b>Company Notes</b> &nbsp;<i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p> 199 <p style="margin-bottom: 0;"><b>Company Notes</b> &nbsp;<i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p>
200 <p ng-show="showNoteData">{{vendorData.internalNote}}</p> 200 <p ng-show="showNoteData">{{vendorData.internalNote}}</p>
201 <textarea name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="vendorData.internalNote" rows="4" cols="34"></textarea> 201 <textarea name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="vendorData.internalNote" rows="4" cols="34"></textarea>
202 </div> 202 </div>
203 <div class="pull-left"> 203 <div class="pull-left">
204 <button ng-click="editData()" ng-show="showUpdateBtn" class="btn btn-success">Save</button> 204 <button ng-click="editData()" ng-show="showUpdateBtn" class="btn btn-success">Save</button>
205 <button ng-click="cancelData()" ng-show="showUpdateBtn" class="btn btn-default">Cancel</button> 205 <button ng-click="cancelData()" ng-show="showUpdateBtn" class="btn btn-default">Cancel</button>
206 </div> 206 </div>
207 <div class="pull-right"> 207 <div class="pull-right">
208 <button type="button" ng-click="openConfirmMail()" class="btn btn-primary">Distribute Price to Vendor Contacts</button> 208 <button type="button" ng-click="openConfirmMail()" class="btn btn-primary">Distribute Price to Vendor Contacts</button>
209 </div> 209 </div>
210 <div class="clearfix"></div> 210 <div class="clearfix"></div>
211 </div> 211 </div>
212 </div> 212 </div>
213 </div> 213 </div>
214 <div class="col-md-6"> 214 <div class="col-md-6">
215 <div class="widget"> 215 <div class="widget">
216 <div class="widget-header"> 216 <div class="widget-header">
217 <i class="fa fa-pencil"></i> 217 <i class="fa fa-pencil"></i>
218 <h3>Price Manager Reference</h3> 218 <h3>Price Manager Reference</h3>
219 </div> 219 </div>
220 <div class="widget-content"> 220 <div class="widget-content">
221 <div class="table-responsive"> 221 <div class="table-responsive">
222 <table class="table table-hover table-striped"> 222 <table class="table table-hover table-striped">
223 <thead> 223 <thead>
224 <tr> 224 <tr>
225 <th>Omit</th> 225 <th>Omit</th>
226 <th>Product</th> 226 <th>Product</th>
227 <th>Cost</th> 227 <th>Cost</th>
228 <th>PAP (Margin)</th> 228 <th>PAP (Margin)</th>
229 <th>PAP (Total)</th> 229 <th>PAP (Total)</th>
230 <th style="color:#F90">Expires</th> 230 <th style="color:#F90">Expires</th>
231 </tr> 231 </tr>
232 </thead> 232 </thead>
233 <tbody> 233 <tbody>
234 <tr ng-repeat="fuel in fuelPricing"> 234 <tr ng-repeat="fuel in fuelPricing | filter:{ status: true }">
235 <td><input type="checkbox" ng-model="fuel.fuelPricing.omit" ng-change="updateOmit(fuel.fuelPricing, fuel.status)"></td> 235 <td><input type="checkbox" ng-model="fuel.fuelPricing.omit" ng-change="updateOmit(fuel.fuelPricing, fuel.status)"></td>
236 <td>{{fuel.name}}</td> 236 <td>{{fuel.name}}</td>
237 <td>${{fuel.fuelPricing.cost}}</td> 237 <td>${{fuel.fuelPricing.cost}}</td>
238 <td>${{fuel.fuelPricing.papMargin}}</td> 238 <td>${{fuel.fuelPricing.papMargin}}</td>
239 <td style="color:#55AF8B;">${{fuel.fuelPricing.papTotal}}</td> 239 <td style="color:#55AF8B;">${{fuel.fuelPricing.papTotal}}</td>
240 <td style="color:#F90">{{fuel.fuelPricing.expirationDate}}</td> 240 <td style="color:#F90">{{fuel.fuelPricing.expirationDate}}</td>
241 </tr> 241 </tr>
242 </tbody> 242 </tbody>
243 </table> 243 </table>
244 </div> 244 </div>
245 </div> 245 </div>
246 </div> 246 </div>
247 </div> 247 </div>
248 </div> 248 </div>
249 <div class="row" style="margin-left:0px"> 249 <div class="row" style="margin-left:0px">
250 <div class="col-md-6"> 250 <div class="col-md-6">
251 <div class="widget"> 251 <div class="widget">
252 <div class="widget-header"> 252 <div class="widget-header">
253 <i class="fa fa-user"></i> 253 <i class="fa fa-user"></i>
254 <h3>Contact List</h3> 254 <h3>Contact List</h3>
255 <div class="pull-right"> 255 <div class="pull-right">
256 <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>&nbsp; Add Contact</button> 256 <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>&nbsp; Add Contact</button>
257 </div> 257 </div>
258 </div> 258 </div>
259 <div class="widget-content" style="padding:0px"> 259 <div class="widget-content" style="padding:0px">
260 <div class="table-responsive"> 260 <div class="table-responsive">
261 <table class="table table-bordered table-hover table-striped"> 261 <table class="table table-bordered table-hover table-striped">
262 <thead> 262 <thead>
263 <tr> 263 <tr>
264 <th>Price Email</th> 264 <th>Price Email</th>
265 <th>First Name</th> 265 <th>First Name</th>
266 <th>Last Name</th> 266 <th>Last Name</th>
267 <th>Title</th> 267 <th>Title</th>
268 </tr> 268 </tr>
269 </thead> 269 </thead>
270 <tbody> 270 <tbody>
271 <tr ng-repeat="contact in vendorContactList" style="cursor: pointer;" ui-sref="app.viewVendorContact({id : contact.id})"> 271 <tr ng-repeat="contact in vendorContactList" style="cursor: pointer;" ui-sref="app.viewVendorContact({id : contact.id})">
272 <td><toggle ng-model="contact.priceEmail" ng-change="changePriceEmail(contact.id, $index)"></toggle></td> 272 <td><toggle ng-model="contact.priceEmail" ng-change="changePriceEmail(contact.id, $index)"></toggle></td>
273 <td>{{contact.firstName}}</td> 273 <td>{{contact.firstName}}</td>
274 <td>{{contact.lastName}}</td> 274 <td>{{contact.lastName}}</td>
275 <td>{{contact.title}}</td> 275 <td>{{contact.title}}</td>
276 </tr> 276 </tr>
277 </tbody> 277 </tbody>
278 </table> 278 </table>
279 </div> 279 </div>
280 </div> 280 </div>
281 </div> 281 </div>
282 </div> 282 </div>
283 283
284 </div> 284 </div>
285 </div> 285 </div>
286 <!-- /widget-content --> 286 <!-- /widget-content -->
287 </div> 287 </div>
288 <!-- /widget --> 288 <!-- /widget -->
289 </div> 289 </div>
290 <!-- /span6 --> 290 <!-- /span6 -->
291 </div> 291 </div>
292 <!-- /widget --> 292 <!-- /widget -->
293 </div> 293 </div>
294 <!-- /container --> 294 <!-- /container -->
295 <form class="modal multi-step" id="contact-modal-3" name="companyForm"> 295 <form class="modal multi-step" id="contact-modal-3" name="companyForm">
296 <div class="modal-dialog modal-lg"> 296 <div class="modal-dialog modal-lg">
297 <div class="modal-content"> 297 <div class="modal-content">
298 <div class="modal-body step-1" data-step="1" style="padding: 0;"> 298 <div class="modal-body step-1" data-step="1" style="padding: 0;">
299 <div> 299 <div>
300 <div class="row" style="margin: 0;"> 300 <div class="row" style="margin: 0;">
301 <div> 301 <div>
302 <div class="widget" style="margin-bottom: 0; box-shadow: none;"> 302 <div class="widget" style="margin-bottom: 0; box-shadow: none;">
303 <div class="widget-header"> 303 <div class="widget-header">
304 <i class="icon-pencil"></i> 304 <i class="icon-pencil"></i>
305 <i class="fa fa-tasks" aria-hidden="true"></i> 305 <i class="fa fa-tasks" aria-hidden="true"></i>
306 <h3>Add a New Contact</h3> 306 <h3>Add a New Contact</h3>
307 <div class="clearfix"></div> 307 <div class="clearfix"></div>
308 </div> 308 </div>
309 <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> 309 <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;">
310 <div class="col-xs-12"> 310 <div class="col-xs-12">
311 <div class="col-md-6"> 311 <div class="col-md-6">
312 <div class="pull-left" style="width: 110px;"> 312 <div class="pull-left" style="width: 110px;">
313 <label class="new-input-label"><b>First Name</b></label> 313 <label class="new-input-label"><b>First Name</b></label>
314 </div> 314 </div>
315 <div class="pull-left" style="margin-left: 15px;"> 315 <div class="pull-left" style="margin-left: 15px;">
316 <input type="tel" ng-model="data.firstName" class="form-control" placeholder=""> 316 <input type="tel" ng-model="data.firstName" class="form-control" placeholder="">
317 </div> 317 </div>
318 <div class="clearfix"></div> 318 <div class="clearfix"></div>
319 </div> 319 </div>
320 <div class="col-md-6"> 320 <div class="col-md-6">
321 321
322 <div class="pull-left" style="width: 110px;"> 322 <div class="pull-left" style="width: 110px;">
323 <label class="new-input-label"><b>Last Name</b></label> 323 <label class="new-input-label"><b>Last Name</b></label>
324 </div> 324 </div>
325 <div class="pull-left" style="margin-left: 15px;"> 325 <div class="pull-left" style="margin-left: 15px;">
326 <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder=""> 326 <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder="">
327 </div> 327 </div>
328 <div class="clearfix"></div> 328 <div class="clearfix"></div>
329 </div> 329 </div>
330 </div> 330 </div>
331 <div class="clearfix"></div><br> 331 <div class="clearfix"></div><br>
332 <div class="col-xs-12"> 332 <div class="col-xs-12">
333 <div class="col-md-6"> 333 <div class="col-md-6">
334 <div class="pull-left" style="width: 110px;"> 334 <div class="pull-left" style="width: 110px;">
335 <label class="new-input-label"><b>Title</b></label> 335 <label class="new-input-label"><b>Title</b></label>
336 </div> 336 </div>
337 <div class="pull-left" style="margin-left: 15px;"> 337 <div class="pull-left" style="margin-left: 15px;">
338 <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder=""> 338 <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder="">
339 </div> 339 </div>
340 <div class="clearfix"></div> 340 <div class="clearfix"></div>
341 </div> 341 </div>
342 <div class="col-md-6"> 342 <div class="col-md-6">
343 343
344 <div class="pull-left" style="width: 110px;"> 344 <div class="pull-left" style="width: 110px;">
345 <label class="new-input-label"><b>Email</b></label> 345 <label class="new-input-label"><b>Email</b></label>
346 </div> 346 </div>
347 <div class="pull-left" style="margin-left: 15px;"> 347 <div class="pull-left" style="margin-left: 15px;">
348 <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder=""> 348 <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder="">
349 </div> 349 </div>
350 <div class="clearfix"></div> 350 <div class="clearfix"></div>
351 </div> 351 </div>
352 </div> 352 </div>
353 <div class="clearfix"></div><br> 353 <div class="clearfix"></div><br>
354 <div class="col-xs-12"> 354 <div class="col-xs-12">
355 <div class="col-md-6"> 355 <div class="col-md-6">
356 <div class="pull-left" style="width: 110px;"> 356 <div class="pull-left" style="width: 110px;">
357 <label class="new-input-label"><b>Username</b></label> 357 <label class="new-input-label"><b>Username</b></label>
358 </div> 358 </div>
359 <div class="pull-left" style="margin-left: 15px;"> 359 <div class="pull-left" style="margin-left: 15px;">
360 <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder=""> 360 <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder="">
361 </div> 361 </div>
362 <div class="clearfix"></div> 362 <div class="clearfix"></div>
363 </div> 363 </div>
364 <div class="col-md-6"> 364 <div class="col-md-6">
365 365
366 <div class="pull-left" style="width: 110px;"> 366 <div class="pull-left" style="width: 110px;">
367 <label class="new-input-label"><b>Password</b></label> 367 <label class="new-input-label"><b>Password</b></label>
368 </div> 368 </div>
369 <div class="pull-left" style="margin-left: 15px;"> 369 <div class="pull-left" style="margin-left: 15px;">
370 <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder=""> 370 <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder="">
371 </div> 371 </div>
372 <div class="clearfix"></div> 372 <div class="clearfix"></div>
373 </div> 373 </div>
374 </div> 374 </div>
375 <div class="clearfix"></div><br> 375 <div class="clearfix"></div><br>
376 <div class="col-xs-12"> 376 <div class="col-xs-12">
377 <div class="col-md-6"> 377 <div class="col-md-6">
378 <div class="pull-left" style="width: 110px;"> 378 <div class="pull-left" style="width: 110px;">
379 <label class="new-input-label"><b>Work Phone</b></label> 379 <label class="new-input-label"><b>Work Phone</b></label>
380 </div> 380 </div>
381 <div class="pull-left" style="margin-left: 15px;"> 381 <div class="pull-left" style="margin-left: 15px;">
382 <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder=""> 382 <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder="">
383 </div> 383 </div>
384 <div class="clearfix"></div> 384 <div class="clearfix"></div>
385 </div> 385 </div>
386 <div class="col-md-6"> 386 <div class="col-md-6">
387 387
388 <div class="pull-left" style="width: 110px;"> 388 <div class="pull-left" style="width: 110px;">
389 <label class="new-input-label"><b>Mobile Phone</b></label> 389 <label class="new-input-label"><b>Mobile Phone</b></label>
390 </div> 390 </div>
391 <div class="pull-left" style="margin-left: 15px;"> 391 <div class="pull-left" style="margin-left: 15px;">
392 <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder=""> 392 <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder="">
393 </div> 393 </div>
394 <div class="clearfix"></div> 394 <div class="clearfix"></div>
395 </div> 395 </div>
396 </div> 396 </div>
397 <div class="clearfix"></div><br> 397 <div class="clearfix"></div><br>
398 <div class="col-xs-12"> 398 <div class="col-xs-12">
399 <div class="col-md-12"> 399 <div class="col-md-12">
400 <div class="pull-left" style="width: 110px;"> 400 <div class="pull-left" style="width: 110px;">
401 <label class="new-input-label"><b>Address</b></label> 401 <label class="new-input-label"><b>Address</b></label>
402 </div> 402 </div>
403 <div class="pull-right" style="width: calc(100% - 123px);"> 403 <div class="pull-right" style="width: calc(100% - 123px);">
404 <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder=""> 404 <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder="">
405 </div> 405 </div>
406 <div class="clearfix"></div> 406 <div class="clearfix"></div>
407 </div> 407 </div>
408 </div> 408 </div>
409 <div class="clearfix"></div> 409 <div class="clearfix"></div>
410 <br/> 410 <br/>
411 <div class="col-xs-12"> 411 <div class="col-xs-12">
412 <div class="col-md-3"> 412 <div class="col-md-3">
413 <div class="pull-left my-toggle-switch"> 413 <div class="pull-left my-toggle-switch">
414 <div style="color: #ff9a01;">Price Email &nbsp &nbsp 414 <div style="color: #ff9a01;">Price Email &nbsp &nbsp
415 <toggle ng-model="data.priceEmail" size="customToogle"> 415 <toggle ng-model="data.priceEmail" size="customToogle">
416 </div> 416 </div>
417 </div> 417 </div>
418 <div class="clearfix"></div> 418 <div class="clearfix"></div>
419 </div> 419 </div>
420 <div class="col-md-3"> 420 <div class="col-md-3">
421 <div class="pull-left my-toggle-switch"> 421 <div class="pull-left my-toggle-switch">
422 <div style="color: #ff9a01;">Primary Contact &nbsp &nbsp 422 <div style="color: #ff9a01;">Primary Contact &nbsp &nbsp
423 <input type="checkbox" ng-click="checkPrimaryContact()" ng-model="primaryContact"> 423 <input type="checkbox" ng-click="checkPrimaryContact()" ng-model="primaryContact">
424 </div> 424 </div>
425 </div> 425 </div>
426 <div class="clearfix"></div> 426 <div class="clearfix"></div>
427 </div> 427 </div>
428 <div class="col-md-6"> 428 <div class="col-md-6">
429 <div class="pull-left" style="width: 110px;"> 429 <div class="pull-left" style="width: 110px;">
430 <label class="new-input-label"><b>Internal Note</b></label> 430 <label class="new-input-label"><b>Internal Note</b></label>
431 </div> 431 </div>
432 <div class="pull-left" style="width: calc(100% - 110px);"> 432 <div class="pull-left" style="width: calc(100% - 110px);">
433 <textarea name="message" ng-model="data.note" rows="4" cols="34"></textarea> 433 <textarea name="message" ng-model="data.note" rows="4" cols="34"></textarea>
434 </div> 434 </div>
435 </div> 435 </div>
436 <div class="clearfix"></div> 436 <div class="clearfix"></div>
437 </div> 437 </div>
438 <div class="clearfix"></div><br> 438 <div class="clearfix"></div><br>
439 </div> 439 </div>
440 </div> 440 </div>
441 <div class="clearfix"></div> 441 <div class="clearfix"></div>
442 </div> 442 </div>
443 </div> 443 </div>
444 </div> 444 </div>
445 </div> 445 </div>
446 <div class="modal-footer" style="border-top: 0;"> 446 <div class="modal-footer" style="border-top: 0;">
447 <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button> 447 <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button>
448 <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button> 448 <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button>
449 </div> 449 </div>
450 </div> 450 </div>
451 </div> 451 </div>
452 </form> 452 </form>
453 <div class="clearfix"></div> 453 <div class="clearfix"></div>
454 454
455 <div class="customConfirmPopBackdrop" id="confirm2"> 455 <div class="customConfirmPopBackdrop" id="confirm2">
456 <div class="customModalInner" style="max-width: 400px;"> 456 <div class="customModalInner" style="max-width: 400px;">
457 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 457 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
458 <table> 458 <table>
459 <tr> 459 <tr>
460 <td> 460 <td>
461 <img src="img/info.png" style="width: 50px;"> 461 <img src="img/info.png" style="width: 50px;">
462 </td> 462 </td>
463 <td> 463 <td>
464 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p> 464 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p>
465 </td> 465 </td>
466 </tr> 466 </tr>
467 </table> 467 </table>
468 </div> 468 </div>
469 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 469 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
470 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendMail()">Yes</button> 470 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendMail()">Yes</button>
471 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button> 471 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button>
472 </div> 472 </div>
473 </div> 473 </div>
474 </div> 474 </div>
475 475
476 <div class="customConfirmPopBackdrop" id="deleteVendor"> 476 <div class="customConfirmPopBackdrop" id="deleteVendor">
477 <div class="customModalInner" style="max-width: 400px;"> 477 <div class="customModalInner" style="max-width: 400px;">
478 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 478 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
479 <table> 479 <table>
480 <tr> 480 <tr>
481 <td> 481 <td>
482 <img src="img/info.png" style="width: 50px;"> 482 <img src="img/info.png" style="width: 50px;">
483 </td> 483 </td>
484 <td> 484 <td>
485 <p style="padding: 5px 10px; margin-bottom: 0;">{{statusMessage}}</p> 485 <p style="padding: 5px 10px; margin-bottom: 0;">{{statusMessage}}</p>
486 </td> 486 </td>
487 </tr> 487 </tr>
488 </table> 488 </table>
489 </div> 489 </div>
490 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 490 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
491 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="companyStatus()">Accept</button> 491 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="companyStatus()">Accept</button>
492 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelStatus()">Cancel</button> 492 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelStatus()">Cancel</button>
493 </div> 493 </div>
494 </div> 494 </div>
495 </div> 495 </div>
496 496
497 <div class="customConfirmPopBackdrop" id="customField"> 497 <div class="customConfirmPopBackdrop" id="customField">
498 <div class="customModalInner" style="max-width: 400px;"> 498 <div class="customModalInner" style="max-width: 400px;">
499 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 499 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
500 <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div> 500 <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div>
501 <div class="col-md-10"> 501 <div class="col-md-10">
502 <form> 502 <form>
503 Title:<br> 503 Title:<br>
504 <input type="text" name="firstname" ng-model="custom.title"><br> 504 <input type="text" name="firstname" ng-model="custom.title"><br>
505 Content:<br> 505 Content:<br>
506 <input type="text" name="lastname" ng-model="custom.content"> 506 <input type="text" name="lastname" ng-model="custom.content">
507 </form> 507 </form>
508 </div> 508 </div>
509 <div class="clearfix"></div> 509 <div class="clearfix"></div>
510 </div> 510 </div>
511 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 511 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
512 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptCustomField()">Accept</button> 512 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptCustomField()">Accept</button>
513 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelCustomField()">Cancel</button> 513 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelCustomField()">Cancel</button>
514 </div> 514 </div>
515 </div> 515 </div>
516 </div> 516 </div>
517 517
518 <div class="customConfirmPopBackdrop" id="toogleMail"> 518 <div class="customConfirmPopBackdrop" id="toogleMail">
519 <div class="customModalInner" style="max-width: 400px;"> 519 <div class="customModalInner" style="max-width: 400px;">
520 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 520 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
521 <table> 521 <table>
522 <tr> 522 <tr>
523 <!-- <td> 523 <!-- <td>
524 <img src="" style="width: 50px;"> 524 <img src="" style="width: 50px;">
525 </td> --> 525 </td> -->
526 <td> 526 <td>
527 <p style="padding: 5px 10px; margin-bottom: 0;text-align: center;">{{messageText}}</p> 527 <p style="padding: 5px 10px; margin-bottom: 0;text-align: center;">{{messageText}}</p>
528 </td> 528 </td>
529 </tr> 529 </tr>
530 </table> 530 </table>
531 </div> 531 </div>
532 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 532 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
533 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelToogle()">Cancel</button> 533 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelToogle()">Cancel</button>
534 </div> 534 </div>
535 </div> 535 </div>
536 </div> 536 </div>
537 537
538 <div class="customConfirmPopBackdrop" id="updateContact"> 538 <div class="customConfirmPopBackdrop" id="updateContact">
539 <div class="customModalInner" style="max-width: 400px;"> 539 <div class="customModalInner" style="max-width: 400px;">
540 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 540 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
541 <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div> 541 <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div>
542 <div class="col-md-10"> 542 <div class="col-md-10">
543 <form> 543 <form>
544 Title:<br> 544 Title:<br>
545 <input type="text" name="firstname" ng-model="updateData.title"><br> 545 <input type="text" name="firstname" ng-model="updateData.title"><br>
546 Content:<br> 546 Content:<br>
547 <input type="text" name="lastname" ng-model="updateData.content"> 547 <input type="text" name="lastname" ng-model="updateData.content">
548 </form> 548 </form>
549 </div> 549 </div>
550 <div class="clearfix"></div> 550 <div class="clearfix"></div>
551 </div> 551 </div>
552 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 552 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
553 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptUpdateField()">Accept</button> 553 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptUpdateField()">Accept</button>
554 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelUpdateField()">Cancel</button> 554 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelUpdateField()">Cancel</button>
555 </div> 555 </div>
556 </div> 556 </div>
557 </div> 557 </div>
558 558
559 <!-- Le javascript 559 <!-- Le javascript
560 ================================================== --> 560 ================================================== -->
561 <!-- Placed at the end of the document so the pages load faster --> 561 <!-- Placed at the end of the document so the pages load faster -->
562 <!-- <script 562 <!-- <script
563 CKEDITOR.replace( 'editor2', { 563 CKEDITOR.replace( 'editor2', {
564 height: 250, 564 height: 250,
565 extraPlugins: 'divarea' 565 extraPlugins: 'divarea'
566 } ); 566 } );
567 </script> --> 567 </script> -->
568 568
1 { 1 {
2 "name": "acufuel", 2 "name": "acufuel",
3 "description": "", 3 "description": "",
4 "main": "index.js", 4 "main": "index.js",
5 "authors": [ 5 "authors": [
6 "Rishav <rsingla.rishu@gmail.com>" 6 "Rishav <rsingla.rishu@gmail.com>"
7 ], 7 ],
8 "license": "ISC", 8 "license": "ISC",
9 "homepage": "", 9 "homepage": "",
10 "ignore": [ 10 "ignore": [
11 "**/.*", 11 "**/.*",
12 "node_modules", 12 "node_modules",
13 "bower_components", 13 "bower_components",
14 "test", 14 "test",
15 "tests" 15 "tests"
16 ], 16 ],
17 "dependencies": { 17 "dependencies": {
18 "angular": "^1.6.2", 18 "angular": "^1.6.4",
19 "angular-animate": "^1.6.2", 19 "angular-animate": "^1.6.2",
20 "angular-route": "^1.6.2", 20 "angular-route": "^1.6.2",
21 "jquery": "^3.1.1", 21 "jquery": "^3.1.1",
22 "animate.css": "^3.5.2", 22 "animate.css": "^3.5.2",
23 "bootstrap": "^3.3.7", 23 "bootstrap": "^3.3.7",
24 "font-awesome": "fontawesome#^4.7.0", 24 "font-awesome": "fontawesome#^4.7.0",
25 "angular-ui-router": "^0.4.2", 25 "angular-ui-router": "^0.4.2",
26 "bootstrap-toggle": "^2.2.2", 26 "bootstrap-toggle": "^2.2.2",
27 "fullcalendar": "^3.2.0", 27 "fullcalendar": "^3.2.0",
28 "toastr": "^2.1.3", 28 "toastr": "^2.1.3",
29 "angular-bootstrap": "^2.5.0", 29 "angular-bootstrap": "^2.5.0",
30 "jqGrid": "^5.2.0", 30 "jqGrid": "^5.2.0",
31 "Autocomplete": "autocomplete#^2.0.5", 31 "Autocomplete": "autocomplete#^2.0.5",
32 "DataTables": "~1.10.15", 32 "DataTables": "~1.10.15",
33 "angular-cookies": "~1.6.4", 33 "angular-cookies": "~1.6.4",
34 "angular-resource": "~1.6.4", 34 "angular-resource": "~1.6.4",
35 "angular-xeditable": "~0.7.1", 35 "angular-xeditable": "~0.7.1",
36 "angular-bootstrap-toggle": "~0.1.2", 36 "angular-bootstrap-toggle": "~0.1.2",
37 "angular-ui-select2": "^0.0.5", 37 "angular-ui-select2": "^0.0.5",
38 "angular-ckeditor": "^1.0.3", 38 "angular-ckeditor": "^1.0.3",
39 "angular-ui-calendar": "^1.0.2", 39 "angular-ui-calendar": "^1.0.2",
40 "angular-dragdrop": "^1.0.13" 40 "angular-dragdrop": "^1.0.13",
41 "angular-nvd3": "^1.0.9"
42 },
43 "resolutions": {
44 "angular": "^1.x"
41 } 45 }
42 } 46 }
43 47