Commit e95d89b77f5b51cf5ec5ec8c74bfc65bd6c5fdbb

Authored by Swarn Singh
1 parent a55ef20b57
Exists in master

integrate editor on update fuel manager page, fix enter fuel order page

1 <html ng-app="acufuel"> 1 <html ng-app="acufuel">
2 <head lang="en"> 2 <head lang="en">
3 <meta charset="utf-8"> 3 <meta charset="utf-8">
4 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 4 <meta name="viewport" content="width=device-width, initial-scale=1.0">
5 <meta name="description" content=""> 5 <meta name="description" content="">
6 <meta name="author" content=""> 6 <meta name="author" content="">
7 <title>Acufuel</title> 7 <title>Acufuel</title>
8 <!-- styles --> 8 <!-- styles -->
9 <link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.10.0.custom.min.css"/> 9 <link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.10.0.custom.min.css"/>
10 <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"/> 10 <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"/>
11 <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css"/> 11 <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css"/>
12 <link rel="stylesheet" href="bower_components/bootstrap-toggle/css/bootstrap-toggle.min.css" /> 12 <link rel="stylesheet" href="bower_components/bootstrap-toggle/css/bootstrap-toggle.min.css" />
13 <!-- <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.min.css"/> 13 <!-- <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.min.css"/>
14 <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.print.min.css"/> --> 14 <link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.print.min.css"/> -->
15 <link rel="stylesheet" href="bower_components/toastr/toastr.min.css"/> 15 <link rel="stylesheet" href="bower_components/toastr/toastr.min.css"/>
16 <link rel="stylesheet" href="bower_components/angular-bootstrap/ui-bootstrap-csp.css"/> 16 <link rel="stylesheet" href="bower_components/angular-bootstrap/ui-bootstrap-csp.css"/>
17 <link href="bower_components/jqGrid/css/ui.jqgrid.css" rel="stylesheet"> 17 <link href="bower_components/jqGrid/css/ui.jqgrid.css" rel="stylesheet">
18 <link href="bower_components/angular-xeditable/dist/css/xeditable.css" rel="stylesheet"> 18 <link href="bower_components/angular-xeditable/dist/css/xeditable.css" rel="stylesheet">
19 <link href="bower_components/angular-bootstrap-toggle/dist/angular-bootstrap-toggle.min.css" 19 <link href="bower_components/angular-bootstrap-toggle/dist/angular-bootstrap-toggle.min.css"
20 rel="stylesheet"> 20 rel="stylesheet">
21 21
22 22
23 <link rel="stylesheet" href="css/main.css"/> 23 <link rel="stylesheet" href="css/main.css"/>
24 <link rel="stylesheet" href="css/base-admin-3.css"/> 24 <link rel="stylesheet" href="css/base-admin-3.css"/>
25 <link rel="stylesheet" href="css/base-admin-3-responsive.css"/> 25 <link rel="stylesheet" href="css/base-admin-3-responsive.css"/>
26 <link rel="stylesheet" href="css/custom.css"/> 26 <link rel="stylesheet" href="css/custom.css"/>
27 27
28 <link href="css/bootstrap-responsive.min.css" rel="stylesheet"> 28 <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"> 29 <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"> 30 <link href="js/plugins/cirque/cirque.css" rel="stylesheet">
31 31
32 <link href="css/pages/dashboard.css" rel="stylesheet"> 32 <link href="css/pages/dashboard.css" rel="stylesheet">
33 <link href="js/plugins/faq/faq.css" rel="stylesheet"> 33 <link href="js/plugins/faq/faq.css" rel="stylesheet">
34 <link href="css/pages/plans.css" rel="stylesheet"> 34 <link href="css/pages/plans.css" rel="stylesheet">
35 35
36 <link href="js/plugins/lightbox/themes/evolution-dark/jquery.lightbox.css" rel="stylesheet"> 36 <link href="js/plugins/lightbox/themes/evolution-dark/jquery.lightbox.css" rel="stylesheet">
37 <link href="js/plugins/msgGrowl/css/msgGrowl.css" rel="stylesheet"> 37 <link href="js/plugins/msgGrowl/css/msgGrowl.css" rel="stylesheet">
38 <link href="js/plugins/msgbox/jquery.msgbox.css" rel="stylesheet"> 38 <link href="js/plugins/msgbox/jquery.msgbox.css" rel="stylesheet">
39 <link href="css/pages/pricing.css" rel="stylesheet"> 39 <link href="css/pages/pricing.css" rel="stylesheet">
40 <link href="css/pages/reports.css" rel="stylesheet"> 40 <link href="css/pages/reports.css" rel="stylesheet">
41 41
42 <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" /> 42 <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
43 43
44 <link rel="stylesheet" type="text/css" href="css/ngTable.css"> 44 <link rel="stylesheet" type="text/css" href="css/ngTable.css">
45 <link rel="stylesheet" href="bower_components/select2/select2.css"> 45 <link rel="stylesheet" href="bower_components/select2/select2.css">
46 46
47 <link rel="stylesheet" type="text/css" href="css/fullcalender.css"> 47 <!-- <link rel="stylesheet" type="text/css" href="css/fullcalender.css">
48 <link rel="stylesheet" type="text/css" href="css/fullcalenderprint.css"> 48 <link rel="stylesheet" type="text/css" href="css/fullcalenderprint.css"> -->
49 49
50 <!-- <link rel="stylesheet"; href="https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.css"> --> 50 <!-- <link rel="stylesheet"; href="https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.css"> -->
51 51
52 <!-- <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' />
54 <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>
56 <script src='https://fullcalendar.io/js/fullcalendar-3.4.0/lib/jquery-ui.min.js'></script> -->
57
58
52 </head> 59 </head>
53 <body> 60 <body>
54 <!-- views --> 61 <!-- views -->
55 62
56 <!-- scripts --> 63 <!-- scripts -->
57 64
58 <script src="bower_components/jquery/dist/jquery.min.js"></script> 65 <script src="bower_components/jquery/dist/jquery.min.js"></script>
59 <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script> 66 <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
60 <script src="js/libs/jquery-ui-1.10.0.custom.min.js"></script> 67 <script src="js/libs/jquery-ui-1.10.0.custom.min.js"></script>
61 <!--<script src="js/plugins/flot/jquery.flot.js"></script> 68 <!--<script src="js/plugins/flot/jquery.flot.js"></script>
62 <script src="js/plugins/flot/jquery.flot.pie.js"></script> 69 <script src="js/plugins/flot/jquery.flot.pie.js"></script>
63 <script src="js/plugins/flot/jquery.flot.resize.js"></script> 70 <script src="js/plugins/flot/jquery.flot.resize.js"></script>
64 <script src="js/plugins/flot/jquery.flot.orderBars.js"></script>--> 71 <script src="js/plugins/flot/jquery.flot.orderBars.js"></script>-->
65 <script src="js/plugins/hoverIntent/jquery.hoverIntent.minified.js"></script> 72 <script src="js/plugins/hoverIntent/jquery.hoverIntent.minified.js"></script>
66 <script src="js/plugins/lightbox/jquery.lightbox.min.js"></script> 73 <script src="js/plugins/lightbox/jquery.lightbox.min.js"></script>
67 <script src="js/plugins/validate/jquery.validate.js"></script> 74 <script src="js/plugins/validate/jquery.validate.js"></script>
68 <script src="js/plugins/msgbox/jquery.msgbox.min.js"></script> 75 <script src="js/plugins/msgbox/jquery.msgbox.min.js"></script>
69 76
70 <script src="bower_components/angular/angular.min.js"></script> 77 <script src="bower_components/angular/angular.min.js"></script>
71 <script src="bower_components/angular-route/angular-route.js"></script> 78 <script src="bower_components/angular-route/angular-route.js"></script>
72 <script src="bower_components/angular-cookies/angular-cookies.min.js"></script> 79 <script src="bower_components/angular-cookies/angular-cookies.min.js"></script>
73 <script src="bower_components/angular-resource/angular-resource.min.js"></script> 80 <script src="bower_components/angular-resource/angular-resource.min.js"></script>
74 <script src="bower_components/angular-animate/angular-animate.js"></script> 81 <script src="bower_components/angular-animate/angular-animate.js"></script>
75 <script src="bower_components/bootstrap/dist/js/bootstrap.js"></script> 82 <script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
76 <script src="bower_components/bootstrap-toggle/js/bootstrap-toggle.min.js"></script> 83 <script src="bower_components/bootstrap-toggle/js/bootstrap-toggle.min.js"></script>
77 <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script> 84 <script src="bower_components/angular-ui-router/release/angular-ui-router.min.js"></script>
78 <script src='bower_components/moment/min/moment.min.js'></script> 85 <script src='bower_components/moment/min/moment.min.js'></script>
79 <!-- <script src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script> --> 86 <!-- <script src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script> -->
80 <script src='bower_components/toastr/toastr.min.js'></script> 87 <script src='bower_components/toastr/toastr.min.js'></script>
81 <script src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script> 88 <script src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script>
82 <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> 89 <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
83 <script src="bower_components/jqGrid/js/i18n/grid.locale-en.js"></script> 90 <script src="bower_components/jqGrid/js/i18n/grid.locale-en.js"></script>
84 <script src="bower_components/jqGrid/js/jquery.jqGrid.min.js"></script> 91 <script src="bower_components/jqGrid/js/jquery.jqGrid.min.js"></script>
85 <script src="bower_components/angular-xeditable/dist/js/xeditable.js"></script> 92 <script src="bower_components/angular-xeditable/dist/js/xeditable.js"></script>
86 <script src="bower_components/angular-bootstrap-toggle/dist/angular-bootstrap-toggle.min.js"></script> 93 <script src="bower_components/angular-bootstrap-toggle/dist/angular-bootstrap-toggle.min.js"></script>
87 <script src="bower_components/select2/select2.js"></script> 94 <script src="bower_components/select2/select2.js"></script>
88 <script src="bower_components/angular-ui-select2/src/select2.js"></script> 95 <script src="bower_components/angular-ui-select2/src/select2.js"></script>
89 96 <script src="bower_components/angular-ckeditor/angular-ckeditor.js"></script>
90 97
91 <!-- <script src="https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.js"></script> --> 98 <!-- <script src="https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.js"></script> -->
92 99
93 100
94 <!-- 101 <!--
95 <script src="scripts/inspinia.js"></script> 102 <script src="scripts/inspinia.js"></script>
96 <script src="plugins/iCheck/icheck.min.js"></script> 103 <script src="plugins/iCheck/icheck.min.js"></script>
97 --> 104 -->
98 105
99 <!-- <script src="./js/Application.js"></script> 106 <!-- <script src="./js/Application.js"></script>
100 <script src="js/charts/area.js"></script> 107 <script src="js/charts/area.js"></script>
101 <script src="js/charts/donut.js"></script> 108 <script src="js/charts/donut.js"></script>
102 <script src="js/charts/pie.js"></script> 109 <script src="js/charts/pie.js"></script>
103 <script src="js/charts/bar.js"></script> 110 <script src="js/charts/bar.js"></script>
104 <script src="js/demo/validation.js"></script> 111 <script src="js/demo/validation.js"></script>
105 <script src="js/charts/line.js"></script> --> 112 <script src="js/charts/line.js"></script> -->
106 <script src="js/demo/faq.js"></script> 113 <script src="js/demo/faq.js"></script>
107 <script src="js/plugins/faq/faq.js"></script> 114 <script src="js/plugins/faq/faq.js"></script>
108 <script src="js/demo/gallery.js"></script> 115 <script src="js/demo/gallery.js"></script>
109 <script src="js/demo/sliders.js"></script> 116 <script src="js/demo/sliders.js"></script>
110 <script src="js/plugins/msgGrowl/js/msgGrowl.js"></script> 117 <script src="js/plugins/msgGrowl/js/msgGrowl.js"></script>
111 <script src="js/demo/notifications.js"></script> 118 <script src="js/demo/notifications.js"></script>
112 119
113 <script src="js/ngTable.js"></script> 120 <script src="js/ngTable.js"></script>
114 121
115 <script src="js/fullcalender.js"></script> 122 <!-- <script src="js/fullcalender.js"></script> -->
116 123
117 <script src="http://cdn.ckeditor.com/4.6.1/standard-all/ckeditor.js"></script> 124 <script src="http://cdn.ckeditor.com/4.6.1/standard-all/ckeditor.js"></script>
118 <script src="https://code.highcharts.com/maps/highmaps.js"></script> 125 <script src="https://code.highcharts.com/maps/highmaps.js"></script>
119 <script src="https://code.highcharts.com/maps/modules/data.js"></script> 126 <script src="https://code.highcharts.com/maps/modules/data.js"></script>
120 <script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script> 127 <script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script>
121 <!-- Controllers --> 128 <!-- Controllers -->
122 <script src="js/app.js"></script> 129 <script src="js/app.js"></script>
123 <script src="js/app.constant.js"></script> 130 <script src="js/app.constant.js"></script>
124 <script src="partials/login/login.controller.js"></script> 131 <script src="partials/login/login.controller.js"></script>
125 <script src="partials/customers/customers.controller.js"></script> 132 <script src="partials/customers/customers.controller.js"></script>
126 <script src="partials/analytics/analytics.controller.js"></script> 133 <script src="partials/analytics/analytics.controller.js"></script>
127 <script src="partials/account/account.controller.js"></script> 134 <script src="partials/account/account.controller.js"></script>
128 <script src="partials/elements/elements.controller.js"></script> 135 <script src="partials/elements/elements.controller.js"></script>
129 <script src="partials/error/error.controller.js"></script> 136 <script src="partials/error/error.controller.js"></script>
130 <script src="partials/faq/faq.controller.js"></script> 137 <script src="partials/faq/faq.controller.js"></script>
131 <script src="partials/forms/forms.controller.js"></script> 138 <script src="partials/forms/forms.controller.js"></script>
132 <script src="partials/fuelManager/fuelManager.controller.js"></script> 139 <script src="partials/fuelManager/fuelManager.controller.js"></script>
133 <script src="partials/pricing/pricing.controller.js"></script> 140 <script src="partials/pricing/pricing.controller.js"></script>
134 <script src="partials/reports/reports.controller.js"></script> 141 <script src="partials/reports/reports.controller.js"></script>
135 <script src="partials/scheduler/scheduler.controller.js"></script> 142 <script src="partials/scheduler/scheduler.controller.js"></script>
136 <script src="partials/signup/signup.controller.js"></script> 143 <script src="partials/signup/signup.controller.js"></script>
137 <script src="partials/updateFuelManager/updateFuelManager.controller.js"></script> 144 <script src="partials/updateFuelManager/updateFuelManager.controller.js"></script>
138 <script src="partials/viewCompany/viewCompany.controller.js"></script> 145 <script src="partials/viewCompany/viewCompany.controller.js"></script>
139 <script src="partials/dashboard/dashboard.controller.js"></script> 146 <script src="partials/dashboard/dashboard.controller.js"></script>
140 <script src="partials/fuelOrders/fuelOrders.controller.js"></script> 147 <script src="partials/fuelOrders/fuelOrders.controller.js"></script>
141 <script src="partials/DispatchFuel/DispatchFuel.controller.js"></script> 148 <script src="partials/DispatchFuel/DispatchFuel.controller.js"></script>
142 <script src="partials/searchDispatchFuel/searchDispatchFuel.controller.js"></script> 149 <script src="partials/searchDispatchFuel/searchDispatchFuel.controller.js"></script>
143 <script src="partials/Accept/Accept.controller.js"></script> 150 <script src="partials/Accept/Accept.controller.js"></script>
144 <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> --> 151 <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> -->
145 <script src="partials/ContactView/ContactView.controller.js"></script> 152 <script src="partials/ContactView/ContactView.controller.js"></script>
146 <script src="partials/FuelVendors/FuelVendors.controller.js"></script> 153 <script src="partials/FuelVendors/FuelVendors.controller.js"></script>
147 <script src="partials/delselected/delselected.controller.js"></script> 154 <script src="partials/delselected/delselected.controller.js"></script>
148 <script src="partials/pricingcontact/pricingcontact.controller.js"></script> 155 <script src="partials/pricingcontact/pricingcontact.controller.js"></script>
149 <script src="partials/viewcontact/viewcontact.controller.js"></script> 156 <script src="partials/viewcontact/viewcontact.controller.js"></script>
150 <script src="partials/viewFuelVendor/viewFuelVendor.controller.js"></script> 157 <script src="partials/viewFuelVendor/viewFuelVendor.controller.js"></script>
151 <script src="partials/accountSetting/accountSetting.Controller.js"></script> 158 <script src="partials/accountSetting/accountSetting.Controller.js"></script>
152 <script src="partials/viewVendorContact/viewVendorContact.Controller.js"></script> 159 <script src="partials/viewVendorContact/viewVendorContact.Controller.js"></script>
153 <script src="partials/enterFuelOrder/enterFuelOrder.controller.js"></script> 160 <script src="partials/enterFuelOrder/enterFuelOrder.controller.js"></script>
154 161
155 <script src="partials/main/main.controller.js"></script> 162 <script src="partials/main/main.controller.js"></script>
156 <div ui-view></div> 163 <div ui-view></div>
157 <!-- End controllers --> 164 <!-- End controllers -->
158 165
159 166
160 <!-- services --> 167 <!-- services -->
161 <script src="partials/login/login.service.js"></script> 168 <script src="partials/login/login.service.js"></script>
162 <script src="partials/customers/customers.service.js"></script> 169 <script src="partials/customers/customers.service.js"></script>
163 <script src="partials/analytics/analytics.service.js"></script> 170 <script src="partials/analytics/analytics.service.js"></script>
164 <script src="partials/account/account.service.js"></script> 171 <script src="partials/account/account.service.js"></script>
165 <script src="partials/elements/elements.service.js"></script> 172 <script src="partials/elements/elements.service.js"></script>
166 <script src="partials/error/error.service.js"></script> 173 <script src="partials/error/error.service.js"></script>
167 <script src="partials/faq/faq.service.js"></script> 174 <script src="partials/faq/faq.service.js"></script>
168 <script src="partials/forms/forms.service.js"></script> 175 <script src="partials/forms/forms.service.js"></script>
169 <script src="partials/fuelManager/fuelManager.service.js"></script> 176 <script src="partials/fuelManager/fuelManager.service.js"></script>
170 <script src="partials/pricing/pricing.service.js"></script> 177 <script src="partials/pricing/pricing.service.js"></script>
171 <script src="partials/reports/reports.service.js"></script> 178 <script src="partials/reports/reports.service.js"></script>
172 <script src="partials/scheduler/scheduler.service.js"></script> 179 <script src="partials/scheduler/scheduler.service.js"></script>
173 <script src="partials/signup/signup.service.js"></script> 180 <script src="partials/signup/signup.service.js"></script>
174 <script src="partials/updateFuelManager/updateFuelManager.service.js"></script> 181 <script src="partials/updateFuelManager/updateFuelManager.service.js"></script>
175 <script src="partials/viewCompany/viewCompany.service.js"></script> 182 <script src="partials/viewCompany/viewCompany.service.js"></script>
176 <script src="partials/dashboard/dashboard.service.js"></script> 183 <script src="partials/dashboard/dashboard.service.js"></script>
177 <script src="partials/fuelOrders/fuelOrders.service.js"></script> 184 <script src="partials/fuelOrders/fuelOrders.service.js"></script>
178 <script src="partials/DispatchFuel/DispatchFuel.service.js"></script> 185 <script src="partials/DispatchFuel/DispatchFuel.service.js"></script>
179 <script src="partials/searchDispatchFuel/searchDispatchFuel.service.js"></script> 186 <script src="partials/searchDispatchFuel/searchDispatchFuel.service.js"></script>
180 <script src="partials/Accept/Accept.service.js"></script> 187 <script src="partials/Accept/Accept.service.js"></script>
181 <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> --> 188 <!-- <script src="partials/AircraftList/AircraftList.controller.js"></script> -->
182 <script src="partials/ContactView/ContactView.service.js"></script> 189 <script src="partials/ContactView/ContactView.service.js"></script>
183 <script src="partials/FuelVendors/FuelVendors.service.js"></script> 190 <script src="partials/FuelVendors/FuelVendors.service.js"></script>
184 <script src="partials/delselected/delselected.service.js"></script> 191 <script src="partials/delselected/delselected.service.js"></script>
185 <script src="partials/pricingcontact/pricingcontact.service.js"></script> 192 <script src="partials/pricingcontact/pricingcontact.service.js"></script>
186 <script src="partials/viewcontact/viewcontact.service.js"></script> 193 <script src="partials/viewcontact/viewcontact.service.js"></script>
187 <script src="partials/viewFuelVendor/viewFuelVendor.service.js"></script> 194 <script src="partials/viewFuelVendor/viewFuelVendor.service.js"></script>
188 <script src="partials/accountSetting/accountSetting.Service.js"></script> 195 <script src="partials/accountSetting/accountSetting.Service.js"></script>
189 <script src="partials/viewVendorContact/viewVendorContact.Service.js"></script> 196 <script src="partials/viewVendorContact/viewVendorContact.Service.js"></script>
190 <script src="partials/enterFuelOrder/enterFuelOrder.service.js"></script> 197 <script src="partials/enterFuelOrder/enterFuelOrder.service.js"></script>
191 198
192 <script src="partials/main/main.service.js"></script> 199 <script src="partials/main/main.service.js"></script>
193 200 <script src='https://fullcalendar.io/js/fullcalendar-3.4.0/fullcalendar.min.js'></script>
194 201
195 </body> 202 </body>
196 </html> 203 </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']) 4 angular.module('acufuel', ['ngCookies', 'ngResource', 'ui.router', 'ngAnimate', 'ui.bootstrap', 'xeditable', 'ui.toggle', 'ngTable', 'ui.select2', 'ckeditor'])
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/enterFuelOrder/enterFuelOrder.controller.js
1 'use strict'; 1 'use strict';
2 2
3 angular.module('acufuel') 3 angular.module('acufuel')
4 4
5 .controller('enterFuelOrderController', ['$scope', '$rootScope', '$uibModal', '$filter', '$http', 'enterFuelOrderService', enterFuelOrderController]); 5 .controller('enterFuelOrderController', ['$scope', '$rootScope', '$uibModal', '$filter', '$http', 'enterFuelOrderService', enterFuelOrderController]);
6 6
7 function enterFuelOrderController($scope, $rootScope, $uibModal, $filter, $http, enterFuelOrderService) { 7 function enterFuelOrderController($scope, $rootScope, $uibModal, $filter, $http, enterFuelOrderService) {
8 $scope.showLoader = true; 8 $scope.showLoader = true;
9 9
10 $scope.companyList = {}; 10 $scope.companyList = {};
11 11
12 enterFuelOrderService.getAllCompanies().then(function(result) { 12 enterFuelOrderService.getAllCompanies().then(function(result) {
13 $scope.showLoader = false; 13 $scope.showLoader = false;
14 $scope.companyList = result; 14 $scope.companyList = result;
15 }) 15 })
16 16
17 $scope.order = {}; 17 $scope.order = {};
18 $scope.dispatchOrder = {}; 18 $scope.dispatchOrder = {};
19 $scope.dispatchOrder.fuelOrderObj = []; 19 $scope.dispatchOrder.fuelOrderList = [];
20 $scope.order.upliftDate = ''; 20 $scope.order.upliftDate = '';
21 $scope.order.departingDate = ''; 21 $scope.order.departingDate = '';
22 $scope.selectedCompanyName = ''; 22 $scope.selectedCompanyName = '';
23 $scope.selectedCompanyId = ''; 23 $scope.selectedCompanyId = '';
24 $scope.marginId = ''; 24 $scope.marginId = '';
25 25
26 enterFuelOrderService.getFuelPricingNew().then(function(margins) { 26 enterFuelOrderService.getFuelPricingNew().then(function(margins) {
27 $scope.marginList = margins; 27 $scope.marginList = margins;
28 //console.log('$scope.marginList', $scope.marginList); 28 //console.log('$scope.marginList', $scope.marginList);
29 }) 29 })
30 30
31 $scope.getAircraft = function(company){ 31 $scope.getAircraft = function(company){
32 $scope.selectedCompanyName = company; 32 $scope.selectedCompanyName = company;
33 $scope.showLoader = true; 33 $scope.showLoader = true;
34 for (var i = 0; i < $scope.companyList.length; i++) { 34 for (var i = 0; i < $scope.companyList.length; i++) {
35 if ($scope.companyList[i].companyName == company) { 35 if ($scope.companyList[i].companyName == company) {
36 $scope.selectedCompanyId = $scope.companyList[i].id; 36 $scope.selectedCompanyId = $scope.companyList[i].id;
37 $scope.marginId = $scope.companyList[i].margin.id; 37 $scope.marginId = $scope.companyList[i].margin.id;
38 if ($scope.selectedCompanyId != '') { 38 if ($scope.selectedCompanyId != '') {
39 enterFuelOrderService.getAircraft($scope.selectedCompanyId).then(function(aircraft) { 39 enterFuelOrderService.getAircraft($scope.selectedCompanyId).then(function(aircraft) {
40 $scope.aircraftList = aircraft; 40 $scope.aircraftList = aircraft;
41 }) 41 })
42 } 42 }
43 if ($scope.marginId != '') { 43 if ($scope.marginId != '') {
44 enterFuelOrderService.getJetTiers($scope.marginId).then(function(tiers) { 44 enterFuelOrderService.getJetTiers($scope.marginId).then(function(tiers) {
45 $scope.tierList = tiers; 45 $scope.tierList = tiers;
46 $scope.showLoader = false; 46 $scope.showLoader = false;
47 }) 47 })
48 }else{ 48 }else{
49 $scope.showLoader = false; 49 $scope.showLoader = false;
50 } 50 }
51 } 51 }
52 } 52 }
53 53
54 } 54 }
55 55
56 $scope.dispatchFuel = function(){ 56 $scope.dispatchFuel = function(){
57 $scope.showLoader = true;
57 $scope.order.companyId = $scope.selectedCompanyId; 58 $scope.order.companyId = $scope.selectedCompanyId;
58 if ($scope.order.upliftDate != '') { 59 if ($scope.order.upliftDate != '') {
59 $scope.order.upliftDate = new Date($scope.order.upliftDate); 60 $scope.order.upliftDate = new Date($scope.order.upliftDate);
60 $scope.order.upliftDate = $scope.order.upliftDate.getTime(); 61 $scope.order.upliftDate = $scope.order.upliftDate.getTime();
61 } 62 }
62 if ($scope.order.departingDate != '') { 63 if ($scope.order.departingDate != '') {
63 $scope.order.departingDate = new Date($scope.order.departingDate); 64 $scope.order.departingDate = new Date($scope.order.departingDate);
64 $scope.order.departingDate = $scope.order.departingDate.getTime(); 65 $scope.order.departingDate = $scope.order.departingDate.getTime();
65 } 66 }
66 $scope.dispatchOrder.fuelOrderObj.push($scope.order); 67 $scope.dispatchOrder.fuelOrderList.push($scope.order);
67 console.log('$scope.order', $scope.dispatchOrder); 68 console.log('$scope.order', $scope.dispatchOrder);
68 enterFuelOrderService.dispathFuelOrder($scope.dispatchOrder).then(function(result) { 69 enterFuelOrderService.dispathFuelOrder($scope.dispatchOrder).then(function(result) {
69 console.log('result', result); 70 console.log('result', result);
71 $scope.showLoader = false;
72 $scope.order = {};
73 toastr.success('Fuel Order Dispatched Successfully', {
74 closeButton: true
75 })
70 }) 76 })
71 } 77 }
72 78
73 } 79 }
app/partials/scheduler/scheduler.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('schedulerController', ['$scope', function($scope) { 6 .controller('schedulerController', ['$scope', function($scope) {
7 7
8 $scope.test = "Testing..."; 8 $scope.test = "Testing...";
9 9
10 $(document).ready(function() {
11 10
12 $('#calendar').fullCalendar({ 11 /*$('#calendar').fullCalendar({
13 header: { 12 header: {
14 left: 'prev,next today', 13 left: 'prev,next today',
15 center: 'title', 14 center: 'title',
16 right: 'month,agendaWeek,agendaDay,listWeek' 15 right: 'month,agendaWeek,agendaDay,listWeek'
17 }, 16 },
18 defaultDate: '2017-05-12', 17 defaultDate: '2017-05-12',
19 navLinks: true, // can click day/week names to navigate views 18 navLinks: true, // can click day/week names to navigate views
20 editable: true, 19 editable: true,
21 eventLimit: true, // allow "more" link when too many events 20 eventLimit: true, // allow "more" link when too many events
22 events: [ 21 events: [
23 { 22 {
24 title: 'All Day Event', 23 title: 'All Day Event',
25 start: '2017-05-01' 24 start: '2017-05-01'
26 }, 25 },
27 { 26 {
28 title: 'Long Event', 27 title: 'Long Event',
29 start: '2017-05-07', 28 start: '2017-05-07',
30 end: '2017-05-10' 29 end: '2017-05-10'
31 }, 30 },
32 { 31 {
33 id: 999, 32 id: 999,
34 title: 'Repeating Event', 33 title: 'Repeating Event',
35 start: '2017-05-09T16:00:00' 34 start: '2017-05-09T16:00:00'
36 }, 35 },
37 { 36 {
38 id: 999, 37 id: 999,
39 title: 'Repeating Event', 38 title: 'Repeating Event',
40 start: '2017-05-16T16:00:00' 39 start: '2017-05-16T16:00:00'
41 }, 40 },
42 { 41 {
43 title: 'Conference', 42 title: 'Conference',
44 start: '2017-05-11', 43 start: '2017-05-11',
45 end: '2017-05-13' 44 end: '2017-05-13'
46 }, 45 },
47 { 46 {
48 title: 'Meeting', 47 title: 'Meeting',
49 start: '2017-05-12T10:30:00', 48 start: '2017-05-12T10:30:00',
50 end: '2017-05-12T12:30:00' 49 end: '2017-05-12T12:30:00'
51 }, 50 },
52 { 51 {
53 title: 'Lunch', 52 title: 'Lunch',
54 start: '2017-05-12T12:00:00' 53 start: '2017-05-12T12:00:00'
55 }, 54 },
56 { 55 {
57 title: 'Meeting', 56 title: 'Meeting',
58 start: '2017-05-12T14:30:00' 57 start: '2017-05-12T14:30:00'
59 }, 58 },
60 { 59 {
61 title: 'Happy Hour', 60 title: 'Happy Hour',
62 start: '2017-05-12T17:30:00' 61 start: '2017-05-12T17:30:00'
63 }, 62 },
64 { 63 {
65 title: 'Dinner', 64 title: 'Dinner',
66 start: '2017-05-12T20:00:00' 65 start: '2017-05-12T20:00:00'
67 }, 66 },
68 { 67 {
69 title: 'Birthday Party', 68 title: 'Birthday Party',
70 start: '2017-05-13T07:00:00' 69 start: '2017-05-13T07:00:00'
71 }, 70 },
72 { 71 {
73 title: 'Click for Google', 72 title: 'Click for Google',
74 start: '2017-05-28' 73 start: '2017-05-28'
75 } 74 }
76 ] 75 ]
77 }); 76 });
78 77
79 }); 78 });*/
80 79
81 80
82 }]); 81 }]);
83 82
84 83
app/partials/scheduler/scheduler.html
1 <style type="text/css"> 1 <style type="text/css">
2 .newUlView { 2 .newUlView {
3 padding: 5px; 3 padding: 5px;
4 margin: 3px; 4 margin: 3px;
5 } 5 }
6 .subnavbar .mainnav > li:nth-child(4) > a{ 6 .subnavbar .mainnav > li:nth-child(4) > a{
7 color: #ff9900; 7 color: #ff9900;
8 } 8 }
9 .fc button, .fc-button-group, .fc-time-grid .fc-event .fc-time span{ 9 .fc button, .fc-button-group, .fc-time-grid .fc-event .fc-time span{
10 display: block; 10 display: block;
11 } 11 }
12 .fc-state-default{ 12 .fc-state-default{
13 background-color: #fff; 13 background-color: #fff;
14 background-image: none; 14 background-image: none;
15 } 15 }
16 .fc-state-active, .fc-state-down{ 16 .fc-state-active, .fc-state-down{
17 box-shadow: none; 17 box-shadow: none;
18 color: #fff; 18 color: #fff;
19 background-color: #ff9900; 19 background-color: #ff9900;
20 } 20 }
21
22
23 /*#wrap {
24 width: 1100px;
25 margin: 0 auto;
26 }
27
28 #external-events {
29 float: left;
30 width: 150px;
31 padding: 0 10px;
32 border: 1px solid #ccc;
33 background: #eee;
34 text-align: left;
35 }
36
37 #external-events h4 {
38 font-size: 16px;
39 margin-top: 0;
40 padding-top: 1em;
41 }
42
43 #external-events .fc-event {
44 margin: 10px 0;
45 cursor: pointer;
46 }
47
48 #external-events p {
49 margin: 1.5em 0;
50 font-size: 11px;
51 color: #666;
52 }
53
54 #external-events p input {
55 margin: 0;
56 vertical-align: middle;
57 }
58
59 #calendar {
60 float: right;
61 width: 900px;
62 }*/
21 </style> 63 </style>
22 <div class="main"> 64 <div class="main">
23 <div class="container"> 65 <div class="container">
24 <div class="row"> 66 <div class="row">
25 <div class="col-md-3 col-xs-12"> 67 <div class="col-xs-12">
26 <div class="widget stacked"> 68 <!-- <div id='wrap'>
27 <div class="widget-header"> 69
28 <i class="fa fa-plane"></i> 70 <div id='external-events'>
29 <h3>Entry Support Service</h3> 71 <h4>Draggable Events</h4>
30 </div> 72 <div class='fc-event'>My Event 1</div>
31 <!-- /widget-header --> 73 <div class='fc-event'>My Event 2</div>
32 <div class="widget-content"> 74 <div class='fc-event'>My Event 3</div>
33 <div id='external-events'> 75 <div class='fc-event'>My Event 4</div>
34 <h6>Drag a event and drop into callender</h6> 76 <div class='fc-event'>My Event 5</div>
35 <ul style="list-style: none;padding: 0px"> 77 <p>
36 <li class="active"> 78 <input type='checkbox' id='drop-remove' />
37 <div class='fc-event newUlView'>My Event 1</div> 79 <label for='drop-remove'>remove after drop</label>
38 </li> 80 </p>
39 <li class="active"> 81 </div>
40 <div class='fc-event newUlView' >My Event 2</div> 82
41 </li> 83 <div id='calendar'></div>
42 <li class="active"> 84
43 <div class='fc-event newUlView'>My Event 3</div> 85 <div style='clear:both'></div>
44 </li>
45 <li class="active">
46 <div class='fc-event newUlView'>My Event 4</div>
47 </li>
48 <li class="active">
49 <div class='fc-event newUlView'>My Event 5</div>
50 </li>
51 <li class="active">
52 <div class='fc-event newUlView'>My Event 6</div>
53 </li>
54 </ul>
55 </div>
app/partials/updateFuelManager/updateFuelManager.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 7
8 .controller('updateFuelManagerController', ['$scope','$uibModal', 'updateFuelManagerService', function($scope , $uibModal, updateFuelManagerService) { 8 .controller('updateFuelManagerController', ['$scope','$uibModal', 'updateFuelManagerService', function($scope , $uibModal, updateFuelManagerService) {
9 $scope.showLoader = true; 9 $scope.showLoader = true;
10 $scope.yes = function(data){ 10 $scope.yes = function(data){
11 console.log('========'); 11 console.log('========');
12 console.log('value', data); 12 console.log('value', data);
13 $uibModal.yes({ 13 $uibModal.yes({
14 templateUrl: 'partials/pricingcontact/pricingcontact.html', 14 templateUrl: 'partials/pricingcontact/pricingcontact.html',
15 backdrop: true, 15 backdrop: true,
16 scope: $scope, 16 scope: $scope,
17 }) 17 })
18 } 18 }
19 19
20 $scope.options = {
21 language: 'en',
22 allowedContent: true,
23 entities: false
24 };
25
26 // Called when the editor is completely ready.
27 $scope.onReady = function () {
28 // ...
29 };
30
20 $scope.userProfileId = JSON.parse(localStorage.getItem('userProfileId')); 31 $scope.userProfileId = JSON.parse(localStorage.getItem('userProfileId'));
21 32
22 updateFuelManagerService.getATypeJets($scope.userProfileId).then(function(result) { 33 updateFuelManagerService.getATypeJets($scope.userProfileId).then(function(result) {
23 $scope.aTypeJets = result; 34 $scope.aTypeJets = result;
24 $scope.showLoader = false; 35 $scope.showLoader = false;
25 }) 36 })
26 updateFuelManagerService.getVTypeJets($scope.userProfileId).then(function(result) { 37 updateFuelManagerService.getVTypeJets($scope.userProfileId).then(function(result) {
27 $scope.vTypeJets = result; 38 $scope.vTypeJets = result;
28 $scope.showLoader = false; 39 $scope.showLoader = false;
29 }) 40 })
30 $scope.toggleJestAccordian = function(id, index){ 41 $scope.toggleJestAccordian = function(id, index){
31 $scope.showLoader = true; 42 $scope.showLoader = true;
32 $('.'+id).slideDown(); 43 $('.'+id).slideDown();
33 $('#'+id).addClass('customActive'); 44 $('#'+id).addClass('customActive');
34 $('#'+id+' select, #'+id+' input').prop("disabled", false); 45 $('#'+id+' select, #'+id+' input').prop("disabled", false);
35 $('#'+id+' .btn-success, #'+id+' .btn-danger').css('display', 'inline-block'); 46 $('#'+id+' .btn-success, #'+id+' .btn-danger').css('display', 'inline-block');
36 $('#'+id+' .btn-default').css('display', 'none'); 47 $('#'+id+' .btn-default').css('display', 'none');
37 48
38 updateFuelManagerService.getJetTiers(id).then(function(tiers) { 49 updateFuelManagerService.getJetTiers(id).then(function(tiers) {
39 $scope.aTypeJets[index].tierList = tiers; 50 $scope.aTypeJets[index].tierList = tiers;
40 $scope.showLoader = false; 51 $scope.showLoader = false;
41 }) 52 })
42 } 53 }
43 $scope.toggleVtypeJestAccordian = function(id, index){ 54 $scope.toggleVtypeJestAccordian = function(id, index){
44 $scope.showLoader = true; 55 $scope.showLoader = true;
45 $('.'+id).slideDown(); 56 $('.'+id).slideDown();
46 $('#'+id).addClass('customActive'); 57 $('#'+id).addClass('customActive');
47 $('#'+id+' select, #'+id+' input').prop("disabled", false); 58 $('#'+id+' select, #'+id+' input').prop("disabled", false);
48 $('#'+id+' .btn-success, #'+id+' .btn-danger').css('display', 'inline-block'); 59 $('#'+id+' .btn-success, #'+id+' .btn-danger').css('display', 'inline-block');
49 $('#'+id+' .btn-default').css('display', 'none'); 60 $('#'+id+' .btn-default').css('display', 'none');
50 61
51 updateFuelManagerService.getJetTiers(id).then(function(tiers) { 62 updateFuelManagerService.getJetTiers(id).then(function(tiers) {
52 $scope.vTypeJets[index].tierList = tiers; 63 $scope.vTypeJets[index].tierList = tiers;
53 $scope.showLoader = false; 64 $scope.showLoader = false;
54 }) 65 })
55 } 66 }
56 //$scope.trData = {}; 67 //$scope.trData = {};
57 $scope.addNewTier = function(id, trData, index){ 68 $scope.addNewTier = function(id, trData, index){
58 $scope.showLoader = true; 69 $scope.showLoader = true;
59 $scope.tr = {}; 70 $scope.tr = {};
60 $scope.tr[index] = {}; 71 $scope.tr[index] = {};
61 $scope.tr[index].minTierBreak = trData[index].minTierBreak; 72 $scope.tr[index].minTierBreak = trData[index].minTierBreak;
62 $scope.tr[index].maxTierBreak = trData[index].maxTierBreak; 73 $scope.tr[index].maxTierBreak = trData[index].maxTierBreak;
63 $scope.tr[index].margin = trData[index].margin; 74 $scope.tr[index].margin = trData[index].margin;
64 $scope.tr[index].marginTotal = '1.00'; 75 $scope.tr[index].marginTotal = '1.00';
65 $scope.tr[index].marginTemplateId = id; 76 $scope.tr[index].marginTemplateId = id;
66 77
67 var tierData = 'minTierBreak='+$scope.tr[index].minTierBreak+'&maxTierBreak='+$scope.tr[index].maxTierBreak+'&margin='+$scope.tr[index].margin+ 78 var tierData = 'minTierBreak='+$scope.tr[index].minTierBreak+'&maxTierBreak='+$scope.tr[index].maxTierBreak+'&margin='+$scope.tr[index].margin+
68 '&marginTotal='+$scope.tr[index].marginTotal+'&marginTemplateId='+$scope.tr[index].marginTemplateId; 79 '&marginTotal='+$scope.tr[index].marginTotal+'&marginTemplateId='+$scope.tr[index].marginTemplateId;
69 80
70 updateFuelManagerService.addNewTier(tierData).then(function(result) { 81 updateFuelManagerService.addNewTier(tierData).then(function(result) {
71 toastr.success('Successfully Added', { 82 toastr.success('Successfully Added', {
72 closeButton: true 83 closeButton: true
73 }) 84 })
74 trData[index].minTierBreak = ''; 85 trData[index].minTierBreak = '';
75 trData[index].maxTierBreak = ''; 86 trData[index].maxTierBreak = '';
76 trData[index].margin = ''; 87 trData[index].margin = '';
77 88
78 updateFuelManagerService.getJetTiers(id).then(function(tiers) { 89 updateFuelManagerService.getJetTiers(id).then(function(tiers) {
79 $scope.aTypeJets[index].tierList = tiers; 90 $scope.aTypeJets[index].tierList = tiers;
80 $scope.showLoader = false; 91 $scope.showLoader = false;
81 }) 92 })
82 }) 93 })
83 } 94 }
84 95
85 $scope.addNewVtypeTier = function(id, vtrData, index){ 96 $scope.addNewVtypeTier = function(id, vtrData, index){
86 $scope.showLoader = true; 97 $scope.showLoader = true;
87 $scope.tr = {}; 98 $scope.tr = {};
88 $scope.tr[index] = {}; 99 $scope.tr[index] = {};
89 $scope.tr[index].minTierBreak = vtrData[index].minTierBreak; 100 $scope.tr[index].minTierBreak = vtrData[index].minTierBreak;
90 $scope.tr[index].maxTierBreak = vtrData[index].maxTierBreak; 101 $scope.tr[index].maxTierBreak = vtrData[index].maxTierBreak;
91 $scope.tr[index].margin = vtrData[index].margin; 102 $scope.tr[index].margin = vtrData[index].margin;
92 $scope.tr[index].marginTotal = '1.00'; 103 $scope.tr[index].marginTotal = '1.00';
93 $scope.tr[index].marginTemplateId = id; 104 $scope.tr[index].marginTemplateId = id;
94 105
95 var tierData = 'minTierBreak='+$scope.tr[index].minTierBreak+'&maxTierBreak='+$scope.tr[index].maxTierBreak+'&margin='+$scope.tr[index].margin+ 106 var tierData = 'minTierBreak='+$scope.tr[index].minTierBreak+'&maxTierBreak='+$scope.tr[index].maxTierBreak+'&margin='+$scope.tr[index].margin+
96 '&marginTotal='+$scope.tr[index].marginTotal+'&marginTemplateId='+$scope.tr[index].marginTemplateId; 107 '&marginTotal='+$scope.tr[index].marginTotal+'&marginTemplateId='+$scope.tr[index].marginTemplateId;
97 108
98 updateFuelManagerService.addNewTier(tierData).then(function(result) { 109 updateFuelManagerService.addNewTier(tierData).then(function(result) {
99 toastr.success('Successfully Added', { 110 toastr.success('Successfully Added', {
100 closeButton: true 111 closeButton: true
101 }) 112 })
102 vtrData[index].minTierBreak = ''; 113 vtrData[index].minTierBreak = '';
103 vtrData[index].maxTierBreak = ''; 114 vtrData[index].maxTierBreak = '';
104 vtrData[index].margin = ''; 115 vtrData[index].margin = '';
105 updateFuelManagerService.getJetTiers(id).then(function(tiers) { 116 updateFuelManagerService.getJetTiers(id).then(function(tiers) {
106 $scope.vTypeJets[index].tierList = tiers; 117 $scope.vTypeJets[index].tierList = tiers;
107 $scope.showLoader = false; 118 $scope.showLoader = false;
108 }) 119 })
109 }) 120 })
110 } 121 }
111 122
112 $scope.editTier = function(tier, index){ 123 $scope.editTier = function(tier, index){
113 $scope.showLoader = true; 124 $scope.showLoader = true;
114 var editTierData = 'minTierBreak='+tier.minTierBreak+'&maxTierBreak='+tier.maxTierBreak+'&margin='+tier.margin+ 125 var editTierData = 'minTierBreak='+tier.minTierBreak+'&maxTierBreak='+tier.maxTierBreak+'&margin='+tier.margin+
115 '&marginTotal='+tier.marginTotal+'&marginTemplateId='+tier.marginTemplate.id+'&marginId='+tier.id; 126 '&marginTotal='+tier.marginTotal+'&marginTemplateId='+tier.marginTemplate.id+'&marginId='+tier.id;
116 127
117 updateFuelManagerService.editTier(editTierData).then(function(result) { 128 updateFuelManagerService.editTier(editTierData).then(function(result) {
118 toastr.success('Successfully Updated', { 129 toastr.success('Successfully Updated', {
119 closeButton: true 130 closeButton: true
120 }) 131 })
121 updateFuelManagerService.getJetTiers(tier.marginTemplate.id).then(function(tiers) { 132 updateFuelManagerService.getJetTiers(tier.marginTemplate.id).then(function(tiers) {
122 $scope.aTypeJets[index].tierList = tiers; 133 $scope.aTypeJets[index].tierList = tiers;
123 $scope.showLoader = false; 134 $scope.showLoader = false;
124 }) 135 })
125 }) 136 })
126 137
127 } 138 }
128 139
129 $scope.editVtypeTier = function(tier, index){ 140 $scope.editVtypeTier = function(tier, index){
130 $scope.showLoader = true; 141 $scope.showLoader = true;
131 var editTierData = 'minTierBreak='+tier.minTierBreak+'&maxTierBreak='+tier.maxTierBreak+'&margin='+tier.margin+ 142 var editTierData = 'minTierBreak='+tier.minTierBreak+'&maxTierBreak='+tier.maxTierBreak+'&margin='+tier.margin+
132 '&marginTotal='+tier.marginTotal+'&marginTemplateId='+tier.marginTemplate.id+'&marginId='+tier.id; 143 '&marginTotal='+tier.marginTotal+'&marginTemplateId='+tier.marginTemplate.id+'&marginId='+tier.id;
133 144
134 updateFuelManagerService.editTier(editTierData).then(function(result) { 145 updateFuelManagerService.editTier(editTierData).then(function(result) {
135 toastr.success('Successfully Updated', { 146 toastr.success('Successfully Updated', {
136 closeButton: true 147 closeButton: true
137 }) 148 })
138 updateFuelManagerService.getJetTiers(tier.marginTemplate.id).then(function(tiers) { 149 updateFuelManagerService.getJetTiers(tier.marginTemplate.id).then(function(tiers) {
139 $scope.vTypeJets[index].tierList = tiers; 150 $scope.vTypeJets[index].tierList = tiers;
140 $scope.showLoader = false; 151 $scope.showLoader = false;
141 }) 152 })
142 }) 153 })
143 154
144 } 155 }
145 156
146 $scope.deleteTierObject = {}; 157 $scope.deleteTierObject = {};
147 $scope.deleteTier = function(id, jetid, index){ 158 $scope.deleteTier = function(id, jetid, index){
148 $scope.deleteTierObject.id = id; 159 $scope.deleteTierObject.id = id;
149 $scope.deleteTierObject.jetId = jetid; 160 $scope.deleteTierObject.jetId = jetid;
150 $scope.deleteTierObject.index = index; 161 $scope.deleteTierObject.index = index;
151 $('#deleteTierConfirm').css('display', 'block'); 162 $('#deleteTierConfirm').css('display', 'block');
152 } 163 }
153 164
154 $scope.confirmDeleteTier = function(){ 165 $scope.confirmDeleteTier = function(){
155 $scope.showLoader = true; 166 $scope.showLoader = true;
156 updateFuelManagerService.deleteTier($scope.deleteTierObject.id).then(function(result) { 167 updateFuelManagerService.deleteTier($scope.deleteTierObject.id).then(function(result) {
157 toastr.success(''+result.success+'', { 168 toastr.success(''+result.success+'', {
158 closeButton: true 169 closeButton: true
159 }) 170 })
160 updateFuelManagerService.getJetTiers($scope.deleteTierObject.jetId).then(function(tiers) { 171 updateFuelManagerService.getJetTiers($scope.deleteTierObject.jetId).then(function(tiers) {
161 $scope.aTypeJets[$scope.deleteTierObject.index].tierList = tiers; 172 $scope.aTypeJets[$scope.deleteTierObject.index].tierList = tiers;
162 $scope.showLoader = false; 173 $scope.showLoader = false;
163 $scope.deleteTierObject = {}; 174 $scope.deleteTierObject = {};
164 }) 175 })
165 }) 176 })
166 $('#deleteTierConfirm').css('display', 'none'); 177 $('#deleteTierConfirm').css('display', 'none');
167 } 178 }
168 179
169 $scope.cancelTierDelete = function(){ 180 $scope.cancelTierDelete = function(){
170 console.log('cancel'); 181 console.log('cancel');
171 $('#deleteTierConfirm').css('display', 'none'); 182 $('#deleteTierConfirm').css('display', 'none');
172 $scope.deleteTierObject = {}; 183 $scope.deleteTierObject = {};
173 } 184 }
174 185
175 /*$scope.deleteVtypeTier = function(id, jetid, index){ 186 /*$scope.deleteVtypeTier = function(id, jetid, index){
176 $scope.showLoader = true; 187 $scope.showLoader = true;
177 updateFuelManagerService.deleteTier(id).then(function(result) { 188 updateFuelManagerService.deleteTier(id).then(function(result) {
178 toastr.success(''+result.success+'', { 189 toastr.success(''+result.success+'', {
179 closeButton: true 190 closeButton: true
180 }) 191 })
181 updateFuelManagerService.getJetTiers(jetid).then(function(tiers) { 192 updateFuelManagerService.getJetTiers(jetid).then(function(tiers) {
182 $scope.vTypeJets[index].tierList = tiers; 193 $scope.vTypeJets[index].tierList = tiers;
183 $scope.showLoader = false; 194 $scope.showLoader = false;
184 }) 195 })
185 }) 196 })
186 }*/ 197 }*/
187 198
188 $scope.deleteVtypeTierObject = {}; 199 $scope.deleteVtypeTierObject = {};
189 $scope.deleteVtypeTier = function(id, jetid, index){ 200 $scope.deleteVtypeTier = function(id, jetid, index){
190 $scope.deleteVtypeTierObject.id = id; 201 $scope.deleteVtypeTierObject.id = id;
191 $scope.deleteVtypeTierObject.jetId = jetid; 202 $scope.deleteVtypeTierObject.jetId = jetid;
192 $scope.deleteVtypeTierObject.index = index; 203 $scope.deleteVtypeTierObject.index = index;
193 $('#deleteVtypeTierConfirm').css('display', 'block'); 204 $('#deleteVtypeTierConfirm').css('display', 'block');
194 } 205 }
195 206
196 $scope.confirmDeleteVtypeTier = function(){ 207 $scope.confirmDeleteVtypeTier = function(){
197 $scope.showLoader = true; 208 $scope.showLoader = true;
198 updateFuelManagerService.deleteTier($scope.deleteVtypeTierObject.id).then(function(result) { 209 updateFuelManagerService.deleteTier($scope.deleteVtypeTierObject.id).then(function(result) {
199 toastr.success(''+result.success+'', { 210 toastr.success(''+result.success+'', {
200 closeButton: true 211 closeButton: true
201 }) 212 })
202 updateFuelManagerService.getJetTiers($scope.deleteVtypeTierObject.jetId).then(function(tiers) { 213 updateFuelManagerService.getJetTiers($scope.deleteVtypeTierObject.jetId).then(function(tiers) {
203 $scope.vTypeJets[$scope.deleteVtypeTierObject.index].tierList = tiers; 214 $scope.vTypeJets[$scope.deleteVtypeTierObject.index].tierList = tiers;
204 $scope.showLoader = false; 215 $scope.showLoader = false;
205 $scope.deleteVtypeTierObject = {}; 216 $scope.deleteVtypeTierObject = {};
206 }) 217 })
207 }) 218 })
208 $('#deleteVtypeTierConfirm').css('display', 'none'); 219 $('#deleteVtypeTierConfirm').css('display', 'none');
209 } 220 }
210 221
211 $scope.cancelVtypeTierDelete = function(){ 222 $scope.cancelVtypeTierDelete = function(){
212 console.log('cancel'); 223 console.log('cancel');
213 $('#deleteVtypeTierConfirm').css('display', 'none'); 224 $('#deleteVtypeTierConfirm').css('display', 'none');
214 $scope.deleteVtypeTierObject = {}; 225 $scope.deleteVtypeTierObject = {};
215 } 226 }
216 227
217 $scope.saveJetAccordian = function(jets){ 228 $scope.saveJetAccordian = function(jets){
218 $scope.showLoader = true; 229 $scope.showLoader = true;
219 $scope.jetsDetail = jets; 230 $scope.jetsDetail = jets;
220 $scope.jetsDetail.userProfileId = $scope.userProfileId; 231 $scope.jetsDetail.userProfileId = $scope.userProfileId;
221 //console.log('jets', $scope.jetsDetail); 232 //console.log('jets', $scope.jetsDetail);
222 $('.'+$scope.jetsDetail.id).slideUp(); 233 $('.'+$scope.jetsDetail.id).slideUp();
223 $('#'+$scope.jetsDetail.id).removeClass('customActive'); 234 $('#'+$scope.jetsDetail.id).removeClass('customActive');
224 $('#'+$scope.jetsDetail.id+' select, #'+$scope.jetsDetail.id+' input').prop("disabled", true); 235 $('#'+$scope.jetsDetail.id+' select, #'+$scope.jetsDetail.id+' input').prop("disabled", true);
225 $('#'+$scope.jetsDetail.id+' .btn-success, #'+$scope.jetsDetail.id+' .btn-danger').css('display', 'none'); 236 $('#'+$scope.jetsDetail.id+' .btn-success, #'+$scope.jetsDetail.id+' .btn-danger').css('display', 'none');
226 $('#'+$scope.jetsDetail.id+' .btn-default').css('display', 'inline-block'); 237 $('#'+$scope.jetsDetail.id+' .btn-default').css('display', 'inline-block');
227 238
228 var editJetData = 'productType='+$scope.jetsDetail.productType+'&marginName='+$scope.jetsDetail.marginName+'&pricingStructure='+$scope.jetsDetail.pricingStructure+'&marginValue='+$scope.jetsDetail.marginValue+'&userProfileId='+$scope.jetsDetail.userProfileId+'&marginId='+$scope.jetsDetail.id+'&message='+$scope.jetsDetail.message; 239 var editJetData = 'productType='+$scope.jetsDetail.productType+'&marginName='+$scope.jetsDetail.marginName+'&pricingStructure='+$scope.jetsDetail.pricingStructure+'&marginValue='+$scope.jetsDetail.marginValue+'&userProfileId='+$scope.jetsDetail.userProfileId+'&marginId='+$scope.jetsDetail.id+'&message='+$scope.jetsDetail.message;
229 240
230 updateFuelManagerService.editAtypeJetMargin(editJetData).then(function(result) { 241 updateFuelManagerService.editAtypeJetMargin(editJetData).then(function(result) {
231 console.log('newJet', editJetData); 242 console.log('newJet', editJetData);
232 toastr.success('Successfully Updated', { 243 toastr.success('Successfully Updated', {
233 closeButton: true 244 closeButton: true
234 }) 245 })
235 updateFuelManagerService.getATypeJets($scope.userProfileId).then(function(result) { 246 updateFuelManagerService.getATypeJets($scope.userProfileId).then(function(result) {
236 console.log('result', result); 247 console.log('result', result);
237 $scope.aTypeJets = result; 248 $scope.aTypeJets = result;
238 $scope.showLoader = false; 249 $scope.showLoader = false;
239 }) 250 })
240 }) 251 })
241 252
242 } 253 }
243 254
255 $scope.closeAccordian = function(jets){
256 $('.'+jets.id).slideUp();
257 $('#'+jets.id).removeClass('customActive');
258 $('#'+jets.id+' select, #'+jets.id+' input').prop("disabled", true);
259 $('#'+jets.id+' .btn-success, #'+jets.id+' .btn-danger').css('display', 'none');
260 $('#'+jets.id+' .btn-default').css('display', 'inline-block');
261 }
262
263 $scope.closeAccordianVtype = function(jets){
264 $('.'+jets.id).slideUp();
265 $('#'+jets.id).removeClass('customActive');
266 $('#'+jets.id+' select, #'+jets.id+' input').prop("disabled", true);
267 $('#'+jets.id+' .btn-success, #'+jets.id+' .btn-danger').css('display', 'none');
268 $('#'+jets.id+' .btn-default').css('display', 'inline-block');
269 }
270
244 $scope.saveVtypeJetAccordian = function(jets){ 271 $scope.saveVtypeJetAccordian = function(jets){
245 $scope.showLoader = true; 272 $scope.showLoader = true;
246 $scope.jetsDetail = jets; 273 $scope.jetsDetail = jets;
247 $scope.jetsDetail.userProfileId = $scope.userProfileId; 274 $scope.jetsDetail.userProfileId = $scope.userProfileId;
248 //console.log('jets', $scope.jetsDetail); 275 //console.log('jets', $scope.jetsDetail);
249 $('.'+$scope.jetsDetail.id).slideUp(); 276 $('.'+$scope.jetsDetail.id).slideUp();
250 $('#'+$scope.jetsDetail.id).removeClass('customActive'); 277 $('#'+$scope.jetsDetail.id).removeClass('customActive');
251 $('#'+$scope.jetsDetail.id+' select, #'+$scope.jetsDetail.id+' input').prop("disabled", true); 278 $('#'+$scope.jetsDetail.id+' select, #'+$scope.jetsDetail.id+' input').prop("disabled", true);
252 $('#'+$scope.jetsDetail.id+' .btn-success, #'+$scope.jetsDetail.id+' .btn-danger').css('display', 'none'); 279 $('#'+$scope.jetsDetail.id+' .btn-success, #'+$scope.jetsDetail.id+' .btn-danger').css('display', 'none');
253 $('#'+$scope.jetsDetail.id+' .btn-default').css('display', 'inline-block'); 280 $('#'+$scope.jetsDetail.id+' .btn-default').css('display', 'inline-block');
254 281
255 var editVtypeJetData = 'productType='+$scope.jetsDetail.productType+'&marginName='+$scope.jetsDetail.marginName+'&pricingStructure='+$scope.jetsDetail.pricingStructure+'&marginValue='+$scope.jetsDetail.marginValue+'&userProfileId='+$scope.jetsDetail.userProfileId+'&marginId='+$scope.jetsDetail.id+'&message='+$scope.jetsDetail.message; 282 var editVtypeJetData = 'productType='+$scope.jetsDetail.productType+'&marginName='+$scope.jetsDetail.marginName+'&pricingStructure='+$scope.jetsDetail.pricingStructure+'&marginValue='+$scope.jetsDetail.marginValue+'&userProfileId='+$scope.jetsDetail.userProfileId+'&marginId='+$scope.jetsDetail.id+'&message='+$scope.jetsDetail.message;
256 283
257 updateFuelManagerService.editVtypeJetMargin(editVtypeJetData).then(function(result) { 284 updateFuelManagerService.editVtypeJetMargin(editVtypeJetData).then(function(result) {
258 console.log('newJet', editVtypeJetData); 285 console.log('newJet', editVtypeJetData);
259 toastr.success('Successfully Updated', { 286 toastr.success('Successfully Updated', {
260 closeButton: true 287 closeButton: true
261 }) 288 })
262 updateFuelManagerService.getVTypeJets($scope.userProfileId).then(function(result) { 289 updateFuelManagerService.getVTypeJets($scope.userProfileId).then(function(result) {
263 $scope.vTypeJets = result; 290 $scope.vTypeJets = result;
264 console.log('second jets', result); 291 console.log('second jets', result);
265 $scope.showLoader = false; 292 $scope.showLoader = false;
266 }) 293 })
267 }) 294 })
268 295
269 } 296 }
270 297
271 $scope.newJet = {}; 298 $scope.newJet = {};
272 299
273 $scope.addNewMarginBtn = function(){ 300 $scope.addNewMarginBtn = function(){
274 $('.addNewMargin').css('display', 'block'); 301 $('.addNewMargin').css('display', 'block');
275 } 302 }
276 $scope.closeMarginPopup = function(){ 303 $scope.closeMarginPopup = function(){
277 $('.addNewMargin').css('display', 'none'); 304 $('.addNewMargin').css('display', 'none');
278 $scope.newJet = {}; 305 $scope.newJet = {};
279 } 306 }
280 307
281 //$scope.newJet.productType = ''; 308 //$scope.newJet.productType = '';
282 309
283 $scope.addNewATypeJet = function(){ 310 $scope.addNewATypeJet = function(){
284 $scope.showLoader = true; 311 $scope.showLoader = true;
285 $scope.newJet.productType = 'JET-A'; 312 $scope.newJet.productType = 'JET-A';
286 $scope.newJet.userProfileId = $scope.userProfileId; 313 $scope.newJet.userProfileId = $scope.userProfileId;
287 314
288 var jetData = 'productType='+$scope.newJet.productType+'&marginName='+$scope.newJet.marginName+'&pricingStructure='+$scope.newJet.pricingStructure+'&marginValue='+$scope.newJet.marginValue+'&userProfileId='+$scope.newJet.userProfileId+'&message='+$scope.newJet.message; 315 var jetData = 'productType='+$scope.newJet.productType+'&marginName='+$scope.newJet.marginName+'&pricingStructure='+$scope.newJet.pricingStructure+'&marginValue='+$scope.newJet.marginValue+'&userProfileId='+$scope.newJet.userProfileId+'&message='+$scope.newJet.message;
289 316
290 updateFuelManagerService.addNewAtypeJetMargin(jetData).then(function(result) { 317 updateFuelManagerService.addNewAtypeJetMargin(jetData).then(function(result) {
291 console.log('newJet', jetData); 318 console.log('newJet', jetData);
292 toastr.success('Successfully Added', { 319 toastr.success('Successfully Added', {
293 closeButton: true 320 closeButton: true
294 }) 321 })
295 $('.addNewMargin').css('display', 'none'); 322 $('.addNewMargin').css('display', 'none');
296 updateFuelManagerService.getATypeJets($scope.userProfileId).then(function(result) { 323 updateFuelManagerService.getATypeJets($scope.userProfileId).then(function(result) {
297 console.log('result', result); 324 console.log('result', result);
298 $scope.aTypeJets = result; 325 $scope.aTypeJets = result;
299 $scope.showLoader = false; 326 $scope.showLoader = false;
300 }) 327 })
301 }) 328 })
302 } 329 }
303 330
304 $scope.newVtypeJet = {}; 331 $scope.newVtypeJet = {};
305 332
306 $scope.addNewVtypePop = function(){ 333 $scope.addNewVtypePop = function(){
307 $('.addNewVtype').css('display', 'block'); 334 $('.addNewVtype').css('display', 'block');
308 } 335 }
309 $scope.closeNewVtypePop = function(){ 336 $scope.closeNewVtypePop = function(){
310 $('.addNewVtype').css('display', 'none'); 337 $('.addNewVtype').css('display', 'none');
311 $scope.newVtypeJet = {}; 338 $scope.newVtypeJet = {};
312 } 339 }
313 340
314 $scope.addNewVTypeJet = function(){ 341 $scope.addNewVTypeJet = function(){
315 $scope.showLoader = true; 342 $scope.showLoader = true;
316 $scope.newVtypeJet.productType = 'AVGAS'; 343 $scope.newVtypeJet.productType = 'AVGAS';
317 $scope.newVtypeJet.userProfileId = $scope.userProfileId; 344 $scope.newVtypeJet.userProfileId = $scope.userProfileId;
318 345
319 var vJetData = 'productType='+$scope.newVtypeJet.productType+'&marginName='+$scope.newVtypeJet.marginName+'&pricingStructure='+$scope.newVtypeJet.pricingStructure+'&marginValue='+$scope.newVtypeJet.marginValue+'&userProfileId='+$scope.newVtypeJet.userProfileId+'&message='+$scope.newVtypeJet.message; 346 var vJetData = 'productType='+$scope.newVtypeJet.productType+'&marginName='+$scope.newVtypeJet.marginName+'&pricingStructure='+$scope.newVtypeJet.pricingStructure+'&marginValue='+$scope.newVtypeJet.marginValue+'&userProfileId='+$scope.newVtypeJet.userProfileId+'&message='+$scope.newVtypeJet.message;
320 347
321 updateFuelManagerService.addNewVtypeJet(vJetData).then(function(result) { 348 updateFuelManagerService.addNewVtypeJet(vJetData).then(function(result) {
322 349
323 toastr.success('Successfully Added', { 350 toastr.success('Successfully Added', {
324 closeButton: true 351 closeButton: true
325 }) 352 })
326 $('.addNewVtype').css('display', 'none'); 353 $('.addNewVtype').css('display', 'none');
327 updateFuelManagerService.getVTypeJets($scope.userProfileId).then(function(result) { 354 updateFuelManagerService.getVTypeJets($scope.userProfileId).then(function(result) {
328 $scope.vTypeJets = result; 355 $scope.vTypeJets = result;
329 $scope.showLoader = false; 356 $scope.showLoader = false;
330 }) 357 })
331 }) 358 })
332 359
333 } 360 }
334 361
335 362
336 $scope.sendEmail = {}; 363 $scope.sendEmail = {};
337 364
338 $scope.confirmMail = function(){ 365 $scope.confirmMail = function(){
339 if ($scope.sendEmail.pricing != '' && $scope.sendEmail.pricing != null && $scope.sendEmail.pricing != undefined) { 366 if ($scope.sendEmail.pricing != '' && $scope.sendEmail.pricing != null && $scope.sendEmail.pricing != undefined) {
340 $('#confirm1').css('display', 'block'); 367 $('#confirm1').css('display', 'block');
341 } 368 }
342 } 369 }
343 370
344 $scope.saveAndCloseConfirm = function(){ 371 $scope.saveAndCloseConfirm = function(){
345 $('#confirm1').css('display', 'none'); 372 $('#confirm1').css('display', 'none');
346 updateFuelManagerService.sendMailToMargin($scope.sendEmail.pricing).then(function(result) { 373 updateFuelManagerService.sendMailToMargin($scope.sendEmail.pricing).then(function(result) {
347 toastr.success(''+result.success+'', { 374 toastr.success(''+result.success+'', {
348 closeButton: true 375 closeButton: true
349 }) 376 })
350 }) 377 })
351 } 378 }
352 $scope.cancelAndCloseConfirm = function(){ 379 $scope.cancelAndCloseConfirm = function(){
353 $scope.sendEmail = {}; 380 $scope.sendEmail = {};
354 $scope.sendEmail.pricing = ''; 381 $scope.sendEmail.pricing = '';
355 $('#confirm1').css('display', 'none'); 382 $('#confirm1').css('display', 'none');
356 } 383 }
357 384
358 $scope.newFuelPricing = {}; 385 $scope.newFuelPricing = {};
359 updateFuelManagerService.getFuelPricingNew().then(function(result) { 386 updateFuelManagerService.getFuelPricingNew().then(function(result) {
360 $scope.newFuelPricing = result; 387 $scope.newFuelPricing = result;
361 for (var i = 0; i<$scope.newFuelPricing.length; i++) { 388 for (var i = 0; i<$scope.newFuelPricing.length; i++) {
362 if ($scope.newFuelPricing[i].fuelPricing != null) { 389 if ($scope.newFuelPricing[i].fuelPricing != null) {
363 if ($scope.newFuelPricing[i].fuelPricing.expirationDate != null && $scope.newFuelPricing[i].fuelPricing.expirationDate != '') { 390 if ($scope.newFuelPricing[i].fuelPricing.expirationDate != null && $scope.newFuelPricing[i].fuelPricing.expirationDate != '') {
364 var newTime = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate); 391 var newTime = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate);
365 var month = newTime.getUTCMonth() + 1; //months from 1-12 392 var month = newTime.getUTCMonth() + 1; //months from 1-12
366 var day = newTime.getUTCDate(); 393 var day = newTime.getUTCDate();
367 var year = newTime.getUTCFullYear(); 394 var year = newTime.getUTCFullYear();
368 $scope.newFuelPricing[i].fuelPricing.expirationDate = month+'/'+day+'/'+year; 395 $scope.newFuelPricing[i].fuelPricing.expirationDate = month+'/'+day+'/'+year;
369 } 396 }
370 } 397 }
371 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 398 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
372 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 399 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
373 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration != null && $scope.newFuelPricing[i].futureFuelPricing.nextExpiration != '') { 400 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration != null && $scope.newFuelPricing[i].futureFuelPricing.nextExpiration != '') {
374 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration); 401 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration);
375 var nextMonth = newTime.getUTCMonth() + 1; //months from 1-12 402 var nextMonth = newTime.getUTCMonth() + 1; //months from 1-12
376 var nextDay = newTime.getUTCDate(); 403 var nextDay = newTime.getUTCDate();
377 var nextYear = newTime.getUTCFullYear(); 404 var nextYear = newTime.getUTCFullYear();
378 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = nextMonth+'/'+nextDay+'/'+nextYear; 405 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = nextMonth+'/'+nextDay+'/'+nextYear;
379 } 406 }
380 } 407 }
381 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 408 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
382 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate != null && $scope.newFuelPricing[i].futureFuelPricing.deployDate != '') { 409 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate != null && $scope.newFuelPricing[i].futureFuelPricing.deployDate != '') {
383 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate); 410 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate);
384 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 411 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12
385 var dday = newTime.getUTCDate(); 412 var dday = newTime.getUTCDate();
386 var dyear = newTime.getUTCFullYear(); 413 var dyear = newTime.getUTCFullYear();
387 $scope.newFuelPricing[i].futureFuelPricing.deployDate = dmonth+'/'+dday+'/'+dyear; 414 $scope.newFuelPricing[i].futureFuelPricing.deployDate = dmonth+'/'+dday+'/'+dyear;
388 } 415 }
389 } 416 }
390 } 417 }
391 } 418 }
392 $scope.showLoader = false; 419 $scope.showLoader = false;
393 }) 420 })
394 $scope.$watch("fuelPricing.fuelPricing.expirationDate",function(old,newv){ 421 $scope.$watch("fuelPricing.fuelPricing.expirationDate",function(old,newv){
395 }); 422 });
396 $scope.updateFuelPricing = {}; 423 $scope.updateFuelPricing = {};
397 $scope.updateFuelPricing.fuelPricingList = []; 424 $scope.updateFuelPricing.fuelPricingList = [];
398 $scope.updateFuelPricing.userProfileId = $scope.userProfileId; 425 $scope.updateFuelPricing.userProfileId = $scope.userProfileId;
399 $scope.updateFuelPricingClick = function(){ 426 $scope.updateFuelPricingClick = function(){
400 $scope.showLoader = true; 427 $scope.showLoader = true;
401 428
402 for (var i = 0; i<$scope.newFuelPricing.length; i++) { 429 for (var i = 0; i<$scope.newFuelPricing.length; i++) {
403 if ($scope.newFuelPricing[i].fuelPricing != null) { 430 if ($scope.newFuelPricing[i].fuelPricing != null) {
404 $scope.newFuelPricing[i].fuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].fuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin); 431 $scope.newFuelPricing[i].fuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].fuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin);
405 if ($scope.newFuelPricing[i].fuelPricing.cost == null) { 432 if ($scope.newFuelPricing[i].fuelPricing.cost == null) {
406 $scope.newFuelPricing[i].fuelPricing.cost = ''; 433 $scope.newFuelPricing[i].fuelPricing.cost = '';
407 } 434 }
408 if ($scope.newFuelPricing[i].fuelPricing.papMargin == null) { 435 if ($scope.newFuelPricing[i].fuelPricing.papMargin == null) {
409 $scope.newFuelPricing[i].fuelPricing.papMargin = ''; 436 $scope.newFuelPricing[i].fuelPricing.papMargin = '';
410 } 437 }
411 if ($scope.newFuelPricing[i].fuelPricing.papTotal == null) { 438 if ($scope.newFuelPricing[i].fuelPricing.papTotal == null) {
412 $scope.newFuelPricing[i].fuelPricing.papTotal = ''; 439 $scope.newFuelPricing[i].fuelPricing.papTotal = '';
413 } 440 }
414 if ($scope.newFuelPricing[i].fuelPricing.expirationDate == null) { 441 if ($scope.newFuelPricing[i].fuelPricing.expirationDate == null) {
415 $scope.newFuelPricing[i].fuelPricing.expirationDate = ''; 442 $scope.newFuelPricing[i].fuelPricing.expirationDate = '';
416 }else{ 443 }else{
417 $scope.newFuelPricing[i].fuelPricing.expirationDate = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate); 444 $scope.newFuelPricing[i].fuelPricing.expirationDate = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate);
418 console.log('$scope.newFuelPricing[i].fuelPricing.expirationDate', $scope.newFuelPricing[i].fuelPricing.expirationDate); 445 console.log('$scope.newFuelPricing[i].fuelPricing.expirationDate', $scope.newFuelPricing[i].fuelPricing.expirationDate);
419 $scope.newFuelPricing[i].fuelPricing.expirationDate = $scope.newFuelPricing[i].fuelPricing.expirationDate.getTime(); 446 $scope.newFuelPricing[i].fuelPricing.expirationDate = $scope.newFuelPricing[i].fuelPricing.expirationDate.getTime();
420 } 447 }
421 448
422 $scope.newFuelPricing[i].fuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].fuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin); 449 $scope.newFuelPricing[i].fuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].fuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin);
423 $scope.updateFuelPricing.fuelPricingList.push({ 450 $scope.updateFuelPricing.fuelPricingList.push({
424 'cost': $scope.newFuelPricing[i].fuelPricing.cost, 451 'cost': $scope.newFuelPricing[i].fuelPricing.cost,
425 'papMargin': $scope.newFuelPricing[i].fuelPricing.papMargin, 452 'papMargin': $scope.newFuelPricing[i].fuelPricing.papMargin,
426 'papTotal': $scope.newFuelPricing[i].fuelPricing.papTotal, 453 'papTotal': $scope.newFuelPricing[i].fuelPricing.papTotal,
427 'expirationDate': $scope.newFuelPricing[i].fuelPricing.expirationDate, 454 'expirationDate': $scope.newFuelPricing[i].fuelPricing.expirationDate,
428 'productId': $scope.newFuelPricing[i].id, 455 'productId': $scope.newFuelPricing[i].id,
429 'id': $scope.newFuelPricing[i].fuelPricing.id, 456 'id': $scope.newFuelPricing[i].fuelPricing.id,
430 }) 457 })
431 458
432 }else{ 459 }else{
433 /*$scope.newFuelPricing[i].fuelPricing.cost = ''; 460 /*$scope.newFuelPricing[i].fuelPricing.cost = '';
434 $scope.newFuelPricing[i].fuelPricing.papMargin = ''; 461 $scope.newFuelPricing[i].fuelPricing.papMargin = '';
435 $scope.newFuelPricing[i].fuelPricing.papTotal = ''; 462 $scope.newFuelPricing[i].fuelPricing.papTotal = '';
436 $scope.newFuelPricing[i].fuelPricing.expirationDate = '';*/ 463 $scope.newFuelPricing[i].fuelPricing.expirationDate = '';*/
437 } 464 }
438 465
439 } 466 }
440 updateFuelManagerService.updateFuelPricing($scope.updateFuelPricing).then(function(result) { 467 updateFuelManagerService.updateFuelPricing($scope.updateFuelPricing).then(function(result) {
441 toastr.success('Successfully Updated', { 468 toastr.success('Successfully Updated', {
442 closeButton: true 469 closeButton: true
443 }) 470 })
444 updateFuelManagerService.getFuelPricingNew().then(function(result) { 471 updateFuelManagerService.getFuelPricingNew().then(function(result) {
445 $scope.newFuelPricing = result; 472 $scope.newFuelPricing = result;
446 for (var i = 0; i<$scope.newFuelPricing.length; i++) { 473 for (var i = 0; i<$scope.newFuelPricing.length; i++) {
447 if ($scope.newFuelPricing[i].fuelPricing != null) { 474 if ($scope.newFuelPricing[i].fuelPricing != null) {
448 if ($scope.newFuelPricing[i].fuelPricing.expirationDate != null && $scope.newFuelPricing[i].fuelPricing.expirationDate != '') { 475 if ($scope.newFuelPricing[i].fuelPricing.expirationDate != null && $scope.newFuelPricing[i].fuelPricing.expirationDate != '') {
449 var newTime = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate); 476 var newTime = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate);
450 var month = newTime.getUTCMonth() + 1; //months from 1-12 477 var month = newTime.getUTCMonth() + 1; //months from 1-12
451 var day = newTime.getUTCDate(); 478 var day = newTime.getUTCDate();
452 var year = newTime.getUTCFullYear(); 479 var year = newTime.getUTCFullYear();
453 $scope.newFuelPricing[i].fuelPricing.expirationDate = month+'/'+day+'/'+year; 480 $scope.newFuelPricing[i].fuelPricing.expirationDate = month+'/'+day+'/'+year;
454 } 481 }
455 } 482 }
456 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 483 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
457 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 484 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
458 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration != null && $scope.newFuelPricing[i].futureFuelPricing.nextExpiration != '') { 485 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration != null && $scope.newFuelPricing[i].futureFuelPricing.nextExpiration != '') {
459 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration); 486 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration);
460 var nextMonth = newTime.getUTCMonth() + 1; //months from 1-12 487 var nextMonth = newTime.getUTCMonth() + 1; //months from 1-12
461 var nextDay = newTime.getUTCDate(); 488 var nextDay = newTime.getUTCDate();
462 var nextYear = newTime.getUTCFullYear(); 489 var nextYear = newTime.getUTCFullYear();
463 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = nextMonth+'/'+nextDay+'/'+nextYear; 490 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = nextMonth+'/'+nextDay+'/'+nextYear;
464 } 491 }
465 } 492 }
466 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 493 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
467 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate != null && $scope.newFuelPricing[i].futureFuelPricing.deployDate != '') { 494 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate != null && $scope.newFuelPricing[i].futureFuelPricing.deployDate != '') {
468 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate); 495 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate);
469 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 496 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12
470 var dday = newTime.getUTCDate(); 497 var dday = newTime.getUTCDate();
471 var dyear = newTime.getUTCFullYear(); 498 var dyear = newTime.getUTCFullYear();
472 $scope.newFuelPricing[i].futureFuelPricing.deployDate = dmonth+'/'+dday+'/'+dyear; 499 $scope.newFuelPricing[i].futureFuelPricing.deployDate = dmonth+'/'+dday+'/'+dyear;
473 } 500 }
474 } 501 }
475 } 502 }
476 } 503 }
477 $scope.showLoader = false; 504 $scope.showLoader = false;
478 }) 505 })
479 }) 506 })
480 507
481 } 508 }
482 509
483 $scope.updateFutureFuelPricing = {}; 510 $scope.updateFutureFuelPricing = {};
484 $scope.updateFutureFuelPricing.futureFuelPricingList = []; 511 $scope.updateFutureFuelPricing.futureFuelPricingList = [];
485 $scope.updateFutureFuelPricing.userProfileId = $scope.userProfileId; 512 $scope.updateFutureFuelPricing.userProfileId = $scope.userProfileId;
486 $scope.updateFutureFuelPricingClick = function(){ 513 $scope.updateFutureFuelPricingClick = function(){
487 $scope.showLoader = true; 514 $scope.showLoader = true;
488 for (var i = 0; i<$scope.newFuelPricing.length; i++) { 515 for (var i = 0; i<$scope.newFuelPricing.length; i++) {
489 //console.log(parseFloat($scope.newFuelPricing[i].futureFuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin)); 516 //console.log(parseFloat($scope.newFuelPricing[i].futureFuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin));
490 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 517 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
491 if ($scope.newFuelPricing[i].futureFuelPricing.cost != null || $scope.newFuelPricing[i].futureFuelPricing.cost != '' || $scope.newFuelPricing[i].futureFuelPricing.cost != undefined) { 518 if ($scope.newFuelPricing[i].futureFuelPricing.cost != null || $scope.newFuelPricing[i].futureFuelPricing.cost != '' || $scope.newFuelPricing[i].futureFuelPricing.cost != undefined) {
492 $scope.newFuelPricing[i].futureFuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].futureFuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin); 519 $scope.newFuelPricing[i].futureFuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].futureFuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin);
493 if ($scope.newFuelPricing[i].futureFuelPricing.cost == null) { 520 if ($scope.newFuelPricing[i].futureFuelPricing.cost == null) {
494 $scope.newFuelPricing[i].futureFuelPricing.cost = ''; 521 $scope.newFuelPricing[i].futureFuelPricing.cost = '';
495 } 522 }
496 if ($scope.newFuelPricing[i].futureFuelPricing.papMargin == null) { 523 if ($scope.newFuelPricing[i].futureFuelPricing.papMargin == null) {
497 $scope.newFuelPricing[i].futureFuelPricing.papMargin = ''; 524 $scope.newFuelPricing[i].futureFuelPricing.papMargin = '';
498 } 525 }
499 if ($scope.newFuelPricing[i].futureFuelPricing.papTotal == null) { 526 if ($scope.newFuelPricing[i].futureFuelPricing.papTotal == null) {
500 $scope.newFuelPricing[i].futureFuelPricing.papTotal = ''; 527 $scope.newFuelPricing[i].futureFuelPricing.papTotal = '';
501 } 528 }
502 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration == null) { 529 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration == null) {
503 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = ''; 530 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = '';
504 }else{ 531 }else{
505 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration); 532 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration);
506 console.log('$scope.newFuelPricing[i].futureFuelPricing.nextExpiration', $scope.newFuelPricing[i].futureFuelPricing.nextExpiration); 533 console.log('$scope.newFuelPricing[i].futureFuelPricing.nextExpiration', $scope.newFuelPricing[i].futureFuelPricing.nextExpiration);
507 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = $scope.newFuelPricing[i].futureFuelPricing.nextExpiration.getTime(); 534 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = $scope.newFuelPricing[i].futureFuelPricing.nextExpiration.getTime();
508 } 535 }
509 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate == null) { 536 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate == null) {
510 $scope.newFuelPricing[i].futureFuelPricing.deployDate = ''; 537 $scope.newFuelPricing[i].futureFuelPricing.deployDate = '';
511 }else{ 538 }else{
512 $scope.newFuelPricing[i].futureFuelPricing.deployDate = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate); 539 $scope.newFuelPricing[i].futureFuelPricing.deployDate = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate);
513 $scope.newFuelPricing[i].futureFuelPricing.deployDate = $scope.newFuelPricing[i].futureFuelPricing.deployDate.getTime(); 540 $scope.newFuelPricing[i].futureFuelPricing.deployDate = $scope.newFuelPricing[i].futureFuelPricing.deployDate.getTime();
514 } 541 }
515 542
516 $scope.newFuelPricing[i].futureFuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].futureFuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin); 543 $scope.newFuelPricing[i].futureFuelPricing.papTotal = parseFloat($scope.newFuelPricing[i].futureFuelPricing.cost) + parseFloat($scope.newFuelPricing[i].fuelPricing.papMargin);
517 $scope.updateFutureFuelPricing.futureFuelPricingList.push({ 544 $scope.updateFutureFuelPricing.futureFuelPricingList.push({
518 'cost': $scope.newFuelPricing[i].futureFuelPricing.cost, 545 'cost': $scope.newFuelPricing[i].futureFuelPricing.cost,
519 'papMargin': $scope.newFuelPricing[i].fuelPricing.papMargin, 546 'papMargin': $scope.newFuelPricing[i].fuelPricing.papMargin,
520 //'papTotal': $scope.newFuelPricing[i].futureFuelPricing.papTotal, 547 //'papTotal': $scope.newFuelPricing[i].futureFuelPricing.papTotal,
521 'papTotal': $scope.newFuelPricing[i].futureFuelPricing.papTotal, 548 'papTotal': $scope.newFuelPricing[i].futureFuelPricing.papTotal,
522 'expirationDate': $scope.newFuelPricing[i].futureFuelPricing.nextExpiration, 549 'expirationDate': $scope.newFuelPricing[i].futureFuelPricing.nextExpiration,
523 'deployDate': $scope.newFuelPricing[i].futureFuelPricing.deployDate, 550 'deployDate': $scope.newFuelPricing[i].futureFuelPricing.deployDate,
524 'productId': $scope.newFuelPricing[i].id, 551 'productId': $scope.newFuelPricing[i].id,
525 'id': $scope.newFuelPricing[i].futureFuelPricing.id, 552 'id': $scope.newFuelPricing[i].futureFuelPricing.id,
526 }) 553 })
527 } 554 }
528 }else{ 555 }else{
529 /*$scope.newFuelPricing[i].futureFuelPricing.cost = ''; 556 /*$scope.newFuelPricing[i].futureFuelPricing.cost = '';
530 $scope.newFuelPricing[i].futureFuelPricing.papMargin = ''; 557 $scope.newFuelPricing[i].futureFuelPricing.papMargin = '';
531 $scope.newFuelPricing[i].futureFuelPricing.papTotal = ''; 558 $scope.newFuelPricing[i].futureFuelPricing.papTotal = '';
532 $scope.newFuelPricing[i].futureFuelPricing.expirationDate = ''; 559 $scope.newFuelPricing[i].futureFuelPricing.expirationDate = '';
533 $scope.newFuelPricing[i].futureFuelPricing.deployDate = '';*/ 560 $scope.newFuelPricing[i].futureFuelPricing.deployDate = '';*/
534 } 561 }
535 } 562 }
536 updateFuelManagerService.updateFutureFuelPricing($scope.updateFutureFuelPricing).then(function(result) { 563 updateFuelManagerService.updateFutureFuelPricing($scope.updateFutureFuelPricing).then(function(result) {
537 toastr.success('Successfully Updated', { 564 toastr.success('Successfully Updated', {
538 closeButton: true 565 closeButton: true
539 }) 566 })
540 updateFuelManagerService.getFuelPricingNew().then(function(result) { 567 updateFuelManagerService.getFuelPricingNew().then(function(result) {
541 $scope.newFuelPricing = result; 568 $scope.newFuelPricing = result;
542 for (var i = 0; i<$scope.newFuelPricing.length; i++) { 569 for (var i = 0; i<$scope.newFuelPricing.length; i++) {
543 if ($scope.newFuelPricing[i].fuelPricing != null) { 570 if ($scope.newFuelPricing[i].fuelPricing != null) {
544 if ($scope.newFuelPricing[i].fuelPricing.expirationDate != null && $scope.newFuelPricing[i].fuelPricing.expirationDate != '') { 571 if ($scope.newFuelPricing[i].fuelPricing.expirationDate != null && $scope.newFuelPricing[i].fuelPricing.expirationDate != '') {
545 var newTime = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate); 572 var newTime = new Date($scope.newFuelPricing[i].fuelPricing.expirationDate);
546 var month = newTime.getUTCMonth() + 1; //months from 1-12 573 var month = newTime.getUTCMonth() + 1; //months from 1-12
547 var day = newTime.getUTCDate(); 574 var day = newTime.getUTCDate();
548 var year = newTime.getUTCFullYear(); 575 var year = newTime.getUTCFullYear();
549 $scope.newFuelPricing[i].fuelPricing.expirationDate = month+'/'+day+'/'+year; 576 $scope.newFuelPricing[i].fuelPricing.expirationDate = month+'/'+day+'/'+year;
550 } 577 }
551 } 578 }
552 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 579 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
553 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 580 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
554 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration != null && $scope.newFuelPricing[i].futureFuelPricing.nextExpiration != '') { 581 if ($scope.newFuelPricing[i].futureFuelPricing.nextExpiration != null && $scope.newFuelPricing[i].futureFuelPricing.nextExpiration != '') {
555 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration); 582 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.nextExpiration);
556 var nextMonth = newTime.getUTCMonth() + 1; //months from 1-12 583 var nextMonth = newTime.getUTCMonth() + 1; //months from 1-12
557 var nextDay = newTime.getUTCDate(); 584 var nextDay = newTime.getUTCDate();
558 var nextYear = newTime.getUTCFullYear(); 585 var nextYear = newTime.getUTCFullYear();
559 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = nextMonth+'/'+nextDay+'/'+nextYear; 586 $scope.newFuelPricing[i].futureFuelPricing.nextExpiration = nextMonth+'/'+nextDay+'/'+nextYear;
560 } 587 }
561 } 588 }
562 if ($scope.newFuelPricing[i].futureFuelPricing != null) { 589 if ($scope.newFuelPricing[i].futureFuelPricing != null) {
563 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate != null && $scope.newFuelPricing[i].futureFuelPricing.deployDate != '') { 590 if ($scope.newFuelPricing[i].futureFuelPricing.deployDate != null && $scope.newFuelPricing[i].futureFuelPricing.deployDate != '') {
564 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate); 591 var newTime = new Date($scope.newFuelPricing[i].futureFuelPricing.deployDate);
565 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 592 var dmonth = newTime.getUTCMonth() + 1; //months from 1-12
566 var dday = newTime.getUTCDate(); 593 var dday = newTime.getUTCDate();
567 var dyear = newTime.getUTCFullYear(); 594 var dyear = newTime.getUTCFullYear();
568 $scope.newFuelPricing[i].futureFuelPricing.deployDate = dmonth+'/'+dday+'/'+dyear; 595 $scope.newFuelPricing[i].futureFuelPricing.deployDate = dmonth+'/'+dday+'/'+dyear;
569 } 596 }
570 } 597 }
571 } 598 }
572 } 599 }
573 $scope.showLoader = false; 600 $scope.showLoader = false;
574 }) 601 })
575 }) 602 })
576 603
577 604
578 } 605 }
579 606
580 updateFuelManagerService.getMargin().then(function(result) { 607 updateFuelManagerService.getMargin().then(function(result) {
581 $scope.marginList = result; 608 $scope.marginList = result;
582 }) 609 })
583 610
584 $scope.marginIdDelete = ''; 611 $scope.marginIdDelete = '';
585 $scope.deleteJetAccordian = function(id){ 612 $scope.deleteJetAccordian = function(id){
586 $scope.marginIdDelete = id; 613 $scope.marginIdDelete = id;
587 $('#deleteMargin').css('display', 'block'); 614 $('#deleteMargin').css('display', 'block');
588 } 615 }
589 616
590 $scope.confirmDeleteMargin = function(){ 617 $scope.confirmDeleteMargin = function(){
591 $('#deleteMargin').css('display', 'none'); 618 $('#deleteMargin').css('display', 'none');
592 $scope.showLoader = true; 619 $scope.showLoader = true;
593 updateFuelManagerService.deleteMargin($scope.marginIdDelete).then(function(result) { 620 updateFuelManagerService.deleteMargin($scope.marginIdDelete).then(function(result) {
594 toastr.success(''+result.success+'', { 621 toastr.success(''+result.success+'', {
595 closeButton: true 622 closeButton: true
596 }) 623 })
597 updateFuelManagerService.getATypeJets($scope.userProfileId).then(function(result) { 624 updateFuelManagerService.getATypeJets($scope.userProfileId).then(function(result) {
598 $scope.aTypeJets = result; 625 $scope.aTypeJets = result;
599 $scope.showLoader = false; 626 $scope.showLoader = false;
600 }) 627 })
601 }) 628 })
602 } 629 }
603 630
604 $scope.cancelMarginDelete = function(){ 631 $scope.cancelMarginDelete = function(){
605 $scope.marginIdDelete = ''; 632 $scope.marginIdDelete = '';
606 $('#deleteMargin').css('display', 'none'); 633 $('#deleteMargin').css('display', 'none');
607 } 634 }
608 635
609 $scope.marginVtypeIdDelete = ''; 636 $scope.marginVtypeIdDelete = '';
610 $scope.deleteVtypeJetAccordian = function(id){ 637 $scope.deleteVtypeJetAccordian = function(id){
611 $scope.marginVtypeIdDelete = id; 638 $scope.marginVtypeIdDelete = id;
612 $('#deleteVtypeMargin').css('display', 'block'); 639 $('#deleteVtypeMargin').css('display', 'block');
613 } 640 }
614 641
615 $scope.confirmDeletVtypeMargin = function(){ 642 $scope.confirmDeletVtypeMargin = function(){
616 $('#deleteVtypeMargin').css('display', 'none'); 643 $('#deleteVtypeMargin').css('display', 'none');
617 $scope.showLoader = true; 644 $scope.showLoader = true;
618 updateFuelManagerService.deleteMargin($scope.marginVtypeIdDelete).then(function(result) { 645 updateFuelManagerService.deleteMargin($scope.marginVtypeIdDelete).then(function(result) {
619 toastr.success(''+result.success+'', { 646 toastr.success(''+result.success+'', {
620 closeButton: true 647 closeButton: true
621 }) 648 })
622 updateFuelManagerService.getVTypeJets($scope.userProfileId).then(function(result) { 649 updateFuelManagerService.getVTypeJets($scope.userProfileId).then(function(result) {
623 $scope.vTypeJets = result; 650 $scope.vTypeJets = result;
624 $scope.showLoader = false; 651 $scope.showLoader = false;
625 }) 652 })
626 }) 653 })
627 } 654 }
628 655
629 $scope.cancelVtypeMarginDelete = function(){ 656 $scope.cancelVtypeMarginDelete = function(){
630 $scope.marginVtypeIdDelete = ''; 657 $scope.marginVtypeIdDelete = '';
631 $('#deleteVtypeMargin').css('display', 'none'); 658 $('#deleteVtypeMargin').css('display', 'none');
632 } 659 }
633 660
634 }]); 661 }]);
635 662
636 663
637 664
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 </style>
8 <div class="myLoader" ng-show="showLoader"> 8 <div class="myLoader" ng-show="showLoader">
9 <img src="../img/hourglass.gif" width="50px;"> 9 <img src="../img/hourglass.gif" width="50px;">
10 </div> 10 </div>
11 <div class="container"> 11 <div class="container">
12 <div class="row"> 12 <div class="row">
13 <div class="col-md-5"> 13 <div class="col-md-5">
14 <div class="widget stacked"> 14 <div class="widget stacked">
15 <div class="widget-header"> 15 <div class="widget-header">
16 <i class="fa fa-pencil"></i> 16 <i class="fa fa-pencil"></i>
17 <h3>Price Manager</h3> 17 <h3>Price Manager</h3>
18 <select style="float: right; margin: 7px 10px; width: 150px; height: 26px; padding: 0 0;" class="form-control" ng-model="sendEmail.pricing" ng-change="confirmMail()"> 18 <select style="float: right; margin: 7px 10px; width: 150px; height: 26px; padding: 0 0;" class="form-control" ng-model="sendEmail.pricing" ng-change="confirmMail()">
19 <option value="" disabled selected="selected">Send Pricing Email</option> 19 <option value="" disabled selected="selected">Send Pricing Email</option>
20 <option ng-repeat="margins in marginList" value="{{margins.id}}">{{margins.marginName}}</option> 20 <option ng-repeat="margins in marginList" value="{{margins.id}}">{{margins.marginName}}</option>
21 <option disabled>_______________</option> 21 <option disabled>_______________</option>
22 <option value="all">Distribute All</option> 22 <option value="all">Distribute All</option>
23 </select> 23 </select>
24 </div> 24 </div>
25 <!-- /widget-header --> 25 <!-- /widget-header -->
26 <div class="widget-content"> 26 <div class="widget-content">
27 <h4>Update Fuel Price Here</h4> 27 <h4>Update Fuel Price Here</h4>
28 <table class="table"> 28 <table class="table">
29 <thead> 29 <thead>
30 <tr> 30 <tr>
31 <th> Product</th> 31 <th> Product</th>
32 <th> Cost</th> 32 <th> Cost</th>
33 <th> Margin</th> 33 <th> Margin</th>
34 <th> PAP(Total)</th> 34 <th> PAP(Total)</th>
35 <th style="color: #F90;"> Expires</th> 35 <th style="color: #F90;"> Expires</th>
36 </tr> 36 </tr>
37 </thead> 37 </thead>
38 <tbody> 38 <tbody>
39 <tr ng-repeat="fuelPricing in newFuelPricing"> 39 <tr ng-repeat="fuelPricing in newFuelPricing">
40 <td> 40 <td>
41 <span>{{fuelPricing.name}}</span> 41 <span>{{fuelPricing.name}}</span>
42 </td> 42 </td>
43 <td> 43 <td>
44 <input type="text" class="form-control" ng-model="fuelPricing.fuelPricing.cost" style="height:31px; width: 50px; padding: 6px 6px"> 44 <input type="text" class="form-control" ng-model="fuelPricing.fuelPricing.cost" style="height:31px; width: 50px; padding: 6px 6px">
45 </td> 45 </td>
46 <td> 46 <td>
47 <input type="text" class="form-control" ng-model="fuelPricing.fuelPricing.papMargin" style="height:31px; width: 50px; padding: 6px 6px;"> 47 <input type="text" class="form-control" ng-model="fuelPricing.fuelPricing.papMargin" style="height:31px; width: 50px; padding: 6px 6px;">
48 </td> 48 </td>
49 <td> 49 <td>
50 <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.fuelPricing.cost -- fuelPricing.fuelPricing.papMargin | number : 2 }}</span> 50 <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.fuelPricing.cost -- fuelPricing.fuelPricing.papMargin | number : 2 }}</span>
51 </td> 51 </td>
52 <td> 52 <td>
53 <input type="text" class="form-control" datepicker ng-model="fuelPricing.fuelPricing.expirationDate" style="height:31px; width: 100px; padding: 6px 6px;"> 53 <input type="text" class="form-control" datepicker ng-model="fuelPricing.fuelPricing.expirationDate" style="height:31px; width: 100px; padding: 6px 6px;">
54 </td> 54 </td>
55 </tr> 55 </tr>
56 </tbody> 56 </tbody>
57 </table> 57 </table>
58 <div class="row" style="margin-left: 0px;"> 58 <div class="row" style="margin-left: 0px;">
59 <div class="col-md-12" style= "text-align: right;"> 59 <div class="col-md-12" style= "text-align: right;">
60 <button type="button" class="btn btn-success btn-xs" ng-click="updateFuelPricingClick()">Save</button> 60 <button type="button" class="btn btn-success btn-xs" ng-click="updateFuelPricingClick()">Save</button>
61 </div> 61 </div>
62 </div> 62 </div>
63 </div> 63 </div>
64 <!-- /widget-content --> 64 <!-- /widget-content -->
65 </div> 65 </div>
66 <!-- /widget --> 66 <!-- /widget -->
67 </div> 67 </div>
68 68
69 <div class="col-md-7"> 69 <div class="col-md-7">
70 <div class="widget stacked"> 70 <div class="widget stacked">
71 <div class="widget-header"> 71 <div class="widget-header">
72 <i class="fa fa-pencil"></i> 72 <i class="fa fa-pencil"></i>
73 <h3><b>JET-A</b> Customer Margin Template</h3> 73 <h3><b>JET-A</b> Customer Margin Template</h3>
74 <div class="pull-right"> 74 <div class="pull-right">
75 <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> 75 <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>
76 </div> 76 </div>
77 </div> 77 </div>
78 <!-- /widget-header --> 78 <!-- /widget-header -->
79 <div class="widget-content" style="padding-top: 10px;"> 79 <div class="widget-content" style="padding-top: 10px;">
80 <section id="accordions"> 80 <section id="accordions">
81 <div class="newCustomAccordian"> 81 <div class="newCustomAccordian">
82 <!-- tab 1 --> 82 <!-- tab 1 -->
83 <div ng-repeat="jets in aTypeJets"> 83 <div ng-repeat="jets in aTypeJets">
84 <div class="customAccordianHeader" id="{{jets.id}}"> 84 <div class="customAccordianHeader" id="{{jets.id}}">
85 <span>{{jets.marginName}}</span> 85 <span>{{jets.marginName}}</span>
86 <select class="form-control" disabled="true" ng-model="jets.pricingStructure"> 86 <select class="form-control" disabled="true" ng-model="jets.pricingStructure">
87 <option value="" disabled selected>Pricing Structure</option> 87 <option value="" disabled selected>Pricing Structure</option>
88 <option value="minus">Retail-(minus)</option> 88 <option value="minus">Retail-(minus)</option>
89 <option value="plus">Cost+(plus)</option> 89 <option value="plus">Cost+(plus)</option>
90 <option value="equal">Direct=(equal)</option> 90 <option value="equal">Direct=(equal)</option>
91 </select> 91 </select>
92 <span style="margin-right: 0;">$</span> 92 <span style="margin-right: 0;">$</span>
93 <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue"> 93 <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue">
94 <div class="pull-right"> 94 <div class="pull-right">
95 <button class="btn btn-success" style="display: none; background-image: none; background-color: #f3f3f3; color: #333; border:0;" ng-click="closeAccordian(jets)">Close</button>
95 <button class="btn btn-success" style="display: none;" ng-click="saveJetAccordian(jets)">Save</button> 96 <button class="btn btn-success" style="display: none;" ng-click="saveJetAccordian(jets)">Save</button>
96 <button class="btn btn-danger" style="display: none;" ng-click="deleteJetAccordian(jets.id)">Delete</button> 97 <button class="btn btn-danger" style="display: none;" ng-click="deleteJetAccordian(jets.id)">Delete</button>
97 <button class="btn btn-default" ng-click="toggleJestAccordian(jets.id, $index)">Edit</button> 98 <button class="btn btn-default" ng-click="toggleJestAccordian(jets.id, $index)">Edit</button>
98 </div> 99 </div>
99 <div class="clearfix"></div> 100 <div class="clearfix"></div>
100 </div> 101 </div>
101 <div class="customAccordianTabBody {{jets.id}}" style="display: none;"> 102 <div class="customAccordianTabBody {{jets.id}}" style="display: none;">
102 <div class="tierListWrap" ng-repeat="tier in aTypeJets[$index].tierList"> 103 <div class="tierListWrap" ng-repeat="tier in aTypeJets[$index].tierList">
103 <div class="tierListHead" style="height: 36px;"> 104 <div class="tierListHead" style="height: 36px;">
104 <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal. 105 <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal.
105 </span> 106 </span>
106 <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> 107 <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>
107 108
108 <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier"> 109 <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier">
109 <span ng-show="showEditTier">-</span> 110 <span ng-show="showEditTier">-</span>
110 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.maxTierBreak" ng-show="showEditTier"> <b ng-show="showEditTier">gal.</b> 111 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.maxTierBreak" ng-show="showEditTier"> <b ng-show="showEditTier">gal.</b>
111 <div class="clearfix"></div> 112 <div class="clearfix"></div>
112 </div> 113 </div>
113 <div class="tierListBody" style="height: 35px;"> 114 <div class="tierListBody" style="height: 35px;">
114 <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span> 115 <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span>
115 116
116 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> &nbsp; 117 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> &nbsp;
117 118
118 <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span> 119 <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span>
119 120
120 <button class="addTierBtn" ng-click="editTier(tier, $parent.$index)" ng-show="showEditTier">Save</button> 121 <button class="addTierBtn" ng-click="editTier(tier, $parent.$index)" ng-show="showEditTier">Save</button>
121 122
122 <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i> 123 <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i>
123 124
124 <div class="clearfix"></div> 125 <div class="clearfix"></div>
125 </div> 126 </div>
126 </div> 127 </div>
127 <div class="tierListWrap" style="width: 160px;"> 128 <div class="tierListWrap" style="width: 160px;">
128 <div class="tierListHead" style="border-right: 1px solid #ddd;"> 129 <div class="tierListHead" style="border-right: 1px solid #ddd;">
129 <input type="text" placeholder="min" ng-model="trData[$index].minTierBreak"> 130 <input type="text" placeholder="min" ng-model="trData[$index].minTierBreak">
130 <span>-</span> 131 <span>-</span>
131 <input type="text" placeholder="max" ng-model="trData[$index].maxTierBreak"> <b>gal.</b> 132 <input type="text" placeholder="max" ng-model="trData[$index].maxTierBreak"> <b>gal.</b>
132 <div class="clearfix"></div> 133 <div class="clearfix"></div>
133 </div> 134 </div>
134 <div class="tierListBody" style="border-right: 1px solid #ddd;"> 135 <div class="tierListBody" style="border-right: 1px solid #ddd;">
135 <span style="color: #449d44;">$</span> 136 <span style="color: #449d44;">$</span>
136 <input type="text" placeholder="margin" ng-model="trData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;"> 137 <input type="text" placeholder="margin" ng-model="trData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;">
137 <button class="addTierBtn" ng-click="addNewTier(jets.id, trData, $index)">Add Tier</button> 138 <button class="addTierBtn" ng-click="addNewTier(jets.id, trData, $index)">Add Tier</button>
138 <div class="clearfix"></div> 139 <div class="clearfix"></div>
139 </div> 140 </div>
140 </div> 141 </div>
141 <!-- <div class="tierListWrap" style="width: 32px;"> 142 <!-- <div class="tierListWrap" style="width: 32px;">
142 <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;"> 143 <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;">
143 &nbsp; 144 &nbsp;
144 </div> 145 </div>
145 <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;"> 146 <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;">
146 <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i> 147 <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i>
147 </div> 148 </div>
148 </div> --> 149 </div> -->
149 <div class="clearfix"></div> 150 <div class="clearfix"></div>
150 <textarea class="form-control resizeTextarea" ng-model="jets.message" placeholder="Message..."></textarea> 151 <!-- <textarea class="form-control resizeTextarea" ng-model="jets.message" placeholder="Message..."></textarea> -->
152 <br/>
153 <div ckeditor="options" ng-model="jets.message" ready="onReady()"></div>
151 </div> 154 </div>
152 </div> 155 </div>
153 </div> 156 </div>
154 </section> 157 </section>
155 <!-- <div class="row">&nbsp;</div> 158 <!-- <div class="row">&nbsp;</div>
156 <div class="row"> 159 <div class="row">
157 <div class="form-group"> 160 <div class="form-group">
158 <div class="col-lg-12 text-right"> 161 <div class="col-lg-12 text-right">
159 <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button>&nbsp;&nbsp; 162 <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button>&nbsp;&nbsp;
160 <button type="reset" class="btn btn-default">Cancel</button> 163 <button type="reset" class="btn btn-default">Cancel</button>
161 </div> 164 </div>
162 </div> 165 </div>
163 </div> --> 166 </div> -->
164 </div> 167 </div>
165 <!-- /widget-content --> 168 <!-- /widget-content -->
166 </div> 169 </div>
167 <!-- /widget --> 170 <!-- /widget -->
168 </div> 171 </div>
169 <!-- /span6 --> 172 <!-- /span6 -->
170 </div> 173 </div>
171 <!-- /span12 --> 174 <!-- /span12 -->
172 </div> 175 </div>
173 <!-- /row --> 176 <!-- /row -->
174 <div class="container"> 177 <div class="container">
175 <div class="row"> 178 <div class="row">
176 <div class="col-md-5"> 179 <div class="col-md-5">
177 <div class="widget stacked"> 180 <div class="widget stacked">
178 <div class="widget-header"> 181 <div class="widget-header">
179 <i class="fa fa-pencil"></i> 182 <i class="fa fa-pencil"></i>
180 <h3>Queue Future Pricing</h3> 183 <h3>Queue Future Pricing</h3>
181 </div> 184 </div>
182 <!-- /widget-header --> 185 <!-- /widget-header -->
183 <div class="widget-content"> 186 <div class="widget-content">
184 <h4>Update Queue Future Fuel Pricing Here</h4> 187 <h4>Update Queue Future Fuel Pricing Here</h4>
185 <table class="table"> 188 <table class="table">
186 <thead> 189 <thead>
187 <tr> 190 <tr>
188 <th> Product</th> 191 <th> Product</th>
189 <th> Cost</th> 192 <th> Cost</th>
190 <th> PAP(Total)</th> 193 <th> PAP(Total)</th>
191 <th> Deploy</th> 194 <th> Deploy</th>
192 <th style="color: #F90;"> Next Expiration</th> 195 <th style="color: #F90;"> Next Expiration</th>
193 </tr> 196 </tr>
194 </thead> 197 </thead>
195 <tbody> 198 <tbody>
196 <tr ng-repeat="fuelPricing in newFuelPricing"> 199 <tr ng-repeat="fuelPricing in newFuelPricing">
197 <td> 200 <td>
198 <span>{{fuelPricing.name}}</span> 201 <span>{{fuelPricing.name}}</span>
199 </td> 202 </td>
200 <td> 203 <td>
201 <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.cost" style="height:31px; width: 50px; padding: 6px 6px;"> 204 <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.cost" style="height:31px; width: 50px; padding: 6px 6px;">
202 </td> 205 </td>
203 <td> 206 <td>
204 <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.futureFuelPricing.cost -- fuelPricing.fuelPricing.papMargin | number : 2}}</span> 207 <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.futureFuelPricing.cost -- fuelPricing.fuelPricing.papMargin | number : 2}}</span>
205 </td> 208 </td>
206 <td> 209 <td>
207 <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: 100px; padding: 6px 6px;"> 210 <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: 100px; padding: 6px 6px;">
208 </td> 211 </td>
209 <td> 212 <td>
210 <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: 100px; padding: 6px 6px;"> 213 <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: 100px; padding: 6px 6px;">
211 </td> 214 </td>
212 </tr> 215 </tr>
213 </tbody> 216 </tbody>
214 </table> 217 </table>
215 <div class="row" style="margin-left: 0px;"> 218 <div class="row" style="margin-left: 0px;">
216 <div class="col-md-12" style= "text-align: right;"> 219 <div class="col-md-12" style= "text-align: right;">
217 <button type="button" class="btn btn-success btn-xs" ng-click="updateFutureFuelPricingClick()">Save</button> 220 <button type="button" class="btn btn-success btn-xs" ng-click="updateFutureFuelPricingClick()">Save</button>
218 </div> 221 </div>
219 </div> 222 </div>
220 </div> 223 </div>
221 <!-- /widget-content --> 224 <!-- /widget-content -->
222 </div> 225 </div>
223 <!-- /widget --> 226 <!-- /widget -->
224 </div> 227 </div>
225 <div class="col-md-7"> 228 <div class="col-md-7">
226 <div class="widget stacked"> 229 <div class="widget stacked">
227 <div class="widget-header"> 230 <div class="widget-header">
228 <i class="fa fa-pencil"></i> 231 <i class="fa fa-pencil"></i>
229 <h3><b style="color: 39c;">AVGAS 100LL </b> <i>Customer Margin Template</i></h3> 232 <h3><b style="color: 39c;">AVGAS 100LL </b> <i>Customer Margin Template</i></h3>
230 <div class="pull-right"> 233 <div class="pull-right">
231 <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> 234 <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>
232 </div> 235 </div>
233 </div> 236 </div>
234 <!-- /widget-header --> 237 <!-- /widget-header -->
235 <div class="widget-content" style="padding-top: 10px;"> 238 <div class="widget-content" style="padding-top: 10px;">
236 <section id="accordions"> 239 <section id="accordions">
237 <div class="newCustomAccordian"> 240 <div class="newCustomAccordian">
238 <!-- tab 1 --> 241 <!-- tab 1 -->
239 <div ng-repeat="jets in vTypeJets"> 242 <div ng-repeat="jets in vTypeJets">
240 <div class="customAccordianHeader" id="{{jets.id}}"> 243 <div class="customAccordianHeader" id="{{jets.id}}">
241 <span>{{jets.marginName}}</span> 244 <span>{{jets.marginName}}</span>
242 <select class="form-control" disabled="true" ng-model="jets.pricingStructure"> 245 <select class="form-control" disabled="true" ng-model="jets.pricingStructure">
243 <option value="" disabled selected>Pricing Structure</option> 246 <option value="" disabled selected>Pricing Structure</option>
244 <option value="minus">Retail-(minus)</option> 247 <option value="minus">Retail-(minus)</option>
245 <option value="plus">Cost+(plus)</option> 248 <option value="plus">Cost+(plus)</option>
246 <option value="equal">Direct=(equal)</option> 249 <option value="equal">Direct=(equal)</option>
247 </select> 250 </select>
248 <span style="margin-right: 0;">$</span> 251 <span style="margin-right: 0;">$</span>
249 <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue"> 252 <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue">
250 <div class="pull-right"> 253 <div class="pull-right">
254 <button class="btn btn-success" style="display: none; background-image: none; background-color: #f3f3f3; color: #333; border:0;" ng-click="closeAccordianVtype(jets)">Close</button>
251 <button class="btn btn-success" style="display: none;" ng-click="saveVtypeJetAccordian(jets)">Save</button> 255 <button class="btn btn-success" style="display: none;" ng-click="saveVtypeJetAccordian(jets)">Save</button>
252 <button class="btn btn-danger" style="display: none;" ng-click="deleteVtypeJetAccordian(jets.id)">Delete</button> 256 <button class="btn btn-danger" style="display: none;" ng-click="deleteVtypeJetAccordian(jets.id)">Delete</button>
253 <button class="btn btn-default" ng-click="toggleVtypeJestAccordian(jets.id, $index)">Edit</button> 257 <button class="btn btn-default" ng-click="toggleVtypeJestAccordian(jets.id, $index)">Edit</button>
254 </div> 258 </div>
255 <div class="clearfix"></div> 259 <div class="clearfix"></div>
256 </div> 260 </div>
257 <div class="customAccordianTabBody {{jets.id}}" style="display: none;"> 261 <div class="customAccordianTabBody {{jets.id}}" style="display: none;">
258 <div class="tierListWrap" ng-repeat="tier in vTypeJets[$index].tierList"> 262 <div class="tierListWrap" ng-repeat="tier in vTypeJets[$index].tierList">
259 <div class="tierListHead" style="height: 36px;"> 263 <div class="tierListHead" style="height: 36px;">
260 <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal. 264 <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal.
261 </span> 265 </span>
262 <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> 266 <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>
263 267
264 <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier"> 268 <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier">
265 <span ng-show="showEditTier">-</span> 269 <span ng-show="showEditTier">-</span>
266 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.maxTierBreak" ng-show="showEditTier"> <b ng-show="showEditTier">gal.</b> 270 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.maxTierBreak" ng-show="showEditTier"> <b ng-show="showEditTier">gal.</b>
267 <div class="clearfix"></div> 271 <div class="clearfix"></div>
268 </div> 272 </div>
269 <div class="tierListBody" style="height: 35px;"> 273 <div class="tierListBody" style="height: 35px;">
270 <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span> 274 <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span>
271 275
272 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> &nbsp; 276 <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> &nbsp;
273 277
274 <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span> 278 <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span>
275 279
276 <button class="addTierBtn" ng-click="editVtypeTier(tier, $parent.$index)" ng-show="showEditTier">Save</button> 280 <button class="addTierBtn" ng-click="editVtypeTier(tier, $parent.$index)" ng-show="showEditTier">Save</button>
277 281
278 <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteVtypeTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i> 282 <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteVtypeTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i>
279 283
280 <div class="clearfix"></div> 284 <div class="clearfix"></div>
281 </div> 285 </div>
282 </div> 286 </div>
283 <div class="tierListWrap" style="width: 160px;"> 287 <div class="tierListWrap" style="width: 160px;">
284 <div class="tierListHead" style="border-right: 1px solid #ddd;"> 288 <div class="tierListHead" style="border-right: 1px solid #ddd;">
285 <input type="text" placeholder="min" ng-model="vtrData[$index].minTierBreak"> 289 <input type="text" placeholder="min" ng-model="vtrData[$index].minTierBreak">
286 <span>-</span> 290 <span>-</span>
287 <input type="text" placeholder="max" ng-model="vtrData[$index].maxTierBreak"> <b>gal.</b> 291 <input type="text" placeholder="max" ng-model="vtrData[$index].maxTierBreak"> <b>gal.</b>
288 <div class="clearfix"></div> 292 <div class="clearfix"></div>
289 </div> 293 </div>
290 <div class="tierListBody" style="border-right: 1px solid #ddd;"> 294 <div class="tierListBody" style="border-right: 1px solid #ddd;">
291 <span style="color: #449d44;">$</span> 295 <span style="color: #449d44;">$</span>
292 <input type="text" placeholder="margin" ng-model="vtrData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;"> 296 <input type="text" placeholder="margin" ng-model="vtrData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;">
293 <button class="addTierBtn" ng-click="addNewVtypeTier(jets.id, vtrData, $index)">Add Tier</button> 297 <button class="addTierBtn" ng-click="addNewVtypeTier(jets.id, vtrData, $index)">Add Tier</button>
294 <div class="clearfix"></div> 298 <div class="clearfix"></div>
295 </div> 299 </div>
296 </div> 300 </div>
297 <!-- <div class="tierListWrap" style="width: 32px;"> 301 <!-- <div class="tierListWrap" style="width: 32px;">
298 <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;"> 302 <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;">
299 &nbsp; 303 &nbsp;
300 </div> 304 </div>
301 <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;"> 305 <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;">
302 <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i> 306 <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i>
303 </div> 307 </div>
304 </div> --> 308 </div> -->
305 <div class="clearfix"></div> 309 <div class="clearfix"></div>
306 <textarea class="form-control resizeTextarea" ng-model="jets.message" placeholder="Message..."></textarea> 310 <br/>
311 <div ckeditor="options" ng-model="jets.message" ready="onReady()"></div>
307 </div> 312 </div>
308 </div> 313 </div>
309 </div> 314 </div>
310 </section> 315 </section>
311 <!-- <div class="row">&nbsp;</div> 316 <!-- <div class="row">&nbsp;</div>
312 <div class="row"> 317 <div class="row">
313 <div class="form-group"> 318 <div class="form-group">
314 <div class="col-lg-12 text-right"> 319 <div class="col-lg-12 text-right">
315 <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button>&nbsp;&nbsp; 320 <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button>&nbsp;&nbsp;
316 <button type="reset" class="btn btn-default">Cancel</button> 321 <button type="reset" class="btn btn-default">Cancel</button>
317 </div> 322 </div>
318 </div> 323 </div>
319 </div> --> 324 </div> -->
320 </div> 325 </div>
321 <!-- /widget-content --> 326 <!-- /widget-content -->
322 </div> 327 </div>
323 <!-- /widget --> 328 <!-- /widget -->
324 </div> 329 </div>
325 <!-- /span6 --> 330 <!-- /span6 -->
326 </div> 331 </div>
327 </div> 332 </div>
328 </div> 333 </div>
329 </div> <!-- /container --> 334 </div> <!-- /container -->
330 335
331 336
332 <div class="addNewMargin" style="display: none;"> 337 <div class="addNewMargin" style="display: none;">
333 <div class="customBackdrop"> 338 <div class="customBackdrop">
334 <div class="customModalInner" style="max-width: 700px;"> 339 <div class="customModalInner" style="max-width: 700px;">
335 <div class="customModelHead"> 340 <div class="customModelHead">
336 <p class="pull-left"> 341 <p class="pull-left">
337 <i class="fa fa-list-alt" aria-hidden="true"></i> 342 <i class="fa fa-list-alt" aria-hidden="true"></i>
338 Add New JET-A Customer Margin 343 Add New JET-A Customer Margin
339 </p> 344 </p>
340 <p class="pull-right"> 345 <p class="pull-right">
341 <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeMarginPopup()"></i> 346 <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeMarginPopup()"></i>
342 </p> 347 </p>
343 <div class="clearfix"></div> 348 <div class="clearfix"></div>
344 </div> 349 </div>
345 <div class="customModelBody"> 350 <div class="customModelBody">
346 351
347 <div class="customAccordianHeader customActive"> 352 <div class="customAccordianHeader customActive">
348 <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newJet.marginName"> 353 <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newJet.marginName">
349 <select class="form-control" ng-model="newJet.pricingStructure"> 354 <select class="form-control" ng-model="newJet.pricingStructure">
350 <option value="" disabled selected>Pricing Structure</option> 355 <option value="" disabled selected>Pricing Structure</option>
351 <option value="minus">Retail-(minus)</option> 356 <option value="minus">Retail-(minus)</option>
352 <option value="plus">Cost+(plus)</option> 357 <option value="plus">Cost+(plus)</option>
353 <option value="equal">Direct=(equal)</option> 358 <option value="equal">Direct=(equal)</option>
354 </select> 359 </select>
355 <span style="margin-right: 0;">$</span> 360 <span style="margin-right: 0;">$</span>
356 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newJet.marginValue"> 361 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newJet.marginValue">
357 <div class="clearfix"></div> 362 <div class="clearfix"></div>
358 </div> 363 </div>
359 <div class="customAccordianTabBody"> 364 <div class="customAccordianTabBody">
360 <textarea class="form-control resizeTextarea" ng-model="newJet.message" placeholder="Message..."></textarea> 365 <div ckeditor="options" ng-model="newJet.message" ready="onReady()"></div>
361 </div> 366 </div>
362 367
363 </div> 368 </div>
364 <div class="customModelFooter text-center"> 369 <div class="customModelFooter text-center">
365 <input type="submit" value="Save" class="btn" ng-click="addNewATypeJet()"> 370 <input type="submit" value="Save" class="btn" ng-click="addNewATypeJet()">
366 <button class="btn" ng-click="closeMarginPopup()">Cancel</button> 371 <button class="btn" ng-click="closeMarginPopup()">Cancel</button>
367 </div> 372 </div>
368 </div> 373 </div>
369 </div> 374 </div>
370 </div> 375 </div>
371 376
372 <div class="addNewVtype" style="display: none;"> 377 <div class="addNewVtype" style="display: none;">
373 <div class="customBackdrop"> 378 <div class="customBackdrop">
374 <div class="customModalInner" style="max-width: 700px;"> 379 <div class="customModalInner" style="max-width: 700px;">
375 <div class="customModelHead"> 380 <div class="customModelHead">
376 <p class="pull-left"> 381 <p class="pull-left">
377 <i class="fa fa-list-alt" aria-hidden="true"></i> 382 <i class="fa fa-list-alt" aria-hidden="true"></i>
378 Add New AVGAS 100LL Customer Margin Template 383 Add New AVGAS 100LL Customer Margin Template
379 </p> 384 </p>
380 <p class="pull-right"> 385 <p class="pull-right">
381 <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeNewVtypePop()"></i> 386 <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeNewVtypePop()"></i>
382 </p> 387 </p>
383 <div class="clearfix"></div> 388 <div class="clearfix"></div>
384 </div> 389 </div>
385 <div class="customModelBody"> 390 <div class="customModelBody">
386 391
387 <div class="customAccordianHeader customActive"> 392 <div class="customAccordianHeader customActive">
388 <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newVtypeJet.marginName"> 393 <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newVtypeJet.marginName">
389 <select class="form-control" ng-model="newVtypeJet.pricingStructure"> 394 <select class="form-control" ng-model="newVtypeJet.pricingStructure">
390 <option value="" disabled selected>Pricing Structure</option> 395 <option value="" disabled selected>Pricing Structure</option>
391 <option value="minus">Retail-(minus)</option> 396 <option value="minus">Retail-(minus)</option>
392 <option value="plus">Cost+(plus)</option> 397 <option value="plus">Cost+(plus)</option>
393 <option value="equal">Direct=(equal)</option> 398 <option value="equal">Direct=(equal)</option>
394 </select> 399 </select>
395 <span style="margin-right: 0;">$</span> 400 <span style="margin-right: 0;">$</span>
396 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newVtypeJet.marginValue"> 401 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newVtypeJet.marginValue">
397 <div class="clearfix"></div> 402 <div class="clearfix"></div>
398 </div> 403 </div>
399 <div class="customAccordianTabBody"> 404 <div class="customAccordianTabBody">
400 <textarea class="form-control resizeTextarea" ng-model="newVtypeJet.message" placeholder="Message..."></textarea> 405 <div ckeditor="options" ng-model="newVtypeJet.message" ready="onReady()"></div>
401 </div> 406 </div>
402 407
403 </div> 408 </div>
404 <div class="customModelFooter text-center"> 409 <div class="customModelFooter text-center">
405 <input type="submit" value="Save" class="btn" ng-click="addNewVTypeJet()"> 410 <input type="submit" value="Save" class="btn" ng-click="addNewVTypeJet()">
406 <button class="btn" ng-click="closeNewVtypePop()">Cancel</button> 411 <button class="btn" ng-click="closeNewVtypePop()">Cancel</button>
407 </div> 412 </div>
408 </div> 413 </div>
409 </div> 414 </div>
410 </div> 415 </div>
411 416
412 <div class="customConfirmPopBackdrop" id="confirm1" style="display: none;"> 417 <div class="customConfirmPopBackdrop" id="confirm1" style="display: none;">
413 <div class="customModalInner"> 418 <div class="customModalInner">
414 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 419 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
415 <table> 420 <table>
416 <tr> 421 <tr>
417 <td> 422 <td>
418 <img src="img/info.png" style="width: 50px;"> 423 <img src="img/info.png" style="width: 50px;">
419 </td> 424 </td>
420 <td> 425 <td>
421 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p> 426 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p>
422 </td> 427 </td>
423 </tr> 428 </tr>
424 </table> 429 </table>
425 </div> 430 </div>
426 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 431 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
427 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="saveAndCloseConfirm()">Yes</button> 432 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="saveAndCloseConfirm()">Yes</button>
428 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button> 433 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button>
429 </div> 434 </div>
430 </div> 435 </div>
431 </div> 436 </div>
432 437
433 <div class="customConfirmPopBackdrop" id="deleteTierConfirm" style="display: none;"> 438 <div class="customConfirmPopBackdrop" id="deleteTierConfirm" style="display: none;">
434 <div class="customModalInner"> 439 <div class="customModalInner">
435 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 440 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
436 <table> 441 <table>
437 <tr> 442 <tr>
438 <td> 443 <td>
439 <img src="img/info.png" style="width: 50px;"> 444 <img src="img/info.png" style="width: 50px;">
440 </td> 445 </td>
441 <td> 446 <td>
442 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p> 447 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p>
443 </td> 448 </td>
444 </tr> 449 </tr>
445 </table> 450 </table>
446 </div> 451 </div>
447 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 452 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
448 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteTier()">Yes</button> 453 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteTier()">Yes</button>
449 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelTierDelete()">Cancel</button> 454 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelTierDelete()">Cancel</button>
450 </div> 455 </div>
451 </div> 456 </div>
452 </div> 457 </div>
453 458
454 <div class="customConfirmPopBackdrop" id="deleteVtypeTierConfirm" style="display: none;"> 459 <div class="customConfirmPopBackdrop" id="deleteVtypeTierConfirm" style="display: none;">
455 <div class="customModalInner"> 460 <div class="customModalInner">
456 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 461 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
457 <table> 462 <table>
458 <tr> 463 <tr>
459 <td> 464 <td>
460 <img src="img/info.png" style="width: 50px;"> 465 <img src="img/info.png" style="width: 50px;">
461 </td> 466 </td>
462 <td> 467 <td>
463 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p> 468 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p>
464 </td> 469 </td>
465 </tr> 470 </tr>
466 </table> 471 </table>
467 </div> 472 </div>
468 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 473 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
469 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteVtypeTier()">Yes</button> 474 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteVtypeTier()">Yes</button>
470 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeTierDelete()">Cancel</button> 475 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeTierDelete()">Cancel</button>
471 </div> 476 </div>
472 </div> 477 </div>
473 </div> 478 </div>
474 479
475 <div class="customConfirmPopBackdrop" id="deleteMargin" style="display: none;"> 480 <div class="customConfirmPopBackdrop" id="deleteMargin" style="display: none;">
476 <div class="customModalInner"> 481 <div class="customModalInner">
477 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 482 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
478 <table> 483 <table>
479 <tr> 484 <tr>
480 <td> 485 <td>
481 <img src="img/info.png" style="width: 50px;"> 486 <img src="img/info.png" style="width: 50px;">
482 </td> 487 </td>
483 <td> 488 <td>
484 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p> 489 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p>
485 </td> 490 </td>
486 </tr> 491 </tr>
487 </table> 492 </table>
488 </div> 493 </div>
489 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 494 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
490 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteMargin()">Yes</button> 495 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeleteMargin()">Yes</button>
491 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelMarginDelete()">Cancel</button> 496 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelMarginDelete()">Cancel</button>
492 </div> 497 </div>
493 </div> 498 </div>
494 </div> 499 </div>
495 500
496 <div class="customConfirmPopBackdrop" id="deleteVtypeMargin" style="display: none;"> 501 <div class="customConfirmPopBackdrop" id="deleteVtypeMargin" style="display: none;">
497 <div class="customModalInner"> 502 <div class="customModalInner">
498 <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> 503 <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
499 <table> 504 <table>
500 <tr> 505 <tr>
501 <td> 506 <td>
502 <img src="img/info.png" style="width: 50px;"> 507 <img src="img/info.png" style="width: 50px;">
503 </td> 508 </td>
504 <td> 509 <td>
505 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p> 510 <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p>
506 </td> 511 </td>
507 </tr> 512 </tr>
508 </table> 513 </table>
509 </div> 514 </div>
510 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> 515 <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
511 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeletVtypeMargin()">Yes</button> 516 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="confirmDeletVtypeMargin()">Yes</button>
512 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeMarginDelete()">Cancel</button> 517 <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeMarginDelete()">Cancel</button>
513 </div> 518 </div>
514 </div> 519 </div>
515 </div> 520 </div>
516 521
517 <!-- Le javascript 522 <!-- Le javascript
518 ================================================== --> 523 ================================================== -->
519 <!-- Placed at the end of the document so the pages load faster --> 524 <!-- Placed at the end of the document so the pages load faster -->
520 <!-- <script> 525 <!-- <script>
521 CKEDITOR.replace( 'editor2', { 526 CKEDITOR.replace( 'editor2', {
522 height: 250, 527 height: 250,
523 extraPlugins: 'divarea' 528 extraPlugins: 'divarea'
524 } ); 529 } );
525 </script> --> 530 </script> -->
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.2",
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",
39 "angular-ui-calendar": "^1.0.2"
38 } 40 }
39 } 41 }
40 42