Commit 68c767613f27b6c9e0160fc1a133599bf076fbda
1 parent
4441858d80
Exists in
master
fixed ramp fee and fuel manager bugs
Showing
4 changed files
with
399 additions
and
480 deletions
Show diff stats
app/partials/fuelManager/fuelManager.controller.js
1 | 1 | ||
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | //Load controller | 4 | //Load controller |
5 | angular.module('acufuel') | 5 | angular.module('acufuel') |
6 | 6 | ||
7 | //.controller('fuelManagerController', ['$scope', 'fuelManagerService',function($scope, fuelManagerService) { | 7 | //.controller('fuelManagerController', ['$scope', 'fuelManagerService',function($scope, fuelManagerService) { |
8 | .controller('fuelManagerController', ['$scope', '$rootScope', '$uibModal', '$filter', '$http', 'fuelManagerService', fuelManagerController]); | 8 | .controller('fuelManagerController', ['$scope', '$rootScope', '$uibModal', '$filter', '$http', 'fuelManagerService', fuelManagerController]); |
9 | 9 | ||
10 | function fuelManagerController($scope, $rootScope, $uibModal, $filter, $http, fuelManagerService) { | 10 | function fuelManagerController($scope, $rootScope, $uibModal, $filter, $http, fuelManagerService) { |
11 | 11 | ||
12 | $scope.currentUserData = JSON.parse(localStorage.getItem('userProfileId')); | 12 | $scope.currentUserData = JSON.parse(localStorage.getItem('userProfileId')); |
13 | $scope.showLoader = true; | 13 | $scope.showLoader = true; |
14 | 14 | ||
15 | fuelManagerService.getFullList().then(function(result) { | 15 | fuelManagerService.getFullList().then(function(result) { |
16 | $scope.fullJetList = result; | 16 | $scope.fullJetList = result; |
17 | console.log('$scope.fullJetList', $scope.fullJetList); | 17 | console.log('$scope.fullJetList', $scope.fullJetList); |
18 | for (var i = 0; i<$scope.fullJetList.length; i++) { | 18 | for (var i = 0; i<$scope.fullJetList.length; i++) { |
19 | for (var j = 0; j<$scope.fullJetList[i].aircraftsSize.length; j++) { | 19 | for (var j = 0; j<$scope.fullJetList[i].aircraftsSize.length; j++) { |
20 | if ($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance != null) { | 20 | if ($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance != null) { |
21 | if ($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != null && $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != '') { | 21 | if ($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != null && $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != '') { |
22 | var newTime = new Date($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); | 22 | var newTime = new Date($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); |
23 | var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 | 23 | var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 |
24 | var dday = newTime.getUTCDate(); | 24 | var dday = newTime.getUTCDate(); |
25 | var dyear = newTime.getUTCFullYear(); | 25 | var dyear = newTime.getUTCFullYear(); |
26 | $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate = dmonth+'/'+dday+'/'+dyear; | 26 | $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate = dmonth+'/'+dday+'/'+dyear; |
27 | console.log('$scope.fullJetList.aircraftsSize.rampFeesAndAvoidance.expirationDate', $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); | 27 | console.log('$scope.fullJetList.aircraftsSize.rampFeesAndAvoidance.expirationDate', $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); |
28 | } | 28 | } |
29 | } | 29 | } |
30 | } | 30 | } |
31 | } | 31 | } |
32 | $scope.showLoader = false; | 32 | $scope.showLoader = false; |
33 | }) | 33 | }) |
34 | 34 | ||
35 | $scope.avoidanceList = {}; | 35 | $scope.avoidanceList = {}; |
36 | 36 | ||
37 | $scope.updateList = function(fullJetList){ | 37 | $scope.updateList = function(fullJetList){ |
38 | $scope.showLoader = true; | 38 | $scope.showLoader = true; |
39 | $scope.addData = []; | 39 | $scope.addData = []; |
40 | $scope.newJetList = fullJetList; | 40 | $scope.newJetList = fullJetList; |
41 | if ($scope.currentUserData != undefined || $scope.currentUserData != null) { | 41 | if ($scope.currentUserData != undefined || $scope.currentUserData != null) { |
42 | for(var i=0; i<$scope.newJetList.length;i++){ | 42 | for(var i=0; i<$scope.newJetList.length;i++){ |
43 | for(var j = 0; j < $scope.newJetList[i].aircraftsSize.length; j++){ | 43 | for(var j = 0; j < $scope.newJetList[i].aircraftsSize.length; j++){ |
44 | if($scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance != null){ | 44 | if($scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance != null){ |
45 | if ($scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != null) { | 45 | if ($scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != null) { |
46 | $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate = new Date($scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); | 46 | $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate = new Date($scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); |
47 | $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate = $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate.getTime(); | 47 | $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate = $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate.getTime(); |
48 | } | 48 | } |
49 | $scope.addData.push({ | 49 | $scope.addData.push({ |
50 | //'aircraftType': $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.aircraftType, | 50 | //'aircraftType': $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.aircraftType, |
51 | 'id': $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.id, | 51 | 'id': $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.id, |
52 | 'aircraftSizeId': $scope.newJetList[i].aircraftsSize[j].id, | 52 | 'aircraftSizeId': $scope.newJetList[i].aircraftsSize[j].id, |
53 | 'rampFees': $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.rampFees, | 53 | 'rampFees': $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.rampFees, |
54 | 'avoidance' : $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.avoidance, | 54 | 'avoidance' : $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.avoidance, |
55 | 'applicable' : $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.applicable, | 55 | 'applicable' : $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.applicable, |
56 | 'expirationDate' : $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate, | 56 | 'expirationDate' : $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate, |
57 | 'notes' : $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.notes | 57 | 'notes' : $scope.newJetList[i].aircraftsSize[j].rampFeesAndAvoidance.notes |
58 | }); | 58 | }); |
59 | 59 | ||
60 | } | 60 | } |
61 | } | 61 | } |
62 | } | 62 | } |
63 | $scope.avoidanceList.rampFeesAndAvoidanceList = $scope.addData; | 63 | $scope.avoidanceList.rampFeesAndAvoidanceList = $scope.addData; |
64 | $scope.avoidanceList.fboUserId = $scope.currentUserData; | 64 | $scope.avoidanceList.fboUserId = $scope.currentUserData; |
65 | 65 | ||
66 | /*fuelManagerService.updateFullList($scope.avoidanceList).then(function(result) { | 66 | fuelManagerService.updateFullList($scope.avoidanceList).then(function(result) { |
67 | toastr.success(''+result.success+'', { | 67 | toastr.success(''+result.success+'', { |
68 | closeButton: true | 68 | closeButton: true |
69 | }) | 69 | }) |
70 | fuelManagerService.getFullList().then(function(result) { | 70 | fuelManagerService.getFullList().then(function(result) { |
71 | $scope.fullJetList = result; | 71 | $scope.fullJetList = result; |
72 | $scope.showLoader = false; | 72 | console.log('$scope.fullJetList', $scope.fullJetList); |
73 | }) | 73 | for (var i = 0; i<$scope.fullJetList.length; i++) { |
74 | })*/ | 74 | for (var j = 0; j<$scope.fullJetList[i].aircraftsSize.length; j++) { |
75 | if ($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance != null) { | ||
76 | if ($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != null && $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != '') { | ||
77 | var newTime = new Date($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); | ||
78 | var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 | ||
79 | var dday = newTime.getUTCDate(); | ||
80 | var dyear = newTime.getUTCFullYear(); | ||
81 | $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate = dmonth+'/'+dday+'/'+dyear; | ||
82 | console.log('$scope.fullJetList.aircraftsSize.rampFeesAndAvoidance.expirationDate', $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); | ||
83 | } | ||
84 | } | ||
85 | } | ||
86 | } | ||
87 | $scope.showLoader = false; | ||
88 | }) | ||
89 | }) | ||
75 | 90 | ||
76 | } | 91 | } |
77 | 92 | ||
78 | } | 93 | } |
79 | 94 | ||
80 | $scope.dropOptions = {}; | 95 | $scope.dropOptions = {}; |
81 | 96 | ||
82 | fuelManagerService.getOptions().then(function(result) { | 97 | fuelManagerService.getOptions().then(function(result) { |
83 | $scope.dropOptions = result; | 98 | $scope.dropOptions = result; |
84 | console.log('$scope.dropOptions', $scope.dropOptions); | 99 | console.log('$scope.dropOptions', $scope.dropOptions); |
85 | }) | 100 | }) |
86 | 101 | ||
87 | fuelManagerService.getAircrafts().then(function(result) { | 102 | fuelManagerService.getAircrafts().then(function(result) { |
88 | $scope.aircrafts = result; | 103 | $scope.aircrafts = result; |
89 | }) | 104 | }) |
90 | 105 | ||
106 | $scope.customRampData = {}; | ||
107 | $scope.customRampDataCraft = {}; | ||
108 | $scope.customRampDataCraft.aircraftType = ''; | ||
109 | $scope.customRampDataCraft.aircraftSizeId = ''; | ||
110 | |||
91 | $scope.openRampFeeModal = false; | 111 | $scope.openRampFeeModal = false; |
112 | $scope.showWeightForm = false; | ||
113 | $scope.showMakeModelForm = false; | ||
114 | $scope.showWingspanForm = false; | ||
115 | $scope.showTailForm = false; | ||
116 | |||
92 | $scope.customRampData = {}; | 117 | $scope.customRampData = {}; |
93 | $scope.customRampData.rampFeesAndAvoidanceList = {}; | 118 | $scope.customMakeData = {}; |
94 | $scope.customRampData.rampFeesAndAvoidanceList.aircraftType = null; | 119 | $scope.customWingspanData = {}; |
95 | 120 | $scope.customTailData = {}; | |
96 | $scope.customRampData.rampFeesAndAvoidanceList.aircraftMake = ''; | ||
97 | $scope.customRampData.rampFeesAndAvoidanceList.aircraftSizeId = ''; | ||
98 | $scope.customRampData.rampFeesAndAvoidanceList.tailNumber = ''; | ||
99 | $scope.customRampData.rampFeesAndAvoidanceList.wingspanMin = ''; | ||
100 | $scope.customRampData.rampFeesAndAvoidanceList.wingspanMax = ''; | ||
101 | $scope.customRampData.rampFeesAndAvoidanceList.weightRangeMin = ''; | ||
102 | $scope.customRampData.rampFeesAndAvoidanceList.weightRangeMax = ''; | ||
103 | $scope.customRampData.rampFeesAndAvoidanceList.weightRangeMax = ''; | ||
104 | $scope.customRampData.rampFeesAndAvoidanceList.rampFees = ''; | ||
105 | $scope.customRampData.rampFeesAndAvoidanceList.avoidance = ''; | ||
106 | //$scope.customRampData.fboUserId = ''; | ||
107 | |||
108 | //$scope.rampFeeType = ''; | ||
109 | 121 | ||
110 | $scope.openRampModal = function(){ | 122 | $scope.openRampModal = function(){ |
111 | //console.log('$scope.dropOptions', $scope.dropOptions) | 123 | $scope.showLoader = true; |
112 | if ($scope.customRampData.rampFeesAndAvoidanceList.aircraftType === 'WEIGHT') { | 124 | $scope.openRampFeeModal = true; |
113 | $scope.openRampFeeModal = true; | 125 | if ($scope.customRampDataCraft.aircraftType != null) { |
114 | $scope.showWeight = true; | 126 | for (var i = 0; i < $scope.dropOptions.length; i++) { |
115 | $scope.showWingspan = false; | 127 | if ($scope.customRampDataCraft.aircraftType === $scope.dropOptions[i].size) { |
116 | $scope.showTail = false; | 128 | $scope.customRampDataCraft.aircraftSizeId = $scope.dropOptions[i].id; |
117 | $scope.showAircraft = false; | 129 | } |
118 | $scope.customRampData.rampFeesAndAvoidanceList.aircraftMake = ''; | 130 | } |
119 | $scope.customRampData.rampFeesAndAvoidanceList.tailNumber = ''; | 131 | $scope.OldRampData = {}; |
120 | $scope.customRampData.rampFeesAndAvoidanceList.wingspanMin = ''; | 132 | fuelManagerService.getRampFeeDetail($scope.customRampDataCraft.aircraftSizeId).then(function(result) { |
121 | $scope.customRampData.rampFeesAndAvoidanceList.wingspanMax = ''; | 133 | $scope.OldRampData = result; |
122 | $scope.customRampData.rampFeesAndAvoidanceList.rampFees = ''; | 134 | if ($scope.customRampDataCraft.aircraftType === 'WEIGHT') { |
123 | $scope.customRampData.rampFeesAndAvoidanceList.avoidance = ''; | 135 | $scope.showWeightForm = true; |
124 | }else if ($scope.customRampData.rampFeesAndAvoidanceList.aircraftType === 'MAKE_AND_MODEL') { | 136 | $scope.showMakeModelForm = false; |
125 | $scope.openRampFeeModal = true; | 137 | $scope.showWingspanForm = false; |
126 | $scope.showWeight = false; | 138 | $scope.showTailForm = false; |
127 | $scope.showWingspan = false; | 139 | $scope.customRampData = $scope.OldRampData; |
128 | $scope.showTail = false; | 140 | }else if ($scope.customRampDataCraft.aircraftType === 'MAKE_AND_MODEL') { |
129 | $scope.showAircraft = true; | 141 | $scope.showWeightForm = false; |
130 | $scope.customRampData.rampFeesAndAvoidanceList.tailNumber = ''; | 142 | $scope.showMakeModelForm = true; |
131 | $scope.customRampData.rampFeesAndAvoidanceList.wingspanMin = ''; | 143 | $scope.showWingspanForm = false; |
132 | $scope.customRampData.rampFeesAndAvoidanceList.wingspanMax = ''; | 144 | $scope.showTailForm = false; |
133 | $scope.customRampData.rampFeesAndAvoidanceList.weightRangeMin = ''; | 145 | $scope.customMakeData = $scope.OldRampData; |
134 | $scope.customRampData.rampFeesAndAvoidanceList.weightRangeMax = ''; | 146 | console.log('$scope.customMakeData', $scope.customMakeData); |
135 | $scope.customRampData.rampFeesAndAvoidanceList.rampFees = ''; | 147 | }else if ($scope.customRampDataCraft.aircraftType === 'WINGSPAN') { |
136 | $scope.customRampData.rampFeesAndAvoidanceList.avoidance = ''; | 148 | $scope.showWeightForm = false; |
137 | }else if ($scope.customRampData.rampFeesAndAvoidanceList.aircraftType === 'WINGSPAN') { | 149 | $scope.showMakeModelForm = false; |
138 | $scope.openRampFeeModal = true; | 150 | $scope.showWingspanForm = true; |
139 | $scope.showWeight = false; | 151 | $scope.showTailForm = false; |
140 | $scope.showWingspan = true; | 152 | $scope.customWingspanData = $scope.OldRampData; |
141 | $scope.showTail = false; | 153 | }else if ($scope.customRampDataCraft.aircraftType === 'TAIL') { |
142 | $scope.showAircraft = false; | 154 | $scope.showWeightForm = false; |
143 | $scope.customRampData.rampFeesAndAvoidanceList.aircraftMake = ''; | 155 | $scope.showMakeModelForm = false; |
144 | $scope.customRampData.rampFeesAndAvoidanceList.tailNumber = ''; | 156 | $scope.showWingspanForm = false; |
145 | $scope.customRampData.rampFeesAndAvoidanceList.weightRangeMin = ''; | 157 | $scope.showTailForm = true; |
146 | $scope.customRampData.rampFeesAndAvoidanceList.weightRangeMax = ''; | 158 | $scope.customTailData = $scope.OldRampData; |
147 | $scope.customRampData.rampFeesAndAvoidanceList.rampFees = ''; | 159 | }else{ |
148 | $scope.customRampData.rampFeesAndAvoidanceList.avoidance = ''; | 160 | $scope.openRampFeeModal = false; |
149 | }else if ($scope.customRampData.rampFeesAndAvoidanceList.aircraftType === 'TAIL') { | 161 | $scope.showWeightForm = false; |
150 | $scope.openRampFeeModal = true; | 162 | $scope.showMakeModelForm = false; |
151 | $scope.showWeight = false; | 163 | $scope.showWingspanForm = false; |
152 | $scope.showWingspan = false; | 164 | $scope.showTailForm = false; |
153 | $scope.showTail = true; | 165 | } |
154 | $scope.showAircraft = false; | 166 | $scope.showLoader = false; |
155 | $scope.customRampData.rampFeesAndAvoidanceList.aircraftMake = ''; | 167 | }) |
156 | $scope.customRampData.rampFeesAndAvoidanceList.wingspanMin = ''; | ||
157 | $scope.customRampData.rampFeesAndAvoidanceList.wingspanMax = ''; | ||
158 | $scope.customRampData.rampFeesAndAvoidanceList.weightRangeMin = ''; | ||
159 | $scope.customRampData.rampFeesAndAvoidanceList.weightRangeMax = ''; | ||
160 | $scope.customRampData.rampFeesAndAvoidanceList.rampFees = ''; | ||
161 | $scope.customRampData.rampFeesAndAvoidanceList.avoidance = ''; | ||
162 | }else if ($scope.customRampData.rampFeesAndAvoidanceList.aircraftType = null){ | ||
163 | $scope.openRampFeeModal = false; | ||
164 | $scope.showWeight = false; | ||
165 | $scope.showWingspan = false; | ||
166 | $scope.showTail = false; | ||
167 | $scope.showAircraft = false; | ||
168 | }else{ | 168 | }else{ |
169 | $scope.openRampFeeModal = false; | 169 | $scope.openRampFeeModal = false; |
170 | $scope.showWeight = false; | ||
171 | $scope.showWingspan = false; | ||
172 | $scope.showTail = false; | ||
173 | $scope.showAircraft = false; | ||
174 | } | ||
175 | console.log('$scope.dropOptions', $scope.dropOptions); | ||
176 | /*fuelManagerService.getRampFeeDetail().then(function(result) { | ||
177 | console.log('result', result) | ||
178 | })*/ | ||
179 | for (var i = 0; $scope.dropOptions.length; i++) { | ||
180 | if ($scope.customRampData.rampFeesAndAvoidanceList.aircraftType === $scope.dropOptions[i].size) { | ||
181 | $scope.customRampData.rampFeesAndAvoidanceList.aircraftSizeId = $scope.dropOptions[i].id; | ||
182 | } | ||
183 | } | 170 | } |
184 | |||
185 | } | 171 | } |
186 | 172 | ||
187 | 173 | $scope.addCustomRampNew = function(data){ | |
188 | 174 | $scope.showLoader = true; | |
189 | $scope.addCustomRamp = function(){ | 175 | $scope.newCustomRampData = data; |
176 | $scope.newRampData = []; | ||
177 | if ($scope.newCustomRampData != null) { | ||
178 | if ($scope.newCustomRampData.id != null) { | ||
179 | $scope.newRampData.push({'id': $scope.newCustomRampData.id}); | ||
180 | } | ||
181 | $scope.newRampData.push({ | ||
182 | 'aircraftSizeId': $scope.customRampDataCraft.aircraftSizeId, | ||
183 | 'rampFees': $scope.newCustomRampData.rampFees, | ||
184 | 'avoidance': $scope.newCustomRampData.avoidance, | ||
185 | 'applicable': $scope.newCustomRampData.applicable, | ||
186 | 'expirationDate': $scope.newCustomRampData.expirationDate, | ||
187 | 'notes': $scope.newCustomRampData.notes, | ||
188 | 'aircraftMake': $scope.newCustomRampData.aircraftMake, | ||
189 | 'wingspanMin': $scope.newCustomRampData.wingspanMin, | ||
190 | 'wingspanMax': $scope.newCustomRampData.wingspanMax, | ||
191 | 'weightRangeMin': $scope.newCustomRampData.weightRangeMin, | ||
192 | 'weightRangeMax': $scope.newCustomRampData.weightRangeMax, | ||
193 | 'tailNumber': $scope.newCustomRampData.tailNumber, | ||
194 | }); | ||
195 | } | ||
190 | 196 | ||
191 | $scope.newData = {}; | 197 | $scope.avoidanceList.rampFeesAndAvoidanceList = $scope.newRampData; |
192 | $scope.newData.rampFeesAndAvoidanceList = []; | 198 | $scope.avoidanceList.fboUserId = $scope.currentUserData; |
193 | $scope.newData.rampFeesAndAvoidanceList.push($scope.customRampData.rampFeesAndAvoidanceList); | 199 | //console.log('$scope.newRampData', $scope.avoidanceList); |
194 | $scope.newData.fboUserId = $scope.currentUserData; | 200 | fuelManagerService.updateFullList($scope.avoidanceList).then(function(result) { |
195 | console.log('$scope.customRampData', $scope.newData) | ||
196 | fuelManagerService.updateFullList($scope.newData).then(function(result) { | ||
197 | toastr.success(''+result.success+'', { | 201 | toastr.success(''+result.success+'', { |
198 | closeButton: true | 202 | closeButton: true |
199 | }); | 203 | }) |
200 | $scope.openRampFeeModal = false; | 204 | $scope.openRampFeeModal = false; |
201 | $scope.customRampData.rampFeesAndAvoidanceList = {}; | 205 | fuelManagerService.getFullList().then(function(result) { |
202 | $scope.customRampData.rampFeesAndAvoidanceList.aircraftType = null; | 206 | $scope.fullJetList = result; |
203 | $scope.newData = {}; | 207 | console.log('$scope.fullJetList', $scope.fullJetList); |
204 | $scope.newData.rampFeesAndAvoidanceList = []; | 208 | for (var i = 0; i<$scope.fullJetList.length; i++) { |
209 | for (var j = 0; j<$scope.fullJetList[i].aircraftsSize.length; j++) { | ||
210 | if ($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance != null) { | ||
211 | if ($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != null && $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != '') { | ||
212 | var newTime = new Date($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); | ||
213 | var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 | ||
214 | var dday = newTime.getUTCDate(); | ||
215 | var dyear = newTime.getUTCFullYear(); | ||
216 | $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate = dmonth+'/'+dday+'/'+dyear; | ||
217 | console.log('$scope.fullJetList.aircraftsSize.rampFeesAndAvoidance.expirationDate', $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); | ||
218 | } | ||
219 | } | ||
220 | } | ||
221 | } | ||
222 | $scope.showLoader = false; | ||
223 | }) | ||
224 | }) | ||
225 | } | ||
226 | |||
227 | $scope.deleteTemplateId = ''; | ||
228 | |||
229 | $scope.deleteCustomJet = function(id){ | ||
230 | $('#confirm1').css('display', 'block'); | ||
231 | $scope.deleteTemplateId = id; | ||
232 | console.log('$scope.deleteTemplateId', id); | ||
233 | } | ||
234 | |||
235 | $scope.saveAndCloseConfirm = function(){ | ||
236 | $scope.showLoader = true; | ||
237 | $('#confirm1').css('display', 'none'); | ||
238 | fuelManagerService.deleteCustomRamp($scope.deleteTemplateId).then(function(result) { | ||
205 | fuelManagerService.getFullList().then(function(result) { | 239 | fuelManagerService.getFullList().then(function(result) { |
206 | $scope.fullJetList = result; | 240 | $scope.fullJetList = result; |
241 | console.log('$scope.fullJetList', $scope.fullJetList); | ||
242 | for (var i = 0; i<$scope.fullJetList.length; i++) { | ||
243 | for (var j = 0; j<$scope.fullJetList[i].aircraftsSize.length; j++) { | ||
244 | if ($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance != null) { | ||
245 | if ($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != null && $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate != '') { | ||
246 | var newTime = new Date($scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); | ||
247 | var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 | ||
248 | var dday = newTime.getUTCDate(); | ||
249 | var dyear = newTime.getUTCFullYear(); | ||
250 | $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate = dmonth+'/'+dday+'/'+dyear; | ||
251 | console.log('$scope.fullJetList.aircraftsSize.rampFeesAndAvoidance.expirationDate', $scope.fullJetList[i].aircraftsSize[j].rampFeesAndAvoidance.expirationDate); | ||
252 | } | ||
253 | } | ||
254 | } | ||
255 | } | ||
256 | $scope.showLoader = false; | ||
207 | }) | 257 | }) |
208 | }) | 258 | }) |
209 | } | 259 | } |
210 | 260 | ||
261 | $scope.cancelAndCloseConfirm = function(){ | ||
262 | $('#confirm1').css('display', 'none'); | ||
263 | $scope.deleteTemplateId = ''; | ||
264 | } | ||
265 | |||
211 | $scope.closeRampFeeModel = function(){ | 266 | $scope.closeRampFeeModel = function(){ |
212 | $scope.openRampFeeModal = false; | 267 | $scope.openRampFeeModal = false; |
213 | $scope.showWeight = false; | 268 | $scope.showWeight = false; |
214 | $scope.showWingspan = false; | 269 | $scope.showWingspan = false; |
215 | $scope.showTail = false; | 270 | $scope.showTail = false; |
216 | $scope.showAircraft = false; | 271 | $scope.showAircraft = false; |
217 | $scope.customRampData.rampFeesAndAvoidanceList = {}; | 272 | $scope.customRampData.rampFeesAndAvoidanceList = {}; |
218 | $scope.customRampData.rampFeesAndAvoidanceList.aircraftType = null; | 273 | $scope.customRampDataCraft.aircraftType = null; |
219 | } | 274 | } |
220 | 275 | ||
221 | $scope.parentOpen = function(index){ | 276 | $scope.parentOpen = function(index){ |
222 | $('#parentOpen'+index).css('display', 'none'); | 277 | $('#parentOpen'+index).css('display', 'none'); |
223 | $('#parentClose'+index).css('display', 'initial'); | 278 | $('#parentClose'+index).css('display', 'initial'); |
224 | $('#parentTogglebody'+index).slideDown(); | 279 | $('#parentTogglebody'+index).slideDown(); |
225 | } | 280 | } |
226 | $scope.parentClose = function(index){ | 281 | $scope.parentClose = function(index){ |
227 | $('#parentOpen'+index).css('display', 'initial'); | 282 | $('#parentOpen'+index).css('display', 'initial'); |
228 | $('#parentClose'+index).css('display', 'none'); | 283 | $('#parentClose'+index).css('display', 'none'); |
229 | $('#parentTogglebody'+index).slideUp(); | 284 | $('#parentTogglebody'+index).slideUp(); |
230 | } | 285 | } |
231 | 286 | ||
232 | $scope.toggleChild = function(id){ | 287 | $scope.toggleChild = function(id){ |
233 | if ($('.'+id).hasClass('fa-plus-circle')) { | 288 | if ($('.'+id).hasClass('fa-plus-circle')) { |
234 | $('.'+id).removeClass('fa-plus-circle'); | 289 | $('.'+id).removeClass('fa-plus-circle'); |
235 | $('.'+id).addClass('fa-minus-circle'); | 290 | $('.'+id).addClass('fa-minus-circle'); |
236 | }else{ | 291 | }else{ |
237 | $('.'+id).removeClass('fa-minus-circle'); | 292 | $('.'+id).removeClass('fa-minus-circle'); |
238 | $('.'+id).addClass('fa-plus-circle'); | 293 | $('.'+id).addClass('fa-plus-circle'); |
239 | } | 294 | } |
240 | $('#'+id).slideToggle(); | 295 | $('#'+id).slideToggle(); |
241 | } | 296 | } |
242 | 297 | ||
243 | $scope.dates = [{date:'01-05-2001'}, {date:'05-05-2014'}, {date:'10-11-2008'}] | 298 | $scope.dates = [{date:'01-05-2001'}, {date:'05-05-2014'}, {date:'10-11-2008'}] |
244 | 299 | ||
245 | $scope.open = function($event, dt) { | 300 | $scope.open = function($event, dt) { |
246 | $event.preventDefault(); | 301 | $event.preventDefault(); |
247 | $event.stopPropagation(); | 302 | $event.stopPropagation(); |
248 | 303 | ||
249 | dt.opened = true; | 304 | dt.opened = true; |
250 | }; | 305 | }; |
251 | 306 | ||
252 | $scope.dateOptions = { | 307 | $scope.dateOptions = { |
253 | formatYear: 'yy', | 308 | formatYear: 'yy', |
254 | startingDay: 1 | 309 | startingDay: 1 |
255 | }; | 310 | }; |
256 | 311 | ||
257 | 312 | ||
258 | $scope.format = 'dd-MMMM-yyyy' | 313 | $scope.format = 'dd-MMMM-yyyy' |
259 | 314 | ||
260 | 315 | ||
261 | $(document).ready(function(){ | 316 | $(document).ready(function(){ |
262 | 317 | ||
263 | setInterval(function(){ | 318 | setInterval(function(){ |
264 | var newHeight = $('.feeManagerLeft').height(); | 319 | var newHeight = $('.feeManagerLeft').height(); |
265 | $('.feeManagerRight').css('height', newHeight); | 320 | $('.feeManagerRight').css('height', newHeight); |
266 | }, 3); | 321 | }, 3); |
267 | 322 | ||
268 | $('#customTabToggle1').click(function(){ | 323 | $('#customTabToggle1').click(function(){ |
269 | console.log('tab 1'); | 324 | console.log('tab 1'); |
270 | $('#customTabsBody1').slideDown(); | 325 | $('#customTabsBody1').slideDown(); |
271 | $('#customTabsBody2').slideUp(); | 326 | $('#customTabsBody2').slideUp(); |
272 | $('#customTabsBody3').slideUp(); | 327 | $('#customTabsBody3').slideUp(); |
273 | $('#customTabsBody4').slideUp(); | 328 | $('#customTabsBody4').slideUp(); |
274 | $('#customTabs1').addClass('customActive'); | 329 | $('#customTabs1').addClass('customActive'); |
275 | $('#customTabs2').removeClass('customActive'); | 330 | $('#customTabs2').removeClass('customActive'); |
276 | $('#customTabs3').removeClass('customActive'); | 331 | $('#customTabs3').removeClass('customActive'); |
277 | $('#customTabs4').removeClass('customActive'); | 332 | $('#customTabs4').removeClass('customActive'); |
278 | $('.customAccordianHeader > select, .customAccordianHeader > input').prop("disabled", true); | 333 | $('.customAccordianHeader > select, .customAccordianHeader > input').prop("disabled", true); |
279 | $('.customAccordianHeader.customActive > select, .customAccordianHeader.customActive > input').prop("disabled", false); | 334 | $('.customAccordianHeader.customActive > select, .customAccordianHeader.customActive > input').prop("disabled", false); |
280 | 335 | ||
281 | $('#customTabs1 > .pull-right > .btn-default').css('display', 'none'); | 336 | $('#customTabs1 > .pull-right > .btn-default').css('display', 'none'); |
282 | $('#customTabs1 > .pull-right > .btn-success').css('display', 'inline-block'); | 337 | $('#customTabs1 > .pull-right > .btn-success').css('display', 'inline-block'); |
283 | $('#customTabs1 > .pull-right > .btn-danger').css('display', 'inline-block'); | 338 | $('#customTabs1 > .pull-right > .btn-danger').css('display', 'inline-block'); |
284 | 339 | ||
285 | $('#customTabs2 > .pull-right > .btn-default').css('display', 'inline-block'); | 340 | $('#customTabs2 > .pull-right > .btn-default').css('display', 'inline-block'); |
286 | $('#customTabs2 > .pull-right > .btn-success').css('display', 'none'); | 341 | $('#customTabs2 > .pull-right > .btn-success').css('display', 'none'); |
287 | $('#customTabs2 > .pull-right > .btn-danger').css('display', 'none'); | 342 | $('#customTabs2 > .pull-right > .btn-danger').css('display', 'none'); |
288 | 343 | ||
289 | $('#customTabs3 > .pull-right > .btn-default').css('display', 'inline-block'); | 344 | $('#customTabs3 > .pull-right > .btn-default').css('display', 'inline-block'); |
290 | $('#customTabs3 > .pull-right > .btn-success').css('display', 'none'); | 345 | $('#customTabs3 > .pull-right > .btn-success').css('display', 'none'); |
291 | $('#customTabs3 > .pull-right > .btn-danger').css('display', 'none'); | 346 | $('#customTabs3 > .pull-right > .btn-danger').css('display', 'none'); |
292 | 347 | ||
293 | $('#customTabs4 > .pull-right > .btn-default').css('display', 'inline-block'); | 348 | $('#customTabs4 > .pull-right > .btn-default').css('display', 'inline-block'); |
294 | $('#customTabs4 > .pull-right > .btn-success').css('display', 'none'); | 349 | $('#customTabs4 > .pull-right > .btn-success').css('display', 'none'); |
295 | $('#customTabs4 > .pull-right > .btn-danger').css('display', 'none'); | 350 | $('#customTabs4 > .pull-right > .btn-danger').css('display', 'none'); |
296 | 351 | ||
297 | }) | 352 | }) |
298 | $('#customTabToggle2').click(function(){ | 353 | $('#customTabToggle2').click(function(){ |
299 | console.log('tab 2'); | 354 | console.log('tab 2'); |
300 | $('#customTabsBody1').slideUp(); | 355 | $('#customTabsBody1').slideUp(); |
301 | $('#customTabsBody2').slideDown(); | 356 | $('#customTabsBody2').slideDown(); |
302 | $('#customTabsBody3').slideUp(); | 357 | $('#customTabsBody3').slideUp(); |
303 | $('#customTabsBody4').slideUp(); | 358 | $('#customTabsBody4').slideUp(); |
304 | $('#customTabs1').removeClass('customActive'); | 359 | $('#customTabs1').removeClass('customActive'); |
305 | $('#customTabs2').addClass('customActive'); | 360 | $('#customTabs2').addClass('customActive'); |
306 | $('#customTabs3').removeClass('customActive'); | 361 | $('#customTabs3').removeClass('customActive'); |
307 | $('#customTabs4').removeClass('customActive'); | 362 | $('#customTabs4').removeClass('customActive'); |
308 | $('.customAccordianHeader > select, .customAccordianHeader > input').prop("disabled", true); | 363 | $('.customAccordianHeader > select, .customAccordianHeader > input').prop("disabled", true); |
309 | $('.customAccordianHeader.customActive > select, .customAccordianHeader.customActive > input').prop("disabled", false); | 364 | $('.customAccordianHeader.customActive > select, .customAccordianHeader.customActive > input').prop("disabled", false); |
310 | 365 | ||
311 | $('#customTabs1 > .pull-right > .btn-default').css('display', 'inline-block'); | 366 | $('#customTabs1 > .pull-right > .btn-default').css('display', 'inline-block'); |
312 | $('#customTabs1 > .pull-right > .btn-success').css('display', 'none'); | 367 | $('#customTabs1 > .pull-right > .btn-success').css('display', 'none'); |
313 | $('#customTabs1 > .pull-right > .btn-danger').css('display', 'none'); | 368 | $('#customTabs1 > .pull-right > .btn-danger').css('display', 'none'); |
314 | 369 | ||
315 | $('#customTabs2 > .pull-right > .btn-default').css('display', 'none'); | 370 | $('#customTabs2 > .pull-right > .btn-default').css('display', 'none'); |
316 | $('#customTabs2 > .pull-right > .btn-success').css('display', 'inline-block'); | 371 | $('#customTabs2 > .pull-right > .btn-success').css('display', 'inline-block'); |
317 | $('#customTabs2 > .pull-right > .btn-danger').css('display', 'inline-block'); | 372 | $('#customTabs2 > .pull-right > .btn-danger').css('display', 'inline-block'); |
318 | 373 | ||
319 | $('#customTabs3 > .pull-right > .btn-default').css('display', 'inline-block'); | 374 | $('#customTabs3 > .pull-right > .btn-default').css('display', 'inline-block'); |
320 | $('#customTabs3 > .pull-right > .btn-success').css('display', 'none'); | 375 | $('#customTabs3 > .pull-right > .btn-success').css('display', 'none'); |
321 | $('#customTabs3 > .pull-right > .btn-danger').css('display', 'none'); | 376 | $('#customTabs3 > .pull-right > .btn-danger').css('display', 'none'); |
322 | 377 | ||
323 | $('#customTabs4 > .pull-right > .btn-default').css('display', 'inline-block'); | 378 | $('#customTabs4 > .pull-right > .btn-default').css('display', 'inline-block'); |
324 | $('#customTabs4 > .pull-right > .btn-success').css('display', 'none'); | 379 | $('#customTabs4 > .pull-right > .btn-success').css('display', 'none'); |
325 | $('#customTabs4 > .pull-right > .btn-danger').css('display', 'none'); | 380 | $('#customTabs4 > .pull-right > .btn-danger').css('display', 'none'); |
326 | 381 | ||
327 | }) | 382 | }) |
328 | $('#customTabToggle3').click(function(){ | 383 | $('#customTabToggle3').click(function(){ |
329 | console.log('tab 3'); | 384 | console.log('tab 3'); |
330 | $('#customTabsBody1').slideUp(); | 385 | $('#customTabsBody1').slideUp(); |
331 | $('#customTabsBody2').slideUp(); | 386 | $('#customTabsBody2').slideUp(); |
332 | $('#customTabsBody3').slideDown(); | 387 | $('#customTabsBody3').slideDown(); |
333 | $('#customTabsBody4').slideUp(); | 388 | $('#customTabsBody4').slideUp(); |
334 | $('#customTabs1').removeClass('customActive'); | 389 | $('#customTabs1').removeClass('customActive'); |
335 | $('#customTabs2').removeClass('customActive'); | 390 | $('#customTabs2').removeClass('customActive'); |
336 | $('#customTabs3').addClass('customActive'); | 391 | $('#customTabs3').addClass('customActive'); |
337 | $('#customTabs4').removeClass('customActive'); | 392 | $('#customTabs4').removeClass('customActive'); |
338 | $('.customAccordianHeader > select, .customAccordianHeader > input').prop("disabled", true); | 393 | $('.customAccordianHeader > select, .customAccordianHeader > input').prop("disabled", true); |
339 | $('.customAccordianHeader.customActive > select, .customAccordianHeader.customActive > input').prop("disabled", false); | 394 | $('.customAccordianHeader.customActive > select, .customAccordianHeader.customActive > input').prop("disabled", false); |
340 | 395 | ||
341 | $('#customTabs1 > .pull-right > .btn-default').css('display', 'inline-block'); | 396 | $('#customTabs1 > .pull-right > .btn-default').css('display', 'inline-block'); |
342 | $('#customTabs1 > .pull-right > .btn-success').css('display', 'none'); | 397 | $('#customTabs1 > .pull-right > .btn-success').css('display', 'none'); |
343 | $('#customTabs1 > .pull-right > .btn-danger').css('display', 'none'); | 398 | $('#customTabs1 > .pull-right > .btn-danger').css('display', 'none'); |
344 | 399 | ||
345 | $('#customTabs2 > .pull-right > .btn-default').css('display', 'inline-block'); | 400 | $('#customTabs2 > .pull-right > .btn-default').css('display', 'inline-block'); |
346 | $('#customTabs2 > .pull-right > .btn-success').css('display', 'none'); | 401 | $('#customTabs2 > .pull-right > .btn-success').css('display', 'none'); |
347 | $('#customTabs2 > .pull-right > .btn-danger').css('display', 'none'); | 402 | $('#customTabs2 > .pull-right > .btn-danger').css('display', 'none'); |
348 | 403 | ||
349 | $('#customTabs3 > .pull-right > .btn-default').css('display', 'none'); | 404 | $('#customTabs3 > .pull-right > .btn-default').css('display', 'none'); |
350 | $('#customTabs3 > .pull-right > .btn-success').css('display', 'inline-block'); | 405 | $('#customTabs3 > .pull-right > .btn-success').css('display', 'inline-block'); |
351 | $('#customTabs3 > .pull-right > .btn-danger').css('display', 'inline-block'); | 406 | $('#customTabs3 > .pull-right > .btn-danger').css('display', 'inline-block'); |
app/partials/fuelManager/fuelManager.html
1 | <style> | 1 | <style> |
2 | .subnavbar .mainnav > li:nth-child(2) > a{ | 2 | .subnavbar .mainnav > li:nth-child(2) > a{ |
3 | color: #ff9900; | 3 | color: #ff9900; |
4 | } | 4 | } |
5 | button > i{ | ||
6 | cursor: pointer !important; | ||
7 | } | ||
8 | button[disabled] > i{ | ||
9 | cursor: not-allowed !important; | ||
10 | } | ||
5 | </style> | 11 | </style> |
6 | <div class="myLoader" ng-show="showLoader"> | 12 | <div class="myLoader" ng-show="showLoader"> |
7 | <img src="../img/hourglass.gif" width="50px;"> | 13 | <img src="../img/hourglass.gif" width="50px;"> |
8 | </div> | 14 | </div> |
9 | 15 | ||
10 | 16 | ||
11 | 17 | ||
12 | 18 | ||
13 | <div class="container"> | 19 | <div class="container"> |
14 | <div class="row"> | 20 | <div class="row"> |
15 | <div class="col-md-10"> | 21 | <div class="col-md-10"> |
16 | <div class="widget stacked"> | 22 | <div class="widget stacked"> |
17 | <div class="widget-header"> | 23 | <div class="widget-header"> |
18 | <i class="fa fa-pencil"></i> | 24 | <i class="fa fa-pencil"></i> |
19 | <h3>Ramp Fee Manager</h3> | 25 | <h3>Ramp Fee Manager</h3> |
20 | <select style="float: right; margin: 8px 10px;" ng-model="customRampData.rampFeesAndAvoidanceList.aircraftType" ng-change="openRampModal()"> | 26 | <select style="float: right; margin: 8px 10px;" ng-model="customRampDataCraft.aircraftType" ng-change="openRampModal()"> |
21 | <option disabled selected value="">Ramp Fee By Category</option> | 27 | <option disabled selected value="">Ramp Fee By Category</option> |
22 | <option ng-repeat="modals in dropOptions" value="{{modals.size}}">{{modals.size}}</option> | 28 | <option ng-repeat="modals in dropOptions" value="{{modals.size}}">{{modals.size}}</option> |
23 | </select> | 29 | </select> |
24 | </div> | 30 | </div> |
25 | <!-- /widget-header --> | 31 | <!-- /widget-header --> |
26 | <div class="widget-content new-widget-content"> | 32 | <div class="widget-content new-widget-content"> |
27 | <section id="accordions1"> | 33 | <section id="accordions1"> |
28 | <div class="newCustomAccordian"> | 34 | <div class="newCustomAccordian"> |
29 | 35 | ||
30 | <div class="col-md-9 feeManagerLeft" style="padding: 0;"> | 36 | <div class="col-md-9 feeManagerLeft" style="padding: 0;"> |
31 | 37 | ||
32 | <div ng-repeat="list in fullJetList"> | 38 | <div ng-repeat="list in fullJetList"> |
33 | <div class="new-tab-heading"> | 39 | <div class="new-tab-heading"> |
34 | <i class="fa fa-plus-circle" ng-click="parentOpen($index)" id="parentOpen{{$index}}" aria-hidden="true"></i> | 40 | <i class="fa fa-plus-circle" ng-click="parentOpen($index)" id="parentOpen{{$index}}" aria-hidden="true"></i> |
35 | <i class="fa fa-minus-circle" ng-click="parentClose($index)" id="parentClose{{$index}}" aria-hidden="true" style="display: none;"></i> | 41 | <i class="fa fa-minus-circle" ng-click="parentClose($index)" id="parentClose{{$index}}" aria-hidden="true" style="display: none;"></i> |
36 | <span>{{list.type}}</span> | 42 | <span>{{list.type}}</span> |
37 | </div> | 43 | </div> |
38 | <div class="new-tab-body" id="parentTogglebody{{$index}}" style="display: none;"> | 44 | <div class="new-tab-body" id="parentTogglebody{{$index}}" style="display: none;"> |
39 | <div class="new-tab-body-th"> | 45 | <div class="new-tab-body-th"> |
40 | <div class="col-md-4" ng-if="list.type != 'CUSTOM'"> | 46 | <div class="col-md-4" ng-if="list.type != 'CUSTOM'"> |
41 | Aircraft Size | 47 | Aircraft Size |
42 | </div> | 48 | </div> |
43 | <div class="col-md-3" ng-if="list.type == 'CUSTOM'"> | 49 | <div class="col-md-3" ng-if="list.type == 'CUSTOM'"> |
44 | Aircraft Size | 50 | Aircraft Size |
45 | </div> | 51 | </div> |
46 | <div class="col-md-2"> | 52 | <div class="col-md-2"> |
47 | Ramp/Facil. Fee | 53 | Ramp/Facil. Fee |
48 | </div> | 54 | </div> |
49 | <div class="col-md-2"> | 55 | <div class="col-md-2"> |
50 | Avoidance | 56 | Avoidance |
51 | </div> | 57 | </div> |
52 | <div class="col-md-2"> | 58 | <div class="col-md-2"> |
53 | Expiration Date | 59 | Expiration Date |
54 | </div> | 60 | </div> |
55 | <div class="col-md-2"> | 61 | <div class="col-md-2"> |
56 | Applicable | 62 | Applicable |
57 | </div> | 63 | </div> |
58 | <div class="col-md-1" ng-if="list.type == 'CUSTOM'"> | 64 | <div class="col-md-1" ng-if="list.type == 'CUSTOM'"> |
59 | | 65 | |
60 | </div> | 66 | </div> |
61 | <div class="clearfix"></div> | 67 | <div class="clearfix"></div> |
62 | </div> | 68 | </div> |
63 | <div class="new-tab-body-td" ng-repeat="jets in list.aircraftsSize"> | 69 | <div class="new-tab-body-td" ng-repeat="jets in list.aircraftsSize"> |
64 | <div> | 70 | <div> |
65 | <div class="col-md-4" ng-if="list.type != 'CUSTOM'"> | 71 | <div class="col-md-4" ng-if="list.type != 'CUSTOM'"> |
66 | <i class="fa fa-plus-circle {{jets.id}}" ng-click="toggleChild(jets.id)" aria-hidden="true"></i> | 72 | <i class="fa fa-plus-circle {{jets.id}}" ng-click="toggleChild(jets.id)" aria-hidden="true"></i> |
67 | <span style="margin-left: 5px;">{{jets.size}}</span> | 73 | <span style="margin-left: 5px;">{{jets.size}}</span> |
68 | </div> | 74 | </div> |
69 | <div class="col-md-3" ng-if="list.type == 'CUSTOM'"> | 75 | <div class="col-md-3" ng-if="list.type == 'CUSTOM'"> |
70 | <i class="fa fa-plus-circle {{jets.id}}" ng-click="toggleChild(jets.id)" aria-hidden="true"></i> | 76 | <i class="fa fa-plus-circle {{jets.id}}" ng-click="toggleChild(jets.id)" aria-hidden="true"></i> |
71 | <span style="margin-left: 5px;">{{jets.size}}</span> | 77 | <span style="margin-left: 5px;">{{jets.size}}</span> |
72 | </div> | 78 | </div> |
73 | <div class="col-md-2"> | 79 | <div class="col-md-2"> |
74 | <input type="text" ng-disabled="jets.rampFeesAndAvoidance.applicable == false || jets.rampFeesAndAvoidance.applicable == null" ng-model="jets.rampFeesAndAvoidance.rampFees" style="padding: 5px 5px;"> | 80 | <input type="text" ng-disabled="jets.rampFeesAndAvoidance.applicable == false || jets.rampFeesAndAvoidance.applicable == null" ng-model="jets.rampFeesAndAvoidance.rampFees" style="padding: 5px 5px;"> |
75 | </div> | 81 | </div> |
76 | <div class="col-md-2"> | 82 | <div class="col-md-2"> |
77 | <input type="text" ng-disabled="jets.rampFeesAndAvoidance.applicable == false || jets.rampFeesAndAvoidance.applicable == null" ng-model="jets.rampFeesAndAvoidance.avoidance" style="padding: 5px 5px;"> | 83 | <input type="text" ng-disabled="jets.rampFeesAndAvoidance.applicable == false || jets.rampFeesAndAvoidance.applicable == null" ng-model="jets.rampFeesAndAvoidance.avoidance" style="padding: 5px 5px;"> |
78 | </div> | 84 | </div> |
79 | <div class="col-md-2"> | 85 | <div class="col-md-2"> |
80 | <!-- <input type="date" ng-disabled="jets.rampFeesAndAvoidance.applicable == false || jets.rampFeesAndAvoidance.applicable == null" name="" ng-model="jets.rampFeesAndAvoidance.expirationDate"> --> | 86 | <!-- <input type="date" ng-disabled="jets.rampFeesAndAvoidance.applicable == false || jets.rampFeesAndAvoidance.applicable == null" name="" ng-model="jets.rampFeesAndAvoidance.expirationDate"> --> |
81 | 87 | ||
82 | 88 | ||
83 | <input type="text" datepicker ng-disabled="jets.rampFeesAndAvoidance.applicable == false || jets.rampFeesAndAvoidance.applicable == null" ng-model="jets.rampFeesAndAvoidance.expirationDate" style="width: 90px; padding: 5px 5px;" /> | 89 | <input type="text" datepicker ng-disabled="jets.rampFeesAndAvoidance.applicable == false || jets.rampFeesAndAvoidance.applicable == null" ng-model="jets.rampFeesAndAvoidance.expirationDate" style="width: 90px; padding: 5px 5px;" /> |
84 | 90 | ||
85 | </div> | 91 | </div> |
86 | <div class="col-md-2"> | 92 | <div class="col-md-2"> |
87 | <!-- <input type="checkbox" ng-model="jets.rampFeesAndAvoidance.applicable"> --> | 93 | <!-- <input type="checkbox" ng-model="jets.rampFeesAndAvoidance.applicable"> --> |
88 | <div class="onoffswitch"> | 94 | <div class="onoffswitch"> |
89 | <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="{{jets.id}}{{$index}}" ng-model="jets.rampFeesAndAvoidance.applicable"> | 95 | <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="{{jets.id}}{{$index}}" ng-model="jets.rampFeesAndAvoidance.applicable"> |
90 | <label class="onoffswitch-label" for="{{jets.id}}{{$index}}"> | 96 | <label class="onoffswitch-label" for="{{jets.id}}{{$index}}"> |
91 | <span class="onoffswitch-inner"></span> | 97 | <span class="onoffswitch-inner"></span> |
92 | <span class="onoffswitch-switch"> | 98 | <span class="onoffswitch-switch"> |
93 | <i class="fa fa-check" ng-show="jets.rampFeesAndAvoidance.applicable" aria-hidden="true"></i> | 99 | <i class="fa fa-check" ng-show="jets.rampFeesAndAvoidance.applicable" aria-hidden="true"></i> |
94 | <i class="fa fa-times" ng-hide="jets.rampFeesAndAvoidance.applicable" aria-hidden="true"></i> | 100 | <i class="fa fa-times" ng-hide="jets.rampFeesAndAvoidance.applicable" aria-hidden="true"></i> |
95 | </span> | 101 | </span> |
96 | </label> | 102 | </label> |
97 | </div> | 103 | </div> |
98 | </div> | 104 | </div> |
99 | <div class="col-md-1" ng-if="list.type == 'CUSTOM'"> | 105 | <div class="col-md-1" ng-if="list.type == 'CUSTOM'"> |
100 | <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteCustomJet()" aria-hidden="true"></i> | 106 | <button type="button" ng-disabled="jets.rampFeesAndAvoidance == null" ng-click="deleteCustomJet(jets.rampFeesAndAvoidance.id)" style="border: none; background-color: transparent; padding: 0;"> |
107 | <i class="fa fa-trash-o deleteTierIcon" style="cursor: default;" aria-hidden="true"></i> | ||
108 | </button> | ||
101 | </div> | 109 | </div> |
102 | <div class="clearfix"></div> | 110 | <div class="clearfix"></div> |
103 | </div> | 111 | </div> |
104 | <div style="display: none;" class="toggleCHildBody" id="{{jets.id}}"> | 112 | <div style="display: none;" class="toggleCHildBody" id="{{jets.id}}"> |
105 | <div class="col-xs-12"> | 113 | <div class="col-xs-12"> |
106 | <div class="col-xs-12"> | 114 | <div class="col-xs-12"> |
107 | <div class="appliesTableHeading">Applies To:</div> | 115 | <div class="appliesTableHeading">Applies To:</div> |
108 | <div class="appliesTableBody"> | 116 | <div class="appliesTableBody"> |
109 | <div class="firstDiv"> | 117 | <div class="firstDiv"> |
110 | <label style="font-weight: normal;" ng-repeat="aircraftList in jets.aircrafts">{{aircraftList.model}}</label> | 118 | <label style="font-weight: normal;" ng-repeat="aircraftList in jets.aircrafts">{{aircraftList.model}}</label> |
111 | </div> | 119 | </div> |
112 | <div class="lastDiv"> | 120 | <div class="lastDiv"> |
113 | <textarea ng-model="jets.rampFeesAndAvoidance.notes"></textarea> | 121 | <textarea ng-model="jets.rampFeesAndAvoidance.notes"></textarea> |
114 | <div class="reportedByTag"> | 122 | <div class="reportedByTag"> |
115 | <div class="confirmedTag">Confirmed</div> | 123 | <div class="confirmedTag">Confirmed</div> |
116 | <table> | 124 | <table> |
117 | <tr> | 125 | <tr> |
118 | <td width="50%"> | 126 | <td width="50%"> |
119 | Reported By: | 127 | Reported By: |
120 | </td> | 128 | </td> |
121 | <td width="50%"> | 129 | <td width="50%"> |
122 | {{jets.rampFeesAndAvoidance.reportedBy}} | 130 | {{jets.rampFeesAndAvoidance.reportedBy}} |
123 | </td> | 131 | </td> |
124 | </tr> | 132 | </tr> |
125 | <tr> | 133 | <tr> |
126 | <td width="50%"> | 134 | <td width="50%"> |
127 | Reported On: | 135 | Reported On: |
128 | </td> | 136 | </td> |
129 | <td width="50%"> | 137 | <td width="50%"> |
130 | {{jets.rampFeesAndAvoidance.reportedOn}} | 138 | {{jets.rampFeesAndAvoidance.reportedOn}} |
131 | </td> | 139 | </td> |
132 | </tr> | 140 | </tr> |
133 | <tr> | 141 | <tr> |
134 | <td colspan="2"> | 142 | <td colspan="2"> |
135 | <i>Click the Save Form button to Re-Confirm</i> | 143 | <i>Click the Save Form button to Re-Confirm</i> |
136 | </td> | 144 | </td> |
137 | </tr> | 145 | </tr> |
138 | </table> | 146 | </table> |
139 | </div> | 147 | </div> |
140 | </div> | 148 | </div> |
141 | <div class="clearfix"></div> | 149 | <div class="clearfix"></div> |
142 | </div> | 150 | </div> |
143 | </div> | 151 | </div> |
144 | <div class="clearfix"></div> | 152 | <div class="clearfix"></div> |
145 | </div> | 153 | </div> |
146 | <div class="clearfix"></div> | 154 | <div class="clearfix"></div> |
147 | </div> | 155 | </div> |
148 | </div> | 156 | </div> |
149 | </div> | 157 | </div> |
150 | </div> | 158 | </div> |
151 | </div> | 159 | </div> |
152 | <div class="col-md-3 text-center feeManagerRight" style="padding: 0;"> | 160 | <div class="col-md-3 text-center feeManagerRight" style="padding: 0;"> |
153 | <div class="text-center"> | 161 | <div class="text-center"> |
154 | <button type="submit" ng-click="updateList(fullJetList)" class="btn btn-success"><i class="icon-ok"></i> Save Form</button> | 162 | <button type="submit" ng-click="updateList(fullJetList)" class="btn btn-success"><i class="icon-ok"></i> Save Form</button> |
155 | <button type="reset" class="btn btn-default">Cancel</button> | 163 | <button type="reset" class="btn btn-default">Cancel</button> |
156 | </div> | 164 | </div> |
157 | </div> | 165 | </div> |
158 | <div class="clearfix"></div> | 166 | <div class="clearfix"></div> |
159 | <br/> | 167 | <br/> |
160 | </div> | 168 | </div> |
161 | </section> | 169 | </section> |
162 | </div> | 170 | </div> |
163 | <!-- /widget-content --> | 171 | <!-- /widget-content --> |
164 | </div> | 172 | </div> |
165 | <!-- /widget --> | 173 | <!-- /widget --> |
166 | </div> | 174 | </div> |
167 | <!-- /span6 --> | 175 | <!-- /span6 --> |
168 | </div> | 176 | </div> |
169 | <!-- /span12 --> | 177 | <!-- /span12 --> |
170 | </div> <!-- /container 2 --> | 178 | </div> <!-- /container 2 --> |
171 | 179 | ||
172 | <div ng-show="openRampFeeModal"> | 180 | <div ng-show="openRampFeeModal"> |
173 | <div class="customBackdrop"> | 181 | <div class="customBackdrop"> |
174 | <div class="customModalInner"> | 182 | <div class="customModalInner"> |
175 | <div class="customModelHead"> | 183 | <div class="customModelHead"> |
176 | <p class="pull-left"> | 184 | <p class="pull-left"> |
177 | <i class="fa fa-list-alt" aria-hidden="true"></i> | 185 | <i class="fa fa-list-alt" aria-hidden="true"></i> |
178 | Add Ramp Fee | 186 | Add Ramp Fee |
179 | </p> | 187 | </p> |
180 | <p class="pull-right"> | 188 | <p class="pull-right"> |
181 | <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeRampFeeModel()"></i> | 189 | <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeRampFeeModel()"></i> |
182 | </p> | 190 | </p> |
183 | <div class="clearfix"></div> | 191 | <div class="clearfix"></div> |
184 | </div> | 192 | </div> |
185 | <div class="customModelBody"> | 193 | <div class="customModelBody"> |
186 | |||
187 | <div class="col-xs-12 col-sm-4"> | ||
188 | Type: | ||
189 | </div> | ||
190 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
191 | <select class="form-control" style="border-radius: 0; height: 26px; padding: 0;" ng-model="customRampData.rampFeesAndAvoidanceList.aircraftType" ng-change="openRampModal()"> | ||
192 | <option ng-repeat="modalsNew in dropOptions" value="{{modalsNew.size}}">{{modalsNew.size}}</option> | ||
193 | </select> | ||
194 | </div> | ||
195 | <div class="clearfix"></div> | ||
196 | <br/> | ||
197 | 194 | ||
198 | <div ng-show="showAircraft"> | 195 | <div ng-show="showWeightForm"> |
196 | |||
199 | <div class="col-xs-12 col-sm-4"> | 197 | <div class="col-xs-12 col-sm-4"> |
200 | Aircraft Make: | 198 | Type: |
201 | </div> | 199 | </div> |
202 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | 200 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> |
203 | <select class="form-control" style="border-radius: 0; height: 26px; padding: 0;" ng-model="customRampData.rampFeesAndAvoidanceList.aircraftMake"> | 201 | <select class="form-control" style="border-radius: 0; height: 26px; padding: 0;" ng-model="customRampDataCraft.aircraftType" ng-change="openRampModal()"> |
204 | <option ng-repeat="crafts in aircrafts" value="{{crafts}}">{{crafts}}</option> | 202 | <option ng-repeat="modalsNew in dropOptions" value="{{modalsNew.size}}">{{modalsNew.size}}</option> |
205 | </select> | 203 | </select> |
206 | </div> | 204 | </div> |
207 | <div class="clearfix"></div> | 205 | <div class="clearfix"></div> |
208 | <br/> | 206 | <br/> |
209 | </div> | ||
210 | 207 | ||
211 | <div ng-show="showTail"> | 208 | <div> |
212 | <div class="col-xs-12 col-sm-4"> | 209 | <div class="col-xs-12 col-sm-4"> |
213 | Tail Numbers: | 210 | Weight Range Min: |
211 | </div> | ||
212 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
213 | <input type="number" value="0.00" ng-model="customRampData.weightRangeMin" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
214 | </div> | ||
215 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | ||
216 | lbs. | ||
217 | </div> | ||
218 | <div class="clearfix"></div> | ||
219 | <br/> | ||
220 | <div class="col-xs-12 col-sm-4"> | ||
221 | Weight Range Max: | ||
222 | </div> | ||
223 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
224 | <input type="number" value="0.00" ng-model="customRampData.weightRangeMax" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
225 | </div> | ||
226 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | ||
227 | lbs. | ||
228 | </div> | ||
229 | <div class="clearfix"></div> | ||
230 | <br/> | ||
214 | </div> | 231 | </div> |
215 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | 232 | |
216 | <select class="form-control" style="border-radius: 0; height: 26px; padding: 0;" ng-model="customRampData.rampFeesAndAvoidanceList.tailNumber"> | 233 | <div> |
217 | <!-- <option ng-repeat="crafts in aircrafts" value="{{crafts}}">{{crafts}}</option> --> | 234 | <div class="col-xs-12 col-sm-4"> |
218 | </select> | 235 | Ramp/Facil. Fee($): |
236 | </div> | ||
237 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
238 | <input type="number" value="0" ng-model="customRampData.rampFees" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
239 | </div> | ||
240 | <div class="clearfix"></div> | ||
241 | <br/> | ||
219 | </div> | 242 | </div> |
220 | <div class="clearfix"></div> | 243 | <div> |
221 | <br/> | 244 | <div class="col-xs-12 col-sm-4"> |
245 | Avoidance: | ||
246 | </div> | ||
247 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
248 | <input type="number" value="0" ng-model="customRampData.avoidance" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
249 | </div> | ||
250 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | ||
251 | gal. | ||
252 | </div> | ||
253 | <div class="clearfix"></div> | ||
254 | </div> | ||
255 | |||
222 | </div> | 256 | </div> |
223 | 257 | ||
224 | <div ng-show="showWingspan"> | 258 | <div ng-show="showMakeModelForm"> |
259 | |||
225 | <div class="col-xs-12 col-sm-4"> | 260 | <div class="col-xs-12 col-sm-4"> |
226 | Wingspan Min: | 261 | Type: |
227 | </div> | 262 | </div> |
228 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | 263 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> |
229 | <input type="number" value="0.00" ng-model="customRampData.rampFeesAndAvoidanceList.wingspanMin" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | 264 | <select class="form-control" style="border-radius: 0; height: 26px; padding: 0;" ng-model="customRampDataCraft.aircraftType" ng-change="openRampModal()"> |
230 | </div> | 265 | <option ng-repeat="modalsNew in dropOptions" value="{{modalsNew.size}}">{{modalsNew.size}}</option> |
231 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | 266 | </select> |
232 | ft. | ||
233 | </div> | 267 | </div> |
234 | <div class="clearfix"></div> | 268 | <div class="clearfix"></div> |
235 | <br/> | 269 | <br/> |
236 | <div class="col-xs-12 col-sm-4"> | 270 | |
237 | Wingspan Max: | 271 | <div> |
272 | <div class="col-xs-12 col-sm-4"> | ||
273 | Aircraft Make: | ||
274 | </div> | ||
275 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
276 | <select class="form-control" style="border-radius: 0; height: 26px; padding: 0;" ng-model="customMakeData.aircraftMake"> | ||
277 | <option ng-repeat="crafts in aircrafts" value="{{crafts}}">{{crafts}}</option> | ||
278 | </select> | ||
279 | </div> | ||
280 | <div class="clearfix"></div> | ||
281 | <br/> | ||
238 | </div> | 282 | </div> |
239 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | 283 | |
240 | <input type="number" value="0.00" ng-model="customRampData.rampFeesAndAvoidanceList.wingspanMax" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | 284 | <div> |
285 | <div class="col-xs-12 col-sm-4"> | ||
286 | Ramp/Facil. Fee($): | ||
287 | </div> | ||
288 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
289 | <input type="number" value="0" ng-model="customMakeData.rampFees" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
290 | </div> | ||
291 | <div class="clearfix"></div> | ||
292 | <br/> | ||
241 | </div> | 293 | </div> |
242 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | 294 | <div> |
243 | ft. | 295 | <div class="col-xs-12 col-sm-4"> |
296 | Avoidance: | ||
297 | </div> | ||
298 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
299 | <input type="number" value="0" ng-model="customMakeData.avoidance" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
300 | </div> | ||
301 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | ||
302 | gal. | ||
303 | </div> | ||
304 | <div class="clearfix"></div> | ||
244 | </div> | 305 | </div> |
245 | <div class="clearfix"></div> | 306 | |
246 | <br/> | ||
247 | </div> | 307 | </div> |
248 | 308 | ||
249 | <div ng-show="showWeight"> | 309 | <div ng-show="showWingspanForm"> |
310 | |||
250 | <div class="col-xs-12 col-sm-4"> | 311 | <div class="col-xs-12 col-sm-4"> |
251 | Weight Range Min: | 312 | Type: |
252 | </div> | 313 | </div> |
253 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | 314 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> |
254 | <input type="number" value="0.00" ng-model="customRampData.rampFeesAndAvoidanceList.weightRangeMin" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | 315 | <select class="form-control" style="border-radius: 0; height: 26px; padding: 0;" ng-model="customRampDataCraft.aircraftType" ng-change="openRampModal()"> |
255 | </div> | 316 | <option ng-repeat="modalsNew in dropOptions" value="{{modalsNew.size}}">{{modalsNew.size}}</option> |
256 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | 317 | </select> |
257 | lbs. | ||
258 | </div> | 318 | </div> |
259 | <div class="clearfix"></div> | 319 | <div class="clearfix"></div> |
260 | <br/> | 320 | <br/> |
261 | <div class="col-xs-12 col-sm-4"> | 321 | |
262 | Weight Range Max: | 322 | <div> |
323 | <div class="col-xs-12 col-sm-4"> | ||
324 | Wingspan Min: | ||
325 | </div> | ||
326 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
327 | <input type="number" value="0.00" ng-model="customWingspanData.wingspanMin" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
328 | </div> | ||
329 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | ||
330 | ft. | ||
331 | </div> | ||
332 | <div class="clearfix"></div> | ||
333 | <br/> | ||
334 | <div class="col-xs-12 col-sm-4"> | ||
335 | Wingspan Max: | ||
336 | </div> | ||
337 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
338 | <input type="number" value="0.00" ng-model="customWingspanData.wingspanMax" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
339 | </div> | ||
340 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | ||
341 | ft. | ||
342 | </div> | ||
343 | <div class="clearfix"></div> | ||
344 | <br/> | ||
263 | </div> | 345 | </div> |
264 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | 346 | |
265 | <input type="number" value="0.00" ng-model="customRampData.rampFeesAndAvoidanceList.weightRangeMax" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | 347 | <div> |
348 | <div class="col-xs-12 col-sm-4"> | ||
349 | Ramp/Facil. Fee($): | ||
350 | </div> | ||
351 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
352 | <input type="number" value="0" ng-model="customWingspanData.rampFees" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
353 | </div> | ||
354 | <div class="clearfix"></div> | ||
355 | <br/> | ||
266 | </div> | 356 | </div> |
267 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | 357 | <div> |
268 | lbs. | 358 | <div class="col-xs-12 col-sm-4"> |
359 | Avoidance: | ||
360 | </div> | ||
361 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
362 | <input type="number" value="0" ng-model="customWingspanData.avoidance" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
363 | </div> | ||
364 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | ||
365 | gal. | ||
366 | </div> | ||
367 | <div class="clearfix"></div> | ||
269 | </div> | 368 | </div> |
270 | <div class="clearfix"></div> | 369 | |
271 | <br/> | ||
272 | </div> | 370 | </div> |
273 | 371 | ||
274 | <div> | 372 | <div ng-show="showTailForm"> |
373 | |||
275 | <div class="col-xs-12 col-sm-4"> | 374 | <div class="col-xs-12 col-sm-4"> |
276 | Ramp/Facil. Fee($): | 375 | Type: |
277 | </div> | 376 | </div> |
278 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | 377 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> |
279 | <input type="number" value="0" ng-model="customRampData.rampFeesAndAvoidanceList.rampFees" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | 378 | <select class="form-control" style="border-radius: 0; height: 26px; padding: 0;" ng-model="customRampDataCraft.aircraftType" ng-change="openRampModal()"> |
379 | <option ng-repeat="modalsNew in dropOptions" value="{{modalsNew.size}}">{{modalsNew.size}}</option> | ||
380 | </select> | ||
280 | </div> | 381 | </div> |
281 | <div class="clearfix"></div> | 382 | <div class="clearfix"></div> |
282 | <br/> | 383 | <br/> |
283 | </div> | 384 | |
284 | <div> | 385 | <div> |
285 | <div class="col-xs-12 col-sm-4"> | 386 | <div class="col-xs-12 col-sm-4"> |
286 | Avoidance: | 387 | Tail Numbers: |
388 | </div> | ||
389 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
390 | <select class="form-control" style="border-radius: 0; height: 26px; padding: 0;" ng-model="customTailData.tailNumber"> | ||
391 | <!-- <option ng-repeat="crafts in aircrafts" value="{{crafts}}">{{crafts}}</option> --> | ||
392 | </select> | ||
393 | </div> | ||
394 | <div class="clearfix"></div> | ||
395 | <br/> | ||
287 | </div> | 396 | </div> |
288 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | 397 | |
289 | <input type="number" value="0" ng-model="customRampData.rampFeesAndAvoidanceList.avoidance" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | 398 | <div> |
399 | <div class="col-xs-12 col-sm-4"> | ||
400 | Ramp/Facil. Fee($): | ||
401 | </div> | ||
402 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
403 | <input type="number" value="0" ng-model="customTailData.rampFees" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
404 | </div> | ||
405 | <div class="clearfix"></div> | ||
406 | <br/> | ||
290 | </div> | 407 | </div> |
291 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | 408 | <div> |
292 | gal. | 409 | <div class="col-xs-12 col-sm-4"> |
410 | Avoidance: | ||
411 | </div> | ||
412 | <div class="col-xs-12 col-sm-4" style="padding-right: 0;"> | ||
413 | <input type="number" value="0" ng-model="customTailData.avoidance" class="form-control" style="border-radius: 0; height: 26px; padding: 0 5px;" > | ||
414 | </div> | ||
415 | <div class="col-xs-12 col-sm-4" style="padding-left: 5px;"> | ||
416 | gal. | ||
417 | </div> | ||
418 | <div class="clearfix"></div> | ||
293 | </div> | 419 | </div> |
294 | <div class="clearfix"></div> | 420 | |
295 | </div> | 421 | </div> |
296 | 422 | ||
297 | </div> | 423 | </div> |
298 | <div class="customModelFooter text-center"> | 424 | <div class="customModelFooter text-center"> |
299 | <input type="submit" value="Save" class="btn" ng-click="addCustomRamp(customRampData)"> | 425 | <input type="submit" value="Save" class="btn" ng-show="showWeightForm" ng-click="addCustomRampNew(customRampData)"> |
426 | <input type="submit" value="Save" class="btn" ng-show="showMakeModelForm" ng-click="addCustomRampNew(customMakeData)"> | ||
427 | <input type="submit" value="Save" class="btn" ng-show="showWingspanForm" ng-click="addCustomRampNew(customWingspanData)"> | ||
428 | <input type="submit" value="Save" class="btn" ng-show="showTailForm" ng-click="addCustomRampNew(customTailData)"> | ||
300 | <button class="btn" ng-click="closeRampFeeModel()">Cancel</button> | 429 | <button class="btn" ng-click="closeRampFeeModel()">Cancel</button> |
301 | </div> | 430 | </div> |
302 | </div> | 431 | </div> |
303 | </div> | 432 | </div> |
304 | </div> | 433 | </div> |
305 | 434 | ||
435 | <div class="customConfirmPopBackdrop" id="confirm1"> | ||
436 | <div class="customModalInner"> | ||
437 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> | ||
438 | <table> | ||
439 | <tr> | ||
440 | <td> | ||
441 | <img src="img/info.png" style="width: 50px;"> | ||
442 | </td> | ||
443 | <td> | ||
444 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Ramp Fee Template ?</p> | ||
445 | </td> | ||
446 | </tr> | ||
447 | </table> | ||
448 | </div> | ||
449 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> | ||
450 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="saveAndCloseConfirm()">Yes</button> | ||
451 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button> | ||
452 | </div> | ||
453 | </div> | ||
454 | </div> | ||
306 | 455 | ||
307 | 456 | ||
308 | 457 | ||
309 | 458 | ||
310 | |||
311 | |||
312 | |||
313 | |||
314 | |||
315 | |||
316 | |||
317 | |||
318 | <div class="container" style="display: none;"> | ||
319 | <div class="row"> | ||
320 | <div class="col-md-10"> | ||
321 | <div class="widget stacked"> | ||
322 | <div class="widget-header"> | ||
323 | <i class="fa fa-pencil"></i> | ||
324 | <h3>Ramp Fee Manager</h3> | ||
325 | <select> | ||
326 | <option>Ramp Fee By Category</option> | ||
327 | <option>Make And Model</option> | ||
328 | <option>Weight</option> | ||
329 | <option>Wingspan</option> | ||
330 | </select> | ||
331 | </div> | ||
332 | <!-- /widget-header --> | ||
333 | <div class="widget-content"> | ||
334 | <h3>Ramp Fees & Avoidance</h3> | ||
335 | <section id="accordions"> | ||
336 | <div class="newCustomAccordian"> | ||
337 | <!-- tab 1 --> | ||
338 | <div class="customAccordianHeader customActive" id="customTabs1"> | ||
339 | <span>Jet Aircraft</span> | ||
340 | <select class="form-control"> | ||
341 | <option>Pricing Structure</option> | ||
342 | <option>Retail-(minus)</option> | ||
343 | <option>Cost+(plus)</option> | ||
344 | <option>Direct=(equals)</option> | ||
345 | </select> | ||
346 | <input type="text" name="" class="form-control" value="$1.7500"> | ||
347 | <div class="pull-right"> | ||
348 | <button class="btn btn-success">Save</button> | ||
349 | <button class="btn btn-danger">Delete</button> | ||
350 | <button class="btn btn-default" id="customTabToggle1" style="display: none;">Edit</button> | ||
351 | </div> | ||
352 | <div class="clearfix"></div> | ||
353 | </div> | ||
354 | <div class="customAccordianTabBody" id="customTabsBody1"> | ||
355 | <table class="customTableWithFilter"> | ||
356 | <thead> | ||
357 | <tr> | ||
358 | <th> | ||
359 | <span class="pull-left">1-250 gal.</span> | ||
360 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | ||
361 | </th> | ||
362 | <th> | ||
363 | <span class="pull-left">1-250 gal.</span> | ||
364 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | ||
365 | </th> | ||
366 | <th> | ||
367 | <input type="text" placeholder="min" name=""> - | ||
368 | <input type="text" placeholder="max" name=""> | ||
369 | <span>gal.</span> | ||
370 | </th> | ||
371 | <th> </th> | ||
372 | </tr> | ||
373 | </thead> | ||
374 | <tbody> | ||
375 | <tr> | ||
376 | <td> | ||
377 | <span class="pull-left">-$0.0000</span> | ||
378 | <span class="pull-right">($1.7500)</span> | ||
379 | </td> | ||
380 | <td> | ||
381 | <span class="pull-left">-$0.0000</span> | ||
382 | <span class="pull-right">($1.7500)</span> | ||
383 | </td> | ||
384 | <td> | ||
385 | <span>$</span> | ||
386 | <input type="text" placeholder="margin" class="tierTextBox" name=""> | ||
387 | <button class="addTierButton">Add Tier</button> | ||
388 | </td> | ||
389 | <td> | ||
390 | <i class="fa fa-trash-o" aria-hidden="true"></i> | ||
391 | </td> | ||
392 | </tr> | ||
393 | </tbody> | ||
394 | </table> | ||
395 | <textarea class="form-control resizeTextarea" placeholder="Message..."></textarea> | ||
396 | </div> | ||
397 | |||
398 | <!-- tab 2 --> | ||
399 | |||
400 | <div class="customAccordianHeader" id="customTabs2"> | ||
401 | <span>Jet Aircraft</span> | ||
402 | <select class="form-control" disabled="true"> | ||
403 | <option>Pricing Structure</option> | ||
404 | <option>Retail-(minus)</option> | ||
405 | <option>Cost+(plus)</option> | ||
406 | <option>Direct=(equals)</option> | ||
407 | </select> | ||
408 | <input type="text" name="" disabled="true" class="form-control" value="$1.7500"> | ||
409 | <div class="pull-right"> | ||
410 | <button class="btn btn-success" style="display: none;">Save</button> | ||
411 | <button class="btn btn-danger" style="display: none;">Delete</button> | ||
412 | <button class="btn btn-default" id="customTabToggle2">Edit</button> | ||
413 | </div> | ||
414 | <div class="clearfix"></div> | ||
415 | </div> | ||
416 | <div class="customAccordianTabBody" id="customTabsBody2" style="display: none;"> | ||
417 | <table class="customTableWithFilter"> | ||
418 | <thead> | ||
419 | <tr> | ||
420 | <th> | ||
421 | <span class="pull-left">1-250 gal.</span> | ||
422 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | ||
423 | </th> | ||
424 | <th> | ||
425 | <span class="pull-left">1-250 gal.</span> | ||
426 | <i class="fa fa-pencil-square-o pull-right" aria-hidden="true"></i> | ||
427 | </th> | ||
428 | <th> | ||
429 | <input type="text" placeholder="min" name=""> - | ||
430 | <input type="text" placeholder="max" name=""> | ||
431 | <span>gal.</span> | ||
432 | </th> | ||
433 | <th> </th> | ||
434 | </tr> | ||
435 | </thead> | ||
436 | <tbody> | ||
437 | <tr> | ||
438 | <td> | ||
439 | <span class="pull-left">-$0.0000</span> | ||
440 | <span class="pull-right">($1.7500)</span> | ||
441 | </td> | ||
442 | <td> | ||
443 | <span class="pull-left">-$0.0000</span> | ||
444 | <span class="pull-right">($1.7500)</span> | ||
445 | </td> | ||
446 | <td> | ||
447 | <span>$</span> | ||
448 | <input type="text" placeholder="margin" class="tierTextBox" name=""> | ||
449 | <button class="addTierButton">Add Tier</button> | ||
450 | </td> | ||
451 | <td> | ||
452 | <i class="fa fa-trash-o" aria-hidden="true"></i> | ||
453 | </td> | ||
454 | </tr> | ||
455 | </tbody> | ||
456 | </table> | ||
457 | <textarea class="form-control resizeTextarea" placeholder="Message..."></textarea> | ||
458 | </div> | ||
459 | |||
460 | <!-- tab 3 --> | ||
461 | |||
462 | <div class="customAccordianHeader" id="customTabs3"> | ||
463 | <span>Jet Aircraft</span> |
app/partials/fuelManager/fuelManager.service.js
1 | (function(){ | 1 | (function(){ |
2 | 'use strict'; | 2 | 'use strict'; |
3 | angular.module('acufuel') | 3 | angular.module('acufuel') |
4 | .service('fuelManagerService', ['$q', '$http', 'BASE_URL', fuelManagerService]); | 4 | .service('fuelManagerService', ['$q', '$http', 'BASE_URL', fuelManagerService]); |
5 | 5 | ||
6 | function fuelManagerService($q, $http, BASE_URL) { | 6 | function fuelManagerService($q, $http, BASE_URL) { |
7 | 7 | ||
8 | this.getOptions = function() { | 8 | this.getOptions = function() { |
9 | 9 | ||
10 | var deferred = $q.defer(); | 10 | var deferred = $q.defer(); |
11 | $http({ | 11 | $http({ |
12 | method : 'GET', | 12 | method : 'GET', |
13 | url : BASE_URL.url +'/rampFeesAndAvoidance/getCustomCategorySize', | 13 | url : BASE_URL.url +'/rampFeesAndAvoidance/getCustomCategorySize', |
14 | headers : {'Content-Type': 'application/json'}, | 14 | headers : {'Content-Type': 'application/json'}, |
15 | }) | 15 | }) |
16 | .then(function (result){ | 16 | .then(function (result){ |
17 | deferred.resolve(result.data); | 17 | deferred.resolve(result.data); |
18 | },function (result){ | 18 | },function (result){ |
19 | deferred.resolve(result.data); | 19 | deferred.resolve(result.data); |
20 | }) | 20 | }) |
21 | return deferred.promise; | 21 | return deferred.promise; |
22 | } | 22 | } |
23 | 23 | ||
24 | this.getAircrafts = function() { | 24 | this.getAircrafts = function() { |
25 | 25 | ||
26 | var deferred = $q.defer(); | 26 | var deferred = $q.defer(); |
27 | $http({ | 27 | $http({ |
28 | method : 'GET', | 28 | method : 'GET', |
29 | url : BASE_URL.url +'/fuelerlinx/acufuel/getAircraftMake', | 29 | url : BASE_URL.url +'/fuelerlinx/acufuel/getAircraftMake', |
30 | headers : {'Content-Type': 'application/json'}, | 30 | headers : {'Content-Type': 'application/json'}, |
31 | }) | 31 | }) |
32 | .then(function (result){ | 32 | .then(function (result){ |
33 | deferred.resolve(result.data); | 33 | deferred.resolve(result.data); |
34 | },function (result){ | 34 | },function (result){ |
35 | deferred.resolve(result.data); | 35 | deferred.resolve(result.data); |
36 | }) | 36 | }) |
37 | return deferred.promise; | 37 | return deferred.promise; |
38 | } | 38 | } |
39 | 39 | ||
40 | this.getFullList = function() { | 40 | this.getFullList = function() { |
41 | 41 | ||
42 | var deferred = $q.defer(); | 42 | var deferred = $q.defer(); |
43 | $http({ | 43 | $http({ |
44 | method : 'GET', | 44 | method : 'GET', |
45 | url : BASE_URL.url +'/rampFeesAndAvoidance/getAll', | 45 | url : BASE_URL.url +'/rampFeesAndAvoidance/getAll', |
46 | headers : {'Content-Type': 'application/json'}, | 46 | headers : {'Content-Type': 'application/json'}, |
47 | }) | 47 | }) |
48 | .then(function (result){ | 48 | .then(function (result){ |
49 | deferred.resolve(result.data); | 49 | deferred.resolve(result.data); |
50 | },function (result){ | 50 | },function (result){ |
51 | deferred.resolve(result.data); | 51 | deferred.resolve(result.data); |
52 | }) | 52 | }) |
53 | return deferred.promise; | 53 | return deferred.promise; |
54 | } | 54 | } |
55 | 55 | ||
56 | this.updateFullList = function(data){ | 56 | this.updateFullList = function(data){ |
57 | 57 | ||
58 | var deferred = $q.defer(); | 58 | var deferred = $q.defer(); |
59 | $http({ | 59 | $http({ |
60 | method : 'POST', | 60 | method : 'POST', |
61 | url : BASE_URL.url +'/rampFeesAndAvoidance', | 61 | url : BASE_URL.url +'/rampFeesAndAvoidance', |
62 | headers : {'Content-Type': 'application/json'}, | 62 | headers : {'Content-Type': 'application/json'}, |
63 | data: data | 63 | data: data |
64 | }) | 64 | }) |
65 | .then(function (result){ | 65 | .then(function (result){ |
66 | deferred.resolve(result.data); | 66 | deferred.resolve(result.data); |
67 | },function (result){ | 67 | },function (result){ |
68 | deferred.resolve(result.data); | 68 | deferred.resolve(result.data); |
69 | }) | 69 | }) |
70 | return deferred.promise; | 70 | return deferred.promise; |
71 | } | 71 | } |
72 | 72 | ||
73 | this.getRampFeeDetail = function(id) { | 73 | this.getRampFeeDetail = function(id) { |
74 | 74 | ||
75 | var deferred = $q.defer(); | 75 | var deferred = $q.defer(); |
76 | $http({ | 76 | $http({ |
77 | method : 'GET', | 77 | method : 'GET', |
78 | url : BASE_URL.url +'/getRampFeeBySize/CUSTOM', | 78 | url : BASE_URL.url +'/rampFeesAndAvoidance/getRampFeeBySize/'+id, |
79 | headers : {'Content-Type': 'application/json'}, | 79 | headers : {'Content-Type': 'application/json'}, |
80 | }) | 80 | }) |
81 | .then(function (result){ | 81 | .then(function (result){ |
82 | deferred.resolve(result.data); | 82 | deferred.resolve(result.data); |
83 | },function (result){ | 83 | },function (result){ |
84 | deferred.resolve(result.data); | 84 | deferred.resolve(result.data); |
85 | }) | 85 | }) |
86 | return deferred.promise; | 86 | return deferred.promise; |
87 | 87 | ||
88 | } | 88 | } |
89 | |||
90 | this.deleteCustomRamp = function(id){ | ||
91 | var deferred = $q.defer(); | ||
92 | $http({ | ||
93 | method : 'DELETE', | ||
94 | url : BASE_URL.url +'/rampFeesAndAvoidance/'+id, | ||
95 | headers : {'Content-Type': 'application/json'}, | ||
96 | }) | ||
97 | .then(function (result){ | ||
98 | deferred.resolve(result.data); | ||
99 | },function (result){ | ||
100 | deferred.resolve(result.data); | ||
101 | }) | ||
102 | return deferred.promise; | ||
103 | } | ||
89 | 104 | ||
90 | } | 105 | } |
91 | 106 | ||
92 | })(); | 107 | })(); |
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}}</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;" ng-click="saveJetAccordian(jets)">Save</button> | 95 | <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> | 96 | <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> | 97 | <button class="btn btn-default" ng-click="toggleJestAccordian(jets.id, $index)">Edit</button> |
98 | </div> | 98 | </div> |
99 | <div class="clearfix"></div> | 99 | <div class="clearfix"></div> |
100 | </div> | 100 | </div> |
101 | <div class="customAccordianTabBody {{jets.id}}" style="display: none;"> | 101 | <div class="customAccordianTabBody {{jets.id}}" style="display: none;"> |
102 | <div class="tierListWrap" ng-repeat="tier in aTypeJets[$index].tierList"> | 102 | <div class="tierListWrap" ng-repeat="tier in aTypeJets[$index].tierList"> |
103 | <div class="tierListHead" style="height: 36px;"> | 103 | <div class="tierListHead" style="height: 36px;"> |
104 | <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal. | 104 | <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal. |
105 | </span> | 105 | </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> | 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 | 107 | ||
108 | <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier"> | 108 | <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier"> |
109 | <span ng-show="showEditTier">-</span> | 109 | <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> | 110 | <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> | 111 | <div class="clearfix"></div> |
112 | </div> | 112 | </div> |
113 | <div class="tierListBody" style="height: 35px;"> | 113 | <div class="tierListBody" style="height: 35px;"> |
114 | <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span> | 114 | <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span> |
115 | 115 | ||
116 | <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> | 116 | <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> |
117 | 117 | ||
118 | <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal}})</span> | 118 | <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span> |
119 | 119 | ||
120 | <button class="addTierBtn" ng-click="editTier(tier, $parent.$index)" ng-show="showEditTier">Save</button> | 120 | <button class="addTierBtn" ng-click="editTier(tier, $parent.$index)" ng-show="showEditTier">Save</button> |
121 | 121 | ||
122 | <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i> | 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 | 123 | ||
124 | <div class="clearfix"></div> | 124 | <div class="clearfix"></div> |
125 | </div> | 125 | </div> |
126 | </div> | 126 | </div> |
127 | <div class="tierListWrap" style="width: 160px;"> | 127 | <div class="tierListWrap" style="width: 160px;"> |
128 | <div class="tierListHead" style="border-right: 1px solid #ddd;"> | 128 | <div class="tierListHead" style="border-right: 1px solid #ddd;"> |
129 | <input type="text" placeholder="min" ng-model="trData[$index].minTierBreak"> | 129 | <input type="text" placeholder="min" ng-model="trData[$index].minTierBreak"> |
130 | <span>-</span> | 130 | <span>-</span> |
131 | <input type="text" placeholder="max" ng-model="trData[$index].maxTierBreak"> <b>gal.</b> | 131 | <input type="text" placeholder="max" ng-model="trData[$index].maxTierBreak"> <b>gal.</b> |
132 | <div class="clearfix"></div> | 132 | <div class="clearfix"></div> |
133 | </div> | 133 | </div> |
134 | <div class="tierListBody" style="border-right: 1px solid #ddd;"> | 134 | <div class="tierListBody" style="border-right: 1px solid #ddd;"> |
135 | <span style="color: #449d44;">$</span> | 135 | <span style="color: #449d44;">$</span> |
136 | <input type="text" placeholder="margin" ng-model="trData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;"> | 136 | <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> | 137 | <button class="addTierBtn" ng-click="addNewTier(jets.id, trData, $index)">Add Tier</button> |
138 | <div class="clearfix"></div> | 138 | <div class="clearfix"></div> |
139 | </div> | 139 | </div> |
140 | </div> | 140 | </div> |
141 | <!-- <div class="tierListWrap" style="width: 32px;"> | 141 | <!-- <div class="tierListWrap" style="width: 32px;"> |
142 | <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;"> | 142 | <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;"> |
143 | | 143 | |
144 | </div> | 144 | </div> |
145 | <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;"> | 145 | <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;"> |
146 | <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i> | 146 | <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i> |
147 | </div> | 147 | </div> |
148 | </div> --> | 148 | </div> --> |
149 | <div class="clearfix"></div> | 149 | <div class="clearfix"></div> |
150 | <textarea class="form-control resizeTextarea" ng-model="jets.message" placeholder="Message..."></textarea> | 150 | <textarea class="form-control resizeTextarea" ng-model="jets.message" placeholder="Message..."></textarea> |
151 | </div> | 151 | </div> |
152 | </div> | 152 | </div> |
153 | </div> | 153 | </div> |
154 | </section> | 154 | </section> |
155 | <!-- <div class="row"> </div> | 155 | <!-- <div class="row"> </div> |
156 | <div class="row"> | 156 | <div class="row"> |
157 | <div class="form-group"> | 157 | <div class="form-group"> |
158 | <div class="col-lg-12 text-right"> | 158 | <div class="col-lg-12 text-right"> |
159 | <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button> | 159 | <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button> |
160 | <button type="reset" class="btn btn-default">Cancel</button> | 160 | <button type="reset" class="btn btn-default">Cancel</button> |
161 | </div> | 161 | </div> |
162 | </div> | 162 | </div> |
163 | </div> --> | 163 | </div> --> |
164 | </div> | 164 | </div> |
165 | <!-- /widget-content --> | 165 | <!-- /widget-content --> |
166 | </div> | 166 | </div> |
167 | <!-- /widget --> | 167 | <!-- /widget --> |
168 | </div> | 168 | </div> |
169 | <!-- /span6 --> | 169 | <!-- /span6 --> |
170 | </div> | 170 | </div> |
171 | <!-- /span12 --> | 171 | <!-- /span12 --> |
172 | </div> | 172 | </div> |
173 | <!-- /row --> | 173 | <!-- /row --> |
174 | <div class="container"> | 174 | <div class="container"> |
175 | <div class="row"> | 175 | <div class="row"> |
176 | <div class="col-md-5"> | 176 | <div class="col-md-5"> |
177 | <div class="widget stacked"> | 177 | <div class="widget stacked"> |
178 | <div class="widget-header"> | 178 | <div class="widget-header"> |
179 | <i class="fa fa-pencil"></i> | 179 | <i class="fa fa-pencil"></i> |
180 | <h3>Queue Future Pricing</h3> | 180 | <h3>Queue Future Pricing</h3> |
181 | </div> | 181 | </div> |
182 | <!-- /widget-header --> | 182 | <!-- /widget-header --> |
183 | <div class="widget-content"> | 183 | <div class="widget-content"> |
184 | <h4>Update Queue Future Fuel Pricing Here</h4> | 184 | <h4>Update Queue Future Fuel Pricing Here</h4> |
185 | <table class="table"> | 185 | <table class="table"> |
186 | <thead> | 186 | <thead> |
187 | <tr> | 187 | <tr> |
188 | <th> Product</th> | 188 | <th> Product</th> |
189 | <th> Cost</th> | 189 | <th> Cost</th> |
190 | <th> PAP(Total)</th> | 190 | <th> PAP(Total)</th> |
191 | <th> Deploy</th> | 191 | <th> Deploy</th> |
192 | <th style="color: #F90;"> Next Expiration</th> | 192 | <th style="color: #F90;"> Next Expiration</th> |
193 | </tr> | 193 | </tr> |
194 | </thead> | 194 | </thead> |
195 | <tbody> | 195 | <tbody> |
196 | <tr ng-repeat="fuelPricing in newFuelPricing"> | 196 | <tr ng-repeat="fuelPricing in newFuelPricing"> |
197 | <td> | 197 | <td> |
198 | <span>{{fuelPricing.name}}</span> | 198 | <span>{{fuelPricing.name}}</span> |
199 | </td> | 199 | </td> |
200 | <td> | 200 | <td> |
201 | <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.cost" style="height:31px; width: 50px; padding: 6px 6px;"> | 201 | <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.cost" style="height:31px; width: 50px; padding: 6px 6px;"> |
202 | </td> | 202 | </td> |
203 | <td> | 203 | <td> |
204 | <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.futureFuelPricing.cost -- fuelPricing.fuelPricing.papMargin}}</span> | 204 | <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.futureFuelPricing.cost -- fuelPricing.fuelPricing.papMargin | number : 2}}</span> |
205 | </td> | 205 | </td> |
206 | <td> | 206 | <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;"> | 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;"> |
208 | </td> | 208 | </td> |
209 | <td> | 209 | <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;"> | 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;"> |
211 | </td> | 211 | </td> |
212 | </tr> | 212 | </tr> |
213 | </tbody> | 213 | </tbody> |
214 | </table> | 214 | </table> |
215 | <div class="row" style="margin-left: 0px;"> | 215 | <div class="row" style="margin-left: 0px;"> |
216 | <div class="col-md-12" style= "text-align: right;"> | 216 | <div class="col-md-12" style= "text-align: right;"> |
217 | <button type="button" class="btn btn-success btn-xs" ng-click="updateFutureFuelPricingClick()">Save</button> | 217 | <button type="button" class="btn btn-success btn-xs" ng-click="updateFutureFuelPricingClick()">Save</button> |
218 | </div> | 218 | </div> |
219 | </div> | 219 | </div> |
220 | </div> | 220 | </div> |
221 | <!-- /widget-content --> | 221 | <!-- /widget-content --> |
222 | </div> | 222 | </div> |
223 | <!-- /widget --> | 223 | <!-- /widget --> |
224 | </div> | 224 | </div> |
225 | <div class="col-md-7"> | 225 | <div class="col-md-7"> |
226 | <div class="widget stacked"> | 226 | <div class="widget stacked"> |
227 | <div class="widget-header"> | 227 | <div class="widget-header"> |
228 | <i class="fa fa-pencil"></i> | 228 | <i class="fa fa-pencil"></i> |
229 | <h3><b style="color: 39c;">AVGAS 100LL </b> <i>Customer Margin Template</i></h3> | 229 | <h3><b style="color: 39c;">AVGAS 100LL </b> <i>Customer Margin Template</i></h3> |
230 | <div class="pull-right"> | 230 | <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> | 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> |
232 | </div> | 232 | </div> |
233 | </div> | 233 | </div> |
234 | <!-- /widget-header --> | 234 | <!-- /widget-header --> |
235 | <div class="widget-content" style="padding-top: 10px;"> | 235 | <div class="widget-content" style="padding-top: 10px;"> |
236 | <section id="accordions"> | 236 | <section id="accordions"> |
237 | <div class="newCustomAccordian"> | 237 | <div class="newCustomAccordian"> |
238 | <!-- tab 1 --> | 238 | <!-- tab 1 --> |
239 | <div ng-repeat="jets in vTypeJets"> | 239 | <div ng-repeat="jets in vTypeJets"> |
240 | <div class="customAccordianHeader" id="{{jets.id}}"> | 240 | <div class="customAccordianHeader" id="{{jets.id}}"> |
241 | <span>{{jets.marginName}}</span> | 241 | <span>{{jets.marginName}}</span> |
242 | <select class="form-control" disabled="true" ng-model="jets.pricingStructure"> | 242 | <select class="form-control" disabled="true" ng-model="jets.pricingStructure"> |
243 | <option value="" disabled selected>Pricing Structure</option> | 243 | <option value="" disabled selected>Pricing Structure</option> |
244 | <option value="minus">Retail-(minus)</option> | 244 | <option value="minus">Retail-(minus)</option> |
245 | <option value="plus">Cost+(plus)</option> | 245 | <option value="plus">Cost+(plus)</option> |
246 | <option value="equal">Direct=(equal)</option> | 246 | <option value="equal">Direct=(equal)</option> |
247 | </select> | 247 | </select> |
248 | <span style="margin-right: 0;">$</span> | 248 | <span style="margin-right: 0;">$</span> |
249 | <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue"> | 249 | <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue"> |
250 | <div class="pull-right"> | 250 | <div class="pull-right"> |
251 | <button class="btn btn-success" style="display: none;" ng-click="saveVtypeJetAccordian(jets)">Save</button> | 251 | <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> | 252 | <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> | 253 | <button class="btn btn-default" ng-click="toggleVtypeJestAccordian(jets.id, $index)">Edit</button> |
254 | </div> | 254 | </div> |
255 | <div class="clearfix"></div> | 255 | <div class="clearfix"></div> |
256 | </div> | 256 | </div> |
257 | <div class="customAccordianTabBody {{jets.id}}" style="display: none;"> | 257 | <div class="customAccordianTabBody {{jets.id}}" style="display: none;"> |
258 | <div class="tierListWrap" ng-repeat="tier in vTypeJets[$index].tierList"> | 258 | <div class="tierListWrap" ng-repeat="tier in vTypeJets[$index].tierList"> |
259 | <div class="tierListHead" style="height: 36px;"> | 259 | <div class="tierListHead" style="height: 36px;"> |
260 | <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal. | 260 | <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal. |
261 | </span> | 261 | </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> | 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> |
263 | 263 | ||
264 | <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier"> | 264 | <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier"> |
265 | <span ng-show="showEditTier">-</span> | 265 | <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> | 266 | <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> | 267 | <div class="clearfix"></div> |
268 | </div> | 268 | </div> |
269 | <div class="tierListBody" style="height: 35px;"> | 269 | <div class="tierListBody" style="height: 35px;"> |
270 | <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span> | 270 | <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span> |
271 | 271 | ||
272 | <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> | 272 | <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> |
273 | 273 | ||
274 | <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal}})</span> | 274 | <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span> |
275 | 275 | ||
276 | <button class="addTierBtn" ng-click="editVtypeTier(tier, $parent.$index)" ng-show="showEditTier">Save</button> | 276 | <button class="addTierBtn" ng-click="editVtypeTier(tier, $parent.$index)" ng-show="showEditTier">Save</button> |
277 | 277 | ||
278 | <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteVtypeTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i> | 278 | <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteVtypeTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i> |
279 | 279 | ||
280 | <div class="clearfix"></div> | 280 | <div class="clearfix"></div> |
281 | </div> | 281 | </div> |
282 | </div> | 282 | </div> |
283 | <div class="tierListWrap" style="width: 160px;"> | 283 | <div class="tierListWrap" style="width: 160px;"> |
284 | <div class="tierListHead" style="border-right: 1px solid #ddd;"> | 284 | <div class="tierListHead" style="border-right: 1px solid #ddd;"> |
285 | <input type="text" placeholder="min" ng-model="vtrData[$index].minTierBreak"> | 285 | <input type="text" placeholder="min" ng-model="vtrData[$index].minTierBreak"> |
286 | <span>-</span> | 286 | <span>-</span> |
287 | <input type="text" placeholder="max" ng-model="vtrData[$index].maxTierBreak"> <b>gal.</b> | 287 | <input type="text" placeholder="max" ng-model="vtrData[$index].maxTierBreak"> <b>gal.</b> |
288 | <div class="clearfix"></div> | 288 | <div class="clearfix"></div> |
289 | </div> | 289 | </div> |
290 | <div class="tierListBody" style="border-right: 1px solid #ddd;"> | 290 | <div class="tierListBody" style="border-right: 1px solid #ddd;"> |
291 | <span style="color: #449d44;">$</span> | 291 | <span style="color: #449d44;">$</span> |
292 | <input type="text" placeholder="margin" ng-model="vtrData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;"> | 292 | <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> | 293 | <button class="addTierBtn" ng-click="addNewVtypeTier(jets.id, vtrData, $index)">Add Tier</button> |
294 | <div class="clearfix"></div> | 294 | <div class="clearfix"></div> |
295 | </div> | 295 | </div> |
296 | </div> | 296 | </div> |
297 | <!-- <div class="tierListWrap" style="width: 32px;"> | 297 | <!-- <div class="tierListWrap" style="width: 32px;"> |
298 | <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;"> | 298 | <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;"> |
299 | | 299 | |
300 | </div> | 300 | </div> |
301 | <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;"> | 301 | <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;"> |
302 | <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i> | 302 | <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i> |
303 | </div> | 303 | </div> |
304 | </div> --> | 304 | </div> --> |
305 | <div class="clearfix"></div> | 305 | <div class="clearfix"></div> |
306 | <textarea class="form-control resizeTextarea" ng-model="jets.message" placeholder="Message..."></textarea> | 306 | <textarea class="form-control resizeTextarea" ng-model="jets.message" placeholder="Message..."></textarea> |
307 | </div> | 307 | </div> |
308 | </div> | 308 | </div> |
309 | </div> | 309 | </div> |
310 | </section> | 310 | </section> |
311 | <!-- <div class="row"> </div> | 311 | <!-- <div class="row"> </div> |
312 | <div class="row"> | 312 | <div class="row"> |
313 | <div class="form-group"> | 313 | <div class="form-group"> |
314 | <div class="col-lg-12 text-right"> | 314 | <div class="col-lg-12 text-right"> |
315 | <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button> | 315 | <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button> |
316 | <button type="reset" class="btn btn-default">Cancel</button> | 316 | <button type="reset" class="btn btn-default">Cancel</button> |
317 | </div> | 317 | </div> |
318 | </div> | 318 | </div> |
319 | </div> --> | 319 | </div> --> |
320 | </div> | 320 | </div> |
321 | <!-- /widget-content --> | 321 | <!-- /widget-content --> |
322 | </div> | 322 | </div> |
323 | <!-- /widget --> | 323 | <!-- /widget --> |
324 | </div> | 324 | </div> |
325 | <!-- /span6 --> | 325 | <!-- /span6 --> |
326 | </div> | 326 | </div> |
327 | </div> | 327 | </div> |
328 | </div> | 328 | </div> |
329 | </div> <!-- /container --> | 329 | </div> <!-- /container --> |
330 | 330 | ||
331 | 331 | ||
332 | <div class="addNewMargin" style="display: none;"> | 332 | <div class="addNewMargin" style="display: none;"> |
333 | <div class="customBackdrop"> | 333 | <div class="customBackdrop"> |
334 | <div class="customModalInner" style="max-width: 700px;"> | 334 | <div class="customModalInner" style="max-width: 700px;"> |
335 | <div class="customModelHead"> | 335 | <div class="customModelHead"> |
336 | <p class="pull-left"> | 336 | <p class="pull-left"> |
337 | <i class="fa fa-list-alt" aria-hidden="true"></i> | 337 | <i class="fa fa-list-alt" aria-hidden="true"></i> |
338 | Add New JET-A Customer Margin | 338 | Add New JET-A Customer Margin |
339 | </p> | 339 | </p> |
340 | <p class="pull-right"> | 340 | <p class="pull-right"> |
341 | <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeMarginPopup()"></i> | 341 | <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeMarginPopup()"></i> |
342 | </p> | 342 | </p> |
343 | <div class="clearfix"></div> | 343 | <div class="clearfix"></div> |
344 | </div> | 344 | </div> |
345 | <div class="customModelBody"> | 345 | <div class="customModelBody"> |
346 | 346 | ||
347 | <div class="customAccordianHeader customActive"> | 347 | <div class="customAccordianHeader customActive"> |
348 | <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newJet.marginName"> | 348 | <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"> | 349 | <select class="form-control" ng-model="newJet.pricingStructure"> |
350 | <option value="" disabled selected>Pricing Structure</option> | 350 | <option value="" disabled selected>Pricing Structure</option> |
351 | <option value="minus">Retail-(minus)</option> | 351 | <option value="minus">Retail-(minus)</option> |
352 | <option value="plus">Cost+(plus)</option> | 352 | <option value="plus">Cost+(plus)</option> |
353 | <option value="equal">Direct=(equal)</option> | 353 | <option value="equal">Direct=(equal)</option> |
354 | </select> | 354 | </select> |
355 | <span style="margin-right: 0;">$</span> | 355 | <span style="margin-right: 0;">$</span> |
356 | <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newJet.marginValue"> | 356 | <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newJet.marginValue"> |
357 | <div class="clearfix"></div> | 357 | <div class="clearfix"></div> |
358 | </div> | 358 | </div> |
359 | <div class="customAccordianTabBody"> | 359 | <div class="customAccordianTabBody"> |
360 | <textarea class="form-control resizeTextarea" ng-model="newJet.message" placeholder="Message..."></textarea> | 360 | <textarea class="form-control resizeTextarea" ng-model="newJet.message" placeholder="Message..."></textarea> |
361 | </div> | 361 | </div> |
362 | 362 | ||
363 | </div> | 363 | </div> |
364 | <div class="customModelFooter text-center"> | 364 | <div class="customModelFooter text-center"> |
365 | <input type="submit" value="Save" class="btn" ng-click="addNewATypeJet()"> | 365 | <input type="submit" value="Save" class="btn" ng-click="addNewATypeJet()"> |
366 | <button class="btn" ng-click="closeMarginPopup()">Cancel</button> | 366 | <button class="btn" ng-click="closeMarginPopup()">Cancel</button> |
367 | </div> | 367 | </div> |
368 | </div> | 368 | </div> |
369 | </div> | 369 | </div> |
370 | </div> | 370 | </div> |
371 | 371 | ||
372 | <div class="addNewVtype" style="display: none;"> | 372 | <div class="addNewVtype" style="display: none;"> |
373 | <div class="customBackdrop"> | 373 | <div class="customBackdrop"> |
374 | <div class="customModalInner" style="max-width: 700px;"> | 374 | <div class="customModalInner" style="max-width: 700px;"> |
375 | <div class="customModelHead"> | 375 | <div class="customModelHead"> |
376 | <p class="pull-left"> | 376 | <p class="pull-left"> |
377 | <i class="fa fa-list-alt" aria-hidden="true"></i> | 377 | <i class="fa fa-list-alt" aria-hidden="true"></i> |
378 | Add New AVGAS 100LL Customer Margin Template | 378 | Add New AVGAS 100LL Customer Margin Template |
379 | </p> | 379 | </p> |
380 | <p class="pull-right"> | 380 | <p class="pull-right"> |
381 | <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeNewVtypePop()"></i> | 381 | <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeNewVtypePop()"></i> |
382 | </p> | 382 | </p> |
383 | <div class="clearfix"></div> | 383 | <div class="clearfix"></div> |
384 | </div> | 384 | </div> |
385 | <div class="customModelBody"> | 385 | <div class="customModelBody"> |
386 | 386 | ||
387 | <div class="customAccordianHeader customActive"> | 387 | <div class="customAccordianHeader customActive"> |
388 | <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newVtypeJet.marginName"> | 388 | <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"> | 389 | <select class="form-control" ng-model="newVtypeJet.pricingStructure"> |
390 | <option value="" disabled selected>Pricing Structure</option> | 390 | <option value="" disabled selected>Pricing Structure</option> |
391 | <option value="minus">Retail-(minus)</option> | 391 | <option value="minus">Retail-(minus)</option> |
392 | <option value="plus">Cost+(plus)</option> | 392 | <option value="plus">Cost+(plus)</option> |
393 | <option value="equal">Direct=(equal)</option> | 393 | <option value="equal">Direct=(equal)</option> |
394 | </select> | 394 | </select> |
395 | <span style="margin-right: 0;">$</span> | 395 | <span style="margin-right: 0;">$</span> |
396 | <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newVtypeJet.marginValue"> | 396 | <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newVtypeJet.marginValue"> |
397 | <div class="clearfix"></div> | 397 | <div class="clearfix"></div> |
398 | </div> | 398 | </div> |
399 | <div class="customAccordianTabBody"> | 399 | <div class="customAccordianTabBody"> |
400 | <textarea class="form-control resizeTextarea" ng-model="newVtypeJet.message" placeholder="Message..."></textarea> | 400 | <textarea class="form-control resizeTextarea" ng-model="newVtypeJet.message" placeholder="Message..."></textarea> |
401 | </div> | 401 | </div> |
402 | 402 | ||
403 | </div> | 403 | </div> |
404 | <div class="customModelFooter text-center"> | 404 | <div class="customModelFooter text-center"> |
405 | <input type="submit" value="Save" class="btn" ng-click="addNewVTypeJet()"> | 405 | <input type="submit" value="Save" class="btn" ng-click="addNewVTypeJet()"> |
406 | <button class="btn" ng-click="closeNewVtypePop()">Cancel</button> | 406 | <button class="btn" ng-click="closeNewVtypePop()">Cancel</button> |
407 | </div> | 407 | </div> |
408 | </div> | 408 | </div> |
409 | </div> | 409 | </div> |
410 | </div> | 410 | </div> |
411 | 411 | ||
412 | <div class="customConfirmPopBackdrop" id="confirm1" style="display: none;"> | 412 | <div class="customConfirmPopBackdrop" id="confirm1" style="display: none;"> |
413 | <div class="customModalInner"> | 413 | <div class="customModalInner"> |
414 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> | 414 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> |
415 | <table> | 415 | <table> |
416 | <tr> | 416 | <tr> |
417 | <td> | 417 | <td> |
418 | <img src="img/info.png" style="width: 50px;"> | 418 | <img src="img/info.png" style="width: 50px;"> |
419 | </td> | 419 | </td> |
420 | <td> | 420 | <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> | 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> |
422 | </td> | 422 | </td> |
423 | </tr> | 423 | </tr> |
424 | </table> | 424 | </table> |
425 | </div> | 425 | </div> |
426 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> | 426 | <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> | 427 | <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> | 428 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button> |
429 | </div> | 429 | </div> |
430 | </div> | 430 | </div> |
431 | </div> | 431 | </div> |
432 | 432 | ||
433 | <div class="customConfirmPopBackdrop" id="deleteTierConfirm" style="display: none;"> | 433 | <div class="customConfirmPopBackdrop" id="deleteTierConfirm" style="display: none;"> |
434 | <div class="customModalInner"> | 434 | <div class="customModalInner"> |
435 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> | 435 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> |
436 | <table> | 436 | <table> |
437 | <tr> | 437 | <tr> |
438 | <td> | 438 | <td> |
439 | <img src="img/info.png" style="width: 50px;"> | 439 | <img src="img/info.png" style="width: 50px;"> |
440 | </td> | 440 | </td> |
441 | <td> | 441 | <td> |
442 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p> | 442 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p> |
443 | </td> | 443 | </td> |
444 | </tr> | 444 | </tr> |
445 | </table> | 445 | </table> |
446 | </div> | 446 | </div> |
447 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> | 447 | <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> | 448 | <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> | 449 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelTierDelete()">Cancel</button> |
450 | </div> | 450 | </div> |
451 | </div> | 451 | </div> |
452 | </div> | 452 | </div> |
453 | 453 | ||
454 | <div class="customConfirmPopBackdrop" id="deleteVtypeTierConfirm" style="display: none;"> | 454 | <div class="customConfirmPopBackdrop" id="deleteVtypeTierConfirm" style="display: none;"> |
455 | <div class="customModalInner"> | 455 | <div class="customModalInner"> |
456 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> | 456 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> |
457 | <table> | 457 | <table> |
458 | <tr> | 458 | <tr> |
459 | <td> | 459 | <td> |
460 | <img src="img/info.png" style="width: 50px;"> | 460 | <img src="img/info.png" style="width: 50px;"> |
461 | </td> | 461 | </td> |
462 | <td> | 462 | <td> |
463 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p> | 463 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</p> |
464 | </td> | 464 | </td> |
465 | </tr> | 465 | </tr> |
466 | </table> | 466 | </table> |
467 | </div> | 467 | </div> |
468 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> | 468 | <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> | 469 | <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> | 470 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeTierDelete()">Cancel</button> |
471 | </div> | 471 | </div> |
472 | </div> | 472 | </div> |
473 | </div> | 473 | </div> |
474 | 474 | ||
475 | <div class="customConfirmPopBackdrop" id="deleteMargin" style="display: none;"> | 475 | <div class="customConfirmPopBackdrop" id="deleteMargin" style="display: none;"> |
476 | <div class="customModalInner"> | 476 | <div class="customModalInner"> |
477 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> | 477 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> |
478 | <table> | 478 | <table> |
479 | <tr> | 479 | <tr> |
480 | <td> | 480 | <td> |
481 | <img src="img/info.png" style="width: 50px;"> | 481 | <img src="img/info.png" style="width: 50px;"> |
482 | </td> | 482 | </td> |
483 | <td> | 483 | <td> |
484 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p> | 484 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p> |
485 | </td> | 485 | </td> |
486 | </tr> | 486 | </tr> |
487 | </table> | 487 | </table> |
488 | </div> | 488 | </div> |
489 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> | 489 | <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> | 490 | <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> | 491 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelMarginDelete()">Cancel</button> |
492 | </div> | 492 | </div> |
493 | </div> | 493 | </div> |
494 | </div> | 494 | </div> |
495 | 495 | ||
496 | <div class="customConfirmPopBackdrop" id="deleteVtypeMargin" style="display: none;"> | 496 | <div class="customConfirmPopBackdrop" id="deleteVtypeMargin" style="display: none;"> |
497 | <div class="customModalInner"> | 497 | <div class="customModalInner"> |
498 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> | 498 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> |
499 | <table> | 499 | <table> |
500 | <tr> | 500 | <tr> |
501 | <td> | 501 | <td> |
502 | <img src="img/info.png" style="width: 50px;"> | 502 | <img src="img/info.png" style="width: 50px;"> |
503 | </td> | 503 | </td> |
504 | <td> | 504 | <td> |
505 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p> | 505 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</p> |
506 | </td> | 506 | </td> |
507 | </tr> | 507 | </tr> |
508 | </table> | 508 | </table> |
509 | </div> | 509 | </div> |
510 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> | 510 | <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> | 511 | <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> | 512 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeMarginDelete()">Cancel</button> |
513 | </div> | 513 | </div> |
514 | </div> | 514 | </div> |
515 | </div> | 515 | </div> |
516 | 516 | ||
517 | <!-- Le javascript | 517 | <!-- Le javascript |
518 | ================================================== --> | 518 | ================================================== --> |
519 | <!-- Placed at the end of the document so the pages load faster --> | 519 | <!-- Placed at the end of the document so the pages load faster --> |
520 | <!-- <script> | 520 | <!-- <script> |
521 | CKEDITOR.replace( 'editor2', { | 521 | CKEDITOR.replace( 'editor2', { |
522 | height: 250, | 522 | height: 250, |
523 | extraPlugins: 'divarea' | 523 | extraPlugins: 'divarea' |
524 | } ); | 524 | } ); |
525 | </script> --> | 525 | </script> --> |