Commit a9a8f570d78764f55143b55d83a55bc2da007245
1 parent
a7a7cfeca7
Exists in
master
new desing implementaion
Showing
2 changed files
with
48 additions
and
9 deletions
Show diff stats
app/partials/viewCompany/viewCompany.controller.js
1 | 1 | ||
2 | 'use strict'; | 2 | 'use strict'; |
3 | 3 | ||
4 | //Load controller | 4 | //Load controller |
5 | angular.module('acufuel') | 5 | angular.module('acufuel') |
6 | 6 | ||
7 | .controller('viewCompanyController', ['$scope','$uibModal', '$stateParams', 'ViewCompanyService', 'CustomersService', 'updateFuelManagerService', function($scope , $uibModal, $stateParams, ViewCompanyService, CustomersService, updateFuelManagerService) { | 7 | .controller('viewCompanyController', ['$scope','$uibModal', '$stateParams', 'ViewCompanyService', 'CustomersService', 'updateFuelManagerService', function($scope , $uibModal, $stateParams, ViewCompanyService, CustomersService, updateFuelManagerService) { |
8 | $scope.data = {}; | 8 | $scope.data = {}; |
9 | $scope.data.priceEmail = true; | 9 | $scope.data.priceEmail = true; |
10 | $scope.aircraft = {}; | 10 | $scope.aircraft = {}; |
11 | $scope.primayData = {}; | 11 | $scope.primayData = {}; |
12 | $scope.showLoader = false; | 12 | $scope.showLoader = false; |
13 | $scope.showLoader = true; | 13 | $scope.showLoader = true; |
14 | $scope.showUpdateBtn = false; | 14 | $scope.showUpdateBtn = false; |
15 | $scope.userProfileId = JSON.parse(localStorage.getItem('userProfileId')); | 15 | $scope.userProfileId = JSON.parse(localStorage.getItem('userProfileId')); |
16 | 16 | ||
17 | $(document).ready(function() { | 17 | $(document).ready(function() { |
18 | $("#reset").click(function() { | 18 | $("#reset").click(function() { |
19 | $("input").val(""); | 19 | $("input").val(""); |
20 | }); | 20 | }); |
21 | }); | 21 | }); |
22 | 22 | ||
23 | CustomersService.getMargin().then(function(result) { | 23 | CustomersService.getMargin().then(function(result) { |
24 | $scope.marginList = result; | 24 | $scope.marginList = result; |
25 | }) | 25 | }) |
26 | 26 | ||
27 | var value = ""; | 27 | var value = ""; |
28 | var companyId = $stateParams.id; | 28 | var companyId = $stateParams.id; |
29 | 29 | $scope.companyData = {}; | |
30 | $scope.multipleMsg = false; | ||
31 | $scope.companyData.masterMargin = ""; | ||
30 | getCompanyDetail(); | 32 | getCompanyDetail(); |
31 | function getCompanyDetail(){ | 33 | function getCompanyDetail(){ |
32 | ViewCompanyService.getCompany(companyId).then(function(result) { | 34 | ViewCompanyService.getCompany(companyId).then(function(result) { |
33 | $scope.companyData = result; | 35 | $scope.companyData = result; |
34 | if(result.margin != null){ | 36 | if(result.margin != null){ |
35 | $scope.companyData.masterMargin = result.margin.id; | 37 | $scope.companyData.masterMargin = result.margin.id; |
36 | } | 38 | } |
39 | if(result.marginAVGAS != null){ | ||
40 | $scope.companyData.avgasMargin = result.marginAVGAS.id; | ||
41 | } | ||
37 | $scope.showLoader = false; | 42 | $scope.showLoader = false; |
38 | }) | 43 | }) |
39 | } | 44 | } |
40 | 45 | ||
41 | 46 | ||
42 | $scope.changeCompanyStatus = function(){ | 47 | $scope.changeCompanyStatus = function(){ |
43 | var statusData = "status=" + $scope.companyData.activate; | 48 | var statusData = "status=" + $scope.companyData.activate; |
44 | ViewCompanyService.changeStatus(companyId, statusData).then(function(result) { | 49 | ViewCompanyService.changeStatus(companyId, statusData).then(function(result) { |
45 | if(result.success){ | 50 | if(result.success){ |
46 | toastr.success(''+result.success+'', { | 51 | toastr.success(''+result.success+'', { |
47 | closeButton: true | 52 | closeButton: true |
48 | }) | 53 | }) |
49 | } | 54 | } |
50 | }) | 55 | }) |
51 | } | 56 | } |
52 | 57 | ||
53 | 58 | ||
54 | getContactList(); | 59 | getContactList(); |
55 | function getContactList(){ | 60 | function getContactList(){ |
56 | ViewCompanyService.getContact(companyId).then(function(result) { | 61 | ViewCompanyService.getContact(companyId).then(function(result) { |
57 | $scope.companyContactList = result; | 62 | $scope.companyContactList = result; |
58 | }) | 63 | }) |
59 | } | 64 | } |
60 | 65 | $scope.aircraftmargins = []; | |
61 | getAircraftList(); | 66 | getAircraftList(); |
62 | function getAircraftList(){ | 67 | function getAircraftList(){ |
63 | ViewCompanyService.getAircraft(companyId).then(function(result) { | 68 | ViewCompanyService.getAircraft(companyId).then(function(result) { |
64 | $scope.contactAircraftList = result; | 69 | $scope.contactAircraftList = result; |
70 | for (var i = 0; i < $scope.contactAircraftList.length; i++) { | ||
71 | if($scope.contactAircraftList[i].aircraftsMargin != null){ | ||
72 | $scope.aircraftmargins.push({ | ||
73 | 'id': $scope.contactAircraftList[i].aircraftsMargin.id | ||
74 | }) | ||
75 | } | ||
76 | } | ||
77 | if($scope.aircraftmargins.length > 0) { | ||
78 | for (var i = 0; i < $scope.aircraftmargins.length; i++) { | ||
79 | if($scope.aircraftmargins[i].id != $scope.companyData.masterMargin){ | ||
80 | $scope.multiple = true; | ||
81 | $scope.multipleMsg = true; | ||
82 | if($scope.multiple) { | ||
83 | $scope.companyData.masterMargin = "multiple"; | ||
84 | } | ||
85 | } | ||
86 | } | ||
87 | } | ||
65 | }) | 88 | }) |
66 | } | 89 | } |
67 | |||
68 | 90 | ||
69 | $scope.contactData = {}; | 91 | $scope.contactData = {}; |
70 | $scope.contactData.contactList = []; | 92 | $scope.contactData.contactList = []; |
71 | $scope.addContact = function(){ | 93 | $scope.addContact = function(){ |
72 | $scope.data.companyId = companyId; | 94 | $scope.data.companyId = companyId; |
73 | $scope.contactData.contactList.push($scope.data); | 95 | $scope.contactData.contactList.push($scope.data); |
74 | ViewCompanyService.addContact($scope.contactData).then(function(result) { | 96 | ViewCompanyService.addContact($scope.contactData).then(function(result) { |
75 | console.log(result) | 97 | console.log(result) |
76 | if(result.status == 200){ | 98 | if(result.status == 200){ |
77 | // toastr.success(''+result.success+'', { | 99 | // toastr.success(''+result.success+'', { |
78 | // closeButton: true | 100 | // closeButton: true |
79 | // }) | 101 | // }) |
80 | $('#contact-modal-3').modal('hide'); | 102 | $('#contact-modal-3').modal('hide'); |
81 | $scope.primayData.id = result.data; | 103 | $scope.primayData.id = result.data; |
82 | $scope.sendPrimaryContact(); | 104 | $scope.sendPrimaryContact(); |
83 | getContactList(); | 105 | getContactList(); |
84 | }else{ | 106 | }else{ |
85 | toastr.error(''+result.statusText+'', { | 107 | toastr.error(''+result.statusText+'', { |
86 | closeButton: true | 108 | closeButton: true |
87 | }) | 109 | }) |
88 | } | 110 | } |
89 | }) | 111 | }) |
90 | } | 112 | } |
91 | 113 | ||
92 | getData(); | 114 | getData(); |
93 | function getData(){ | 115 | function getData(){ |
94 | CustomersService.getAircraftMake().then(function(result) { | 116 | CustomersService.getAircraftMake().then(function(result) { |
95 | $scope.aircraftMakeList = result; | 117 | $scope.aircraftMakeList = result; |
96 | }) | 118 | }) |
97 | } | 119 | } |
98 | 120 | ||
99 | $scope.clearAircrafts = function(){ | 121 | $scope.clearAircrafts = function(){ |
100 | $scope.aircraftDetails = []; | 122 | $scope.aircraftDetails = []; |
101 | $scope.aircraftDetails = [{ | 123 | $scope.aircraftDetails = [{ |
102 | 'tail':'', | 124 | 'tail':'', |
103 | 'make': '', | 125 | 'make': '', |
104 | 'model': '', | 126 | 'model': '', |
105 | 'sizeId' : '', | 127 | 'sizeId' : '', |
106 | 'marginId': '' | 128 | 'marginId': '' |
107 | }]; | 129 | }]; |
108 | } | 130 | } |
109 | 131 | ||
110 | $scope.addNew = function(){ | 132 | $scope.addNew = function(){ |
111 | $scope.aircraftDetails.push({ | 133 | $scope.aircraftDetails.push({ |
112 | 'tail':'', | 134 | 'tail':'', |
113 | 'make': '', | 135 | 'make': '', |
114 | 'model': '', | 136 | 'model': '', |
115 | 'sizeId' : '', | 137 | 'sizeId' : '', |
116 | 'marginId': '' | 138 | 'marginId': '' |
117 | }); | 139 | }); |
118 | console.log($scope.aircraftDetails) | 140 | console.log($scope.aircraftDetails) |
119 | }; | 141 | }; |
120 | 142 | ||
121 | $scope.getModal = function(makeId, index){ | 143 | $scope.getModal = function(makeId, index){ |
122 | $scope.showLoader = true; | 144 | $scope.showLoader = true; |
123 | $scope.aircraft.make = makeId; | 145 | $scope.aircraft.make = makeId; |
124 | //var makeId = makeId; | 146 | //var makeId = makeId; |
125 | CustomersService.getModal($scope.aircraft.make).then(function(result) { | 147 | CustomersService.getModal($scope.aircraft.make).then(function(result) { |
126 | $scope.showLoader = false; | 148 | $scope.showLoader = false; |
127 | $scope.aircraftDetails[index].aircraftModalList = result; | 149 | $scope.aircraftDetails[index].aircraftModalList = result; |
128 | //$scope.aircraftDetails[index].model = $scope.aircraftModalList[0]; | 150 | //$scope.aircraftDetails[index].model = $scope.aircraftModalList[0]; |
129 | }) | 151 | }) |
130 | } | 152 | } |
131 | 153 | ||
132 | $scope.getSize = function(model, index){ | 154 | $scope.getSize = function(model, index){ |
133 | $scope.showLoader = true; | 155 | $scope.showLoader = true; |
134 | CustomersService.getAircraftSize($scope.aircraft.make, model).then(function(result) { | 156 | CustomersService.getAircraftSize($scope.aircraft.make, model).then(function(result) { |
135 | $scope.showLoader = false; | 157 | $scope.showLoader = false; |
136 | $scope.aircraftDetails[index].aircraftSizeList = result; | 158 | $scope.aircraftDetails[index].aircraftSizeList = result; |
137 | //$scope.aircraftDetails[index].size = $scope.aircraftSizeList[0]; | 159 | //$scope.aircraftDetails[index].size = $scope.aircraftSizeList[0]; |
138 | }) | 160 | }) |
139 | } | 161 | } |
140 | 162 | ||
141 | $scope.aircraftListData = {}; | 163 | $scope.aircraftListData = {}; |
142 | //$scope.addData = []; | 164 | //$scope.addData = []; |
143 | $scope.saveCompanyData = function(){ | 165 | $scope.saveCompanyData = function(){ |
144 | for(var i=0; i<$scope.aircraftDetails.length;i++){ | 166 | for(var i=0; i<$scope.aircraftDetails.length;i++){ |
145 | $scope.addData = []; | 167 | $scope.addData = []; |
146 | $scope.addData.push({ | 168 | $scope.addData.push({ |
147 | 'tail': $scope.aircraftDetails[i].tail, | 169 | 'tail': $scope.aircraftDetails[i].tail, |
148 | 'make': $scope.aircraftDetails[i].make, | 170 | 'make': $scope.aircraftDetails[i].make, |
149 | 'model': $scope.aircraftDetails[i].model, | 171 | 'model': $scope.aircraftDetails[i].model, |
150 | 'sizeId' : $scope.aircraftDetails[i].sizeId, | 172 | 'sizeId' : $scope.aircraftDetails[i].sizeId, |
151 | 'marginId': $scope.aircraftDetails[i].marginId | 173 | 'marginId': $scope.aircraftDetails[i].marginId |
152 | }); | 174 | }); |
153 | } | 175 | } |
154 | console.log($scope.addData) | 176 | console.log($scope.addData) |
155 | $scope.aircraftListData.aircraftList = $scope.addData; | 177 | $scope.aircraftListData.aircraftList = $scope.addData; |
156 | $scope.aircraftListData.accountId = companyId; | 178 | $scope.aircraftListData.accountId = companyId; |
157 | 179 | ||
158 | CustomersService.addAircraft($scope.aircraftListData).then(function(result) { | 180 | CustomersService.addAircraft($scope.aircraftListData).then(function(result) { |
159 | if(result != null && result.success){ | 181 | if(result != null && result.success){ |
160 | toastr.success(''+result.success+'', { | 182 | toastr.success(''+result.success+'', { |
161 | closeButton: true | 183 | closeButton: true |
162 | }) | 184 | }) |
163 | $('#aircraft-modal-3').modal('hide'); | 185 | $('#aircraft-modal-3').modal('hide'); |
164 | getAircraftList(); | 186 | getAircraftList(); |
165 | }else{ | 187 | }else{ |
166 | toastr.error(''+result.statusText+'', { | 188 | toastr.error(''+result.statusText+'', { |
167 | closeButton: true | 189 | closeButton: true |
168 | }) | 190 | }) |
169 | } | 191 | } |
170 | }); | 192 | }); |
171 | 193 | ||
172 | } | 194 | } |
173 | $scope.showNoteData = true; | 195 | $scope.showNoteData = true; |
174 | $scope.showCompanyName = true; | 196 | $scope.showCompanyName = true; |
175 | $scope.showAddress = true; | 197 | $scope.showAddress = true; |
176 | $scope.showNote = function(){ | 198 | $scope.showNote = function(){ |
177 | $scope.showNoteData = false; | 199 | $scope.showNoteData = false; |
178 | $scope.showUpdateBtn = true; | 200 | $scope.showUpdateBtn = true; |
179 | } | 201 | } |
180 | 202 | ||
181 | $scope.company = function(){ | 203 | $scope.company = function(){ |
182 | $scope.showCompanyName = false; | 204 | $scope.showCompanyName = false; |
183 | $scope.showUpdateBtn = true; | 205 | $scope.showUpdateBtn = true; |
184 | } | 206 | } |
185 | 207 | ||
186 | $scope.base = function(){ | 208 | $scope.base = function(){ |
187 | $scope.showUpdateBtn = true; | 209 | $scope.showUpdateBtn = true; |
188 | } | 210 | } |
189 | 211 | ||
190 | $scope.addressChange = function(){ | 212 | $scope.addressChange = function(){ |
191 | $scope.showAddress = false; | 213 | $scope.showAddress = false; |
192 | $scope.showUpdateBtn = true; | 214 | $scope.showUpdateBtn = true; |
193 | } | 215 | } |
194 | 216 | ||
195 | $scope.editData = function(inputName) { | 217 | $scope.editData = function(inputName) { |
196 | console.log($scope.companyData) | 218 | console.log($scope.companyData) |
197 | $scope.showLoader = true; | 219 | $scope.showLoader = true; |
198 | /*if(inputName == 'showNoteData'){ | 220 | /*if(inputName == 'showNoteData'){ |
199 | $scope.showNoteData = true; | 221 | $scope.showNoteData = true; |
200 | }else if(inputName == 'showCompanyName'){ | 222 | }else if(inputName == 'showCompanyName'){ |
201 | $scope.showCompanyName = true; | 223 | $scope.showCompanyName = true; |
202 | }else if(inputName == 'showAddress'){ | 224 | }else if(inputName == 'showAddress'){ |
203 | $scope.showAddress = true; | 225 | $scope.showAddress = true; |
204 | }*/ | 226 | }*/ |
205 | $scope.showNoteData = true; | 227 | $scope.showNoteData = true; |
206 | $scope.showCompanyName = true; | 228 | $scope.showCompanyName = true; |
207 | $scope.showAddress = true; | 229 | $scope.showAddress = true; |
208 | 230 | ||
209 | var companyData = "companyName=" + $scope.companyData.companyName + "&masterMargin=" + $scope.companyData.masterMargin | 231 | var companyData = "companyName=" + $scope.companyData.companyName + "&masterMargin=" + $scope.companyData.masterMargin + "&avgasMargin=" + $scope.companyData.avgasMargin |
210 | + "&addressOne=" + $scope.companyData.addressOne + "&addressTwo=" + $scope.companyData.addressTwo + "&city=" + $scope.companyData.city + "&state=" | 232 | + "&addressOne=" + $scope.companyData.addressOne + "&addressTwo=" + $scope.companyData.addressTwo + "&city=" + $scope.companyData.city + "&state=" |
211 | + $scope.companyData.state + "&country=" + $scope.companyData.country + "&zipcode=" + $scope.companyData.zipcode + "&internalNote=" | 233 | + $scope.companyData.state + "&country=" + $scope.companyData.country + "&zipcode=" + $scope.companyData.zipcode + "&internalNote=" |
212 | + $scope.companyData.internalNote + "&certificateType=" + $scope.companyData.certificateType + "&baseTenant=" + $scope.companyData.baseTenant | 234 | + $scope.companyData.internalNote + "&certificateType=" + $scope.companyData.certificateType + "&baseTenant=" + $scope.companyData.baseTenant |
213 | + "&fuelerlinxCustomer=" + $scope.companyData.fuelerlinxCustomer + "&contractFuelVendor=" + $scope.companyData.contractFuelVendor | 235 | + "&fuelerlinxCustomer=" + $scope.companyData.fuelerlinxCustomer + "&contractFuelVendor=" + $scope.companyData.contractFuelVendor |
214 | + "&activate=" + $scope.companyData.activate + "&baseIcao=" + $scope.companyData.baseIcao + "&companyId=" + companyId; | 236 | + "&activate=" + $scope.companyData.activate + "&baseIcao=" + $scope.companyData.baseIcao + "&companyId=" + companyId; |
215 | 237 | ||
216 | ViewCompanyService.updateContact(companyData).then(function(result) { | 238 | ViewCompanyService.updateContact(companyData).then(function(result) { |
217 | if(result != null && result.success){ | 239 | if(result != null && result.success){ |
218 | toastr.success(''+result.success+'', { | 240 | toastr.success(''+result.success+'', { |
219 | closeButton: true | 241 | closeButton: true |
220 | }) | 242 | }) |
221 | $scope.showUpdateBtn = false; | 243 | $scope.showUpdateBtn = false; |
222 | }else{ | 244 | }else{ |
223 | toastr.error(''+result.statusText+'', { | 245 | toastr.error(''+result.statusText+'', { |
224 | closeButton: true | 246 | closeButton: true |
225 | }) | 247 | }) |
226 | $scope.showUpdateBtn = true; | 248 | $scope.showUpdateBtn = true; |
227 | } | 249 | } |
228 | $scope.showLoader = false; | 250 | $scope.showLoader = false; |
229 | }) | 251 | }) |
230 | 252 | ||
231 | } | 253 | } |
232 | 254 | ||
233 | $scope.cancelData = function(){ | 255 | $scope.cancelData = function(){ |
234 | $scope.showNoteData = true; | 256 | $scope.showNoteData = true; |
235 | $scope.showCompanyName = true; | 257 | $scope.showCompanyName = true; |
236 | $scope.showAddress = true; | 258 | $scope.showAddress = true; |
237 | $scope.showUpdateBtn = false; | 259 | $scope.showUpdateBtn = false; |
238 | } | 260 | } |
239 | 261 | ||
240 | $scope.sendMail = function(){ | 262 | $scope.sendMail = function(){ |
241 | ViewCompanyService.sendMail(companyId).then(function(result) { | 263 | ViewCompanyService.sendMail(companyId).then(function(result) { |
242 | if(result != null && result.success){ | 264 | if(result != null && result.success){ |
243 | toastr.success(''+result.success+'', { | 265 | toastr.success(''+result.success+'', { |
244 | closeButton: true | 266 | closeButton: true |
245 | }) | 267 | }) |
246 | $('#confirm1').css('display', 'none'); | 268 | $('#confirm1').css('display', 'none'); |
247 | }else{ | 269 | }else{ |
248 | toastr.error(''+result.statusText+'', { | 270 | toastr.error(''+result.statusText+'', { |
249 | closeButton: true | 271 | closeButton: true |
250 | }) | 272 | }) |
251 | } | 273 | } |
252 | }) | 274 | }) |
253 | } | 275 | } |
254 | 276 | ||
255 | $scope.openConfirmMail = function(){ | 277 | $scope.openConfirmMail = function(){ |
256 | $('#confirm1').css('display', 'block'); | 278 | $('#confirm1').css('display', 'block'); |
257 | } | 279 | } |
258 | 280 | ||
259 | 281 | ||
260 | $scope.cancelAndCloseConfirm = function(){ | 282 | $scope.cancelAndCloseConfirm = function(){ |
261 | $('#confirm1').css('display', 'none'); | 283 | $('#confirm1').css('display', 'none'); |
262 | } | 284 | } |
263 | 285 | ||
264 | $scope.cancelPrimaryContact = function(){ | 286 | $scope.cancelPrimaryContact = function(){ |
265 | $('#primaryContact').css('display', 'none'); | 287 | $('#primaryContact').css('display', 'none'); |
266 | $scope.primaryContact = false; | 288 | $scope.primaryContact = false; |
267 | } | 289 | } |
268 | 290 | ||
269 | $scope.checkPrimaryContact = function(){ | 291 | $scope.checkPrimaryContact = function(){ |
270 | if($scope.primaryContact == true){ | 292 | if($scope.primaryContact == true){ |
271 | ViewCompanyService.checkPrimaryContact(companyId).then(function(result) { | 293 | ViewCompanyService.checkPrimaryContact(companyId).then(function(result) { |
272 | console.log(result) | 294 | console.log(result) |
273 | if(result.status == 422){ | 295 | if(result.status == 422){ |
274 | $('#primaryContact').css('display', 'block'); | 296 | $('#primaryContact').css('display', 'block'); |
275 | } | 297 | } |
276 | }) | 298 | }) |
277 | } | 299 | } |
278 | } | 300 | } |
279 | 301 | ||
280 | $scope.sendPrimaryContact = function(){ | 302 | $scope.sendPrimaryContact = function(){ |
281 | $scope.primaryContact = true; | 303 | $scope.primaryContact = true; |
282 | $('#primaryContact').css('display', 'none'); | 304 | $('#primaryContact').css('display', 'none'); |
283 | if($scope.primayData.id != null || $scope.primayData.id != undefined){ | 305 | if($scope.primayData.id != null || $scope.primayData.id != undefined){ |
284 | var priamryContactData = "companyContactId=" + $scope.primayData.id + "&primary=" + $scope.primaryContact; | 306 | var priamryContactData = "companyContactId=" + $scope.primayData.id + "&primary=" + $scope.primaryContact; |
285 | 307 | ||
286 | ViewCompanyService.addPrimaryContact(priamryContactData).then(function(result) { | 308 | ViewCompanyService.addPrimaryContact(priamryContactData).then(function(result) { |
287 | console.log(result) | 309 | console.log(result) |
288 | }) | 310 | }) |
289 | } | 311 | } |
290 | 312 | ||
291 | } | 313 | } |
292 | 314 | ||
293 | var newContactName = ""; | 315 | var newContactName = ""; |
294 | $scope.updateData = "" | 316 | $scope.updateData = "" |
295 | $scope.showContact = function(data, value){ | 317 | $scope.showContact = function(data, value){ |
296 | $('#updateContact').css('display', 'block'); | 318 | $('#updateContact').css('display', 'block'); |
297 | $scope.updateData = data; | 319 | $scope.updateData = data; |
298 | newContactName = value; | 320 | newContactName = value; |
299 | console.log($scope.updateData) | 321 | console.log($scope.updateData) |
300 | if($scope.updateData.email == null){ | 322 | if($scope.updateData.email == null){ |
301 | $scope.updateData.content = data.contactNumber; | 323 | $scope.updateData.content = data.contactNumber; |
302 | }else{ | 324 | }else{ |
303 | $scope.updateData.content = data.email; | 325 | $scope.updateData.content = data.email; |
304 | } | 326 | } |
305 | } | 327 | } |
306 | 328 | ||
307 | $scope.acceptUpdateField = function(){ | 329 | $scope.acceptUpdateField = function(){ |
308 | console.log($scope.updateData) | 330 | console.log($scope.updateData) |
309 | if($scope.updateData.content == undefined){ | 331 | if($scope.updateData.content == undefined){ |
310 | toastr.error('Please add some content', { | 332 | toastr.error('Please add some content', { |
311 | closeButton: true | 333 | closeButton: true |
312 | }) | 334 | }) |
313 | }else{ | 335 | }else{ |
314 | if(newContactName == 'phone'){ | 336 | if(newContactName == 'phone'){ |
315 | var updateCustomData = "companyId=" + companyId + "&contactNumber=" + $scope.updateData.content + "&contactId=" + $scope.updateData.id | 337 | var updateCustomData = "companyId=" + companyId + "&contactNumber=" + $scope.updateData.content + "&contactId=" + $scope.updateData.id |
316 | + "&title=" + $scope.updateData.title; | 338 | + "&title=" + $scope.updateData.title; |
317 | }else{ | 339 | }else{ |
318 | var updateCustomData = "companyId=" + companyId + "&email=" + $scope.updateData.content + "&contactId=" + $scope.updateData.id | 340 | var updateCustomData = "companyId=" + companyId + "&email=" + $scope.updateData.content + "&contactId=" + $scope.updateData.id |
319 | + "&title=" + $scope.updateData.title; | 341 | + "&title=" + $scope.updateData.title; |
320 | } | 342 | } |
321 | ViewCompanyService.updateCustomField(updateCustomData).then(function(result) { | 343 | ViewCompanyService.updateCustomField(updateCustomData).then(function(result) { |
322 | console.log(result) | 344 | console.log(result) |
323 | if(result != null && result.success){ | 345 | if(result != null && result.success){ |
324 | $('#updateContact').css('display', 'none'); | 346 | $('#updateContact').css('display', 'none'); |
325 | getCompanyDetail(); | 347 | getCompanyDetail(); |
326 | } | 348 | } |
327 | }) | 349 | }) |
328 | } | 350 | } |
329 | } | 351 | } |
330 | 352 | ||
331 | $scope.cancelUpdateField = function(){ | 353 | $scope.cancelUpdateField = function(){ |
332 | $('#updateContact').css('display', 'none'); | 354 | $('#updateContact').css('display', 'none'); |
333 | } | 355 | } |
334 | 356 | ||
335 | $scope.showEditTier2 = function(number){ | 357 | $scope.showEditTier2 = function(number){ |
336 | console.log(number) | 358 | console.log(number) |
337 | $scope.contactNumber = number; | 359 | $scope.contactNumber = number; |
338 | } | 360 | } |
339 | 361 | ||
340 | 362 | ||
341 | 363 | ||
342 | var contactName = ''; | 364 | var contactName = ''; |
343 | $scope.addCustom = function(value){ | 365 | $scope.addCustom = function(value){ |
344 | console.log(value) | 366 | console.log(value) |
345 | if(value != null){ | 367 | if(value != null){ |
346 | contactName = value; | 368 | contactName = value; |
347 | $('#customField').css('display', 'block'); | 369 | $('#customField').css('display', 'block'); |
348 | } | 370 | } |
349 | $scope.custom = {}; | 371 | $scope.custom = {}; |
350 | } | 372 | } |
351 | 373 | ||
352 | $scope.cancelCustomField = function(){ | 374 | $scope.cancelCustomField = function(){ |
353 | $('#customField').css('display', 'none'); | 375 | $('#customField').css('display', 'none'); |
354 | } | 376 | } |
355 | 377 | ||
356 | $scope.acceptCustomField = function(){ | 378 | $scope.acceptCustomField = function(){ |
357 | if($scope.custom.content == undefined){ | 379 | if($scope.custom.content == undefined){ |
358 | toastr.error('Please add some content', { | 380 | toastr.error('Please add some content', { |
359 | closeButton: true | 381 | closeButton: true |
360 | }) | 382 | }) |
361 | }else{ | 383 | }else{ |
362 | if(contactName == 'phone'){ | 384 | if(contactName == 'phone'){ |
363 | var customData = "companyId=" + companyId + "&contactNumber=" + $scope.custom.content | 385 | var customData = "companyId=" + companyId + "&contactNumber=" + $scope.custom.content |
364 | + "&title=" + $scope.custom.title; | 386 | + "&title=" + $scope.custom.title; |
365 | }else{ | 387 | }else{ |
366 | var customData = "companyId=" + companyId + "&email=" + $scope.custom.content | 388 | var customData = "companyId=" + companyId + "&email=" + $scope.custom.content |
367 | + "&title=" + $scope.custom.title; | 389 | + "&title=" + $scope.custom.title; |
368 | } | 390 | } |
369 | console.log(customData.email) | 391 | console.log(customData.email) |
370 | ViewCompanyService.addCustomField(customData).then(function(result) { | 392 | ViewCompanyService.addCustomField(customData).then(function(result) { |
371 | console.log(result) | 393 | console.log(result) |
372 | if(result != null && result.success){ | 394 | if(result != null && result.success){ |
373 | $('#customField').css('display', 'none'); | 395 | $('#customField').css('display', 'none'); |
374 | getCompanyDetail(); | 396 | getCompanyDetail(); |
375 | } | 397 | } |
376 | }) | 398 | }) |
377 | } | 399 | } |
378 | } | 400 | } |
379 | 401 | ||
380 | updateFuelManagerService.getFuelPricingNew().then(function(result) { | 402 | updateFuelManagerService.getFuelPricingNew().then(function(result) { |
381 | $scope.fuelPricing = result; | 403 | $scope.fuelPricing = result; |
382 | for (var i = 0; i<$scope.fuelPricing.length; i++) { | 404 | for (var i = 0; i<$scope.fuelPricing.length; i++) { |
383 | if ($scope.fuelPricing[i].fuelPricing.expirationDate != null) { | 405 | if ($scope.fuelPricing[i].fuelPricing.expirationDate != null) { |
384 | $scope.fuelPricing[i].fuelPricing.expirationDate = new Date($scope.fuelPricing[i].fuelPricing.expirationDate); | 406 | $scope.fuelPricing[i].fuelPricing.expirationDate = new Date($scope.fuelPricing[i].fuelPricing.expirationDate); |
385 | var newTime = new Date($scope.fuelPricing[i].fuelPricing.expirationDate); | 407 | var newTime = new Date($scope.fuelPricing[i].fuelPricing.expirationDate); |
386 | var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 | 408 | var dmonth = newTime.getUTCMonth() + 1; //months from 1-12 |
387 | var dday = newTime.getUTCDate(); | 409 | var dday = newTime.getUTCDate(); |
388 | var dyear = newTime.getUTCFullYear(); | 410 | var dyear = newTime.getUTCFullYear(); |
389 | $scope.fuelPricing[i].fuelPricing.expirationDate = dmonth+'/'+dday+'/'+dyear; | 411 | $scope.fuelPricing[i].fuelPricing.expirationDate = dmonth+'/'+dday+'/'+dyear; |
390 | } | 412 | } |
391 | } | 413 | } |
392 | }) | 414 | }) |
393 | 415 | ||
394 | $scope.deleteAircraft = function(id){ | 416 | $scope.deleteAircraft = function(id){ |
395 | ViewCompanyService.deleteAircraft(id).then(function(result) { | 417 | ViewCompanyService.deleteAircraft(id).then(function(result) { |
396 | console.log(result) | 418 | console.log(result) |
397 | getAircraftList(); | 419 | getAircraftList(); |
398 | }) | 420 | }) |
399 | } | 421 | } |
422 | |||
423 | CustomersService.getJetMargin($scope.userProfileId).then(function(result) { | ||
424 | $scope.jetMarginList = result; | ||
425 | }) | ||
426 | |||
427 | CustomersService.getAvgMargin($scope.userProfileId).then(function(result) { | ||
428 | $scope.avgsMarginList = result; | ||
429 | }) | ||
400 | 430 |
app/partials/viewCompany/viewCompany.html
1 | <style> | 1 | <style> |
2 | .subnavbar .mainnav > li:nth-child(3) > a{ | 2 | .subnavbar .mainnav > li:nth-child(3) > a{ |
3 | color: #ff9900; | 3 | color: #ff9900; |
4 | } | 4 | } |
5 | .widget-content{ | 5 | .widget-content{ |
6 | padding: 10px !important; | 6 | padding: 10px !important; |
7 | } | 7 | } |
8 | .widget-content input[type="text"], .widget-content select{ | 8 | .widget-content input[type="text"], .widget-content select{ |
9 | height: 31px; | 9 | height: 31px; |
10 | padding: 0; | 10 | padding: 0; |
11 | } | 11 | } |
12 | .new-label span{ | 12 | .new-label span{ |
13 | float: left; | 13 | float: left; |
14 | line-height: 31px; | 14 | line-height: 31px; |
15 | } | 15 | } |
16 | .new-label span:first-child{ | 16 | .new-label span:first-child{ |
17 | margin-right: 5px; | 17 | margin-right: 5px; |
18 | font-weight: bold; | 18 | font-weight: bold; |
19 | } | 19 | } |
20 | .new-label span:last-child{ | 20 | .new-label span:last-child{ |
21 | margin-left: 5px; | 21 | margin-left: 5px; |
22 | } | 22 | } |
23 | .new-label select{ | 23 | .new-label select{ |
24 | display: -webkit-inline-box; | 24 | display: -webkit-inline-box; |
25 | display: inline-box; | 25 | display: inline-box; |
26 | float: left; | 26 | float: left; |
27 | } | 27 | } |
28 | .new-address p{ | 28 | .new-address p{ |
29 | margin-bottom: 0; | 29 | margin-bottom: 0; |
30 | } | 30 | } |
31 | .new-add-select{ | 31 | .new-add-select{ |
32 | padding-left: 15px; | 32 | padding-left: 15px; |
33 | margin: 10px 0; | 33 | margin: 10px 0; |
34 | } | 34 | } |
35 | .new-add-select select{ | 35 | .new-add-select select{ |
36 | width: 100px; | 36 | width: 100px; |
37 | } | 37 | } |
38 | .widget{ | 38 | .widget{ |
39 | -moz-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); | 39 | -moz-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); |
40 | -webkit-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); | 40 | -webkit-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); |
41 | box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); | 41 | box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); |
42 | } | 42 | } |
43 | .optionclass { | 43 | .optionclass { |
44 | background: #fff; | 44 | background: #fff; |
45 | } | 45 | } |
46 | .timess { | 46 | .timess { |
47 | float: right !important; | 47 | float: right !important; |
48 | margin-top: 10px !important; | 48 | margin-top: 10px !important; |
49 | margin-right: 10px !important; | 49 | margin-right: 10px !important; |
50 | color: #999 !important; | 50 | color: #999 !important; |
51 | cursor: pointer !important; | 51 | cursor: pointer !important; |
52 | } | 52 | } |
53 | 53 | ||
54 | .button1 { | 54 | .button1 { |
55 | display: inline-block; | 55 | display: inline-block; |
56 | height: 35px; | 56 | height: 35px; |
57 | line-height: 35px; | 57 | line-height: 35px; |
58 | padding-right: 15px; | 58 | padding-right: 15px; |
59 | padding-left: 50px; | 59 | padding-left: 50px; |
60 | position: relative; | 60 | position: relative; |
61 | background-color:rgb(41,127,184); | 61 | background-color:rgb(41,127,184); |
62 | color:rgb(255,255,255); | 62 | color:rgb(255,255,255); |
63 | text-decoration: none; | 63 | text-decoration: none; |
64 | text-transform: uppercase; | 64 | text-transform: uppercase; |
65 | letter-spacing: 1px; | 65 | letter-spacing: 1px; |
66 | margin-bottom: 15px; | 66 | margin-bottom: 15px; |
67 | border: 0; | 67 | border: 0; |
68 | 68 | ||
69 | 69 | ||
70 | border-radius: 5px; | 70 | border-radius: 5px; |
71 | -moz-border-radius: 5px; | 71 | -moz-border-radius: 5px; |
72 | -webkit-border-radius: 5px; | 72 | -webkit-border-radius: 5px; |
73 | text-shadow:0px 1px 0px rgba(0,0,0,0.5); | 73 | text-shadow:0px 1px 0px rgba(0,0,0,0.5); |
74 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true)";zoom:1; | 74 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true)";zoom:1; |
75 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true); | 75 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true); |
76 | 76 | ||
77 | -moz-box-shadow:0px 2px 2px rgba(0,0,0,0.2); | 77 | -moz-box-shadow:0px 2px 2px rgba(0,0,0,0.2); |
78 | -webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.2); | 78 | -webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.2); |
79 | box-shadow:0px 2px 2px rgba(0,0,0,0.2); | 79 | box-shadow:0px 2px 2px rgba(0,0,0,0.2); |
80 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true)"; | 80 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true)"; |
81 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true); | 81 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true); |
82 | } | 82 | } |
83 | 83 | ||
84 | .button1 span { | 84 | .button1 span { |
85 | position: absolute; | 85 | position: absolute; |
86 | left: 0; | 86 | left: 0; |
87 | top: 0; | 87 | top: 0; |
88 | width: 35px; | 88 | width: 35px; |
89 | background-color:rgba(0,0,0,0.5); | 89 | background-color:rgba(0,0,0,0.5); |
90 | 90 | ||
91 | -webkit-border-top-left-radius: 5px; | 91 | -webkit-border-top-left-radius: 5px; |
92 | -webkit-border-bottom-left-radius: 5px; | 92 | -webkit-border-bottom-left-radius: 5px; |
93 | -moz-border-radius-topleft: 5px; | 93 | -moz-border-radius-topleft: 5px; |
94 | -moz-border-radius-bottomleft: 5px; | 94 | -moz-border-radius-bottomleft: 5px; |
95 | border-top-left-radius: 5px; | 95 | border-top-left-radius: 5px; |
96 | border-bottom-left-radius: 5px; | 96 | border-bottom-left-radius: 5px; |
97 | border-right: 1px solid rgba(0,0,0,0.15); | 97 | border-right: 1px solid rgba(0,0,0,0.15); |
98 | } | 98 | } |
99 | 99 | ||
100 | .button1:hover span, .button1.active span { | 100 | .button1:hover span, .button1.active span { |
101 | background-color:rgb(0,102,26); | 101 | background-color:rgb(0,102,26); |
102 | border-right: 1px solid rgba(0,0,0,0.3); | 102 | border-right: 1px solid rgba(0,0,0,0.3); |
103 | } | 103 | } |
104 | 104 | ||
105 | .button1:active { | 105 | .button1:active { |
106 | margin-top: 2px; | 106 | margin-top: 2px; |
107 | margin-bottom: 13px; | 107 | margin-bottom: 13px; |
108 | 108 | ||
109 | -moz-box-shadow:0px 1px 0px rgba(255,255,255,0.5); | 109 | -moz-box-shadow:0px 1px 0px rgba(255,255,255,0.5); |
110 | -webkit-box-shadow:0px 1px 0px rgba(255,255,255,0.5); | 110 | -webkit-box-shadow:0px 1px 0px rgba(255,255,255,0.5); |
111 | box-shadow:0px 1px 0px rgba(255,255,255,0.5); | 111 | box-shadow:0px 1px 0px rgba(255,255,255,0.5); |
112 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true)"; | 112 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true)"; |
113 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true); | 113 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true); |
114 | } | 114 | } |
115 | 115 | ||
116 | .button1.turquoise { | 116 | .button1.turquoise { |
117 | background: #449d44; | 117 | background: #449d44; |
118 | } | 118 | } |
119 | 119 | ||
120 | </style> | 120 | </style> |
121 | 121 | ||
122 | <div class="myLoader" ng-show="showLoader"> | 122 | <div class="myLoader" ng-show="showLoader"> |
123 | <img src="../img/hourglass.gif" width="50px;"> | 123 | <img src="../img/hourglass.gif" width="50px;"> |
124 | </div> | 124 | </div> |
125 | 125 | ||
126 | <div class="col-xs-12 col-md-11"> | 126 | <div class="col-xs-12 col-md-11"> |
127 | <div class="row" style="margin-left:0px"> | 127 | <div class="row" style="margin-left:0px"> |
128 | <div class="col-md-12"> | 128 | <div class="col-md-12"> |
129 | <div class="widget"> | 129 | <div class="widget"> |
130 | <div class="widget-header"> | 130 | <div class="widget-header"> |
131 | <i class="fa fa-building-o" aria-hidden="true"></i> | 131 | <i class="fa fa-building-o" aria-hidden="true"></i> |
132 | <h3>Antioch Flight Department</h3> | 132 | <h3>Antioch Flight Department</h3> |
133 | <i class="fa fa-times timess" ui-sref="app.customers" aria-hidden="true"></i> | 133 | <i class="fa fa-times timess" ui-sref="app.customers" aria-hidden="true"></i> |
134 | </div> | 134 | </div> |
135 | <!-- /widget-header --> | 135 | <!-- /widget-header --> |
136 | <div class="widget-content"> | 136 | <div class="widget-content"> |
137 | <div class="row" style="margin-left:0px"> | 137 | <div class="row" style="margin-left:0px"> |
138 | <div class="col-md-6"> | 138 | <div class="col-md-6"> |
139 | <div class="widget"> | 139 | <div class="widget"> |
140 | <div class="widget-header"> | 140 | <div class="widget-header"> |
141 | <i class="fa fa-building-o" aria-hidden="true"></i> | 141 | <i class="fa fa-building-o" aria-hidden="true"></i> |
142 | <h3>Company Details</h3> | 142 | <h3>Company Details</h3> |
143 | <label>BASE ICAO</label> | 143 | <label>BASE ICAO</label> |
144 | <input type="tel" ng-model="companyData.baseIcao" ng-click="base()" style="line-height: 18px;width: 50px;padding: 0px 9px;" /> | 144 | <input type="tel" ng-model="companyData.baseIcao" ng-click="base()" style="line-height: 18px;width: 50px;padding: 0px 9px;" /> |
145 | 145 | ||
146 | <div class="pull-right" style="margin-top: 5px; margin-right: 10px;"> | 146 | <div class="pull-right" style="margin-top: 5px; margin-right: 10px;"> |
147 | <toggle ng-model="companyData.activate" ng-change="changeCompanyStatus()" size="customToogle" on="Active" off="Dactive"></toggle> | 147 | <toggle ng-model="companyData.activate" ng-change="changeCompanyStatus()" size="customToogle" on="Active" off="Dactive"></toggle> |
148 | </div> | 148 | </div> |
149 | 149 | ||
150 | </div> | 150 | </div> |
151 | <div class="widget-content"> | 151 | <div class="widget-content"> |
152 | <div class="row" style="margin-left:0px;"> | 152 | <div class="row" style="margin-left:0px;"> |
153 | <div class="col-md-7" style="padding-left: 0;"> | 153 | <div class="col-md-7" style="padding-left: 0;"> |
154 | <h4 ng-show="showCompanyName"> | 154 | <h4 ng-show="showCompanyName"> |
155 | <b style="color:#F90;">{{companyData.companyName}}</b> <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i> | 155 | <b style="color:#F90;">{{companyData.companyName}}</b> <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i> |
156 | </h4> | 156 | </h4> |
157 | <input type="tel" ng-hide="showCompanyName" ng-model="companyData.companyName" class="form-control"/> | 157 | <input type="tel" ng-hide="showCompanyName" ng-model="companyData.companyName" class="form-control"/> |
158 | </div> | 158 | </div> |
159 | <div class="col-md-5"> | 159 | <div class="col-md-5"> |
160 | <select class="form-control" style="padding: 4px 8px;background: #ebebeb;" ng-model="companyData.certificateType"> | 160 | <select class="form-control" style="padding: 4px 8px;background: #ebebeb;" ng-model="companyData.certificateType"> |
161 | <option class="optionclass" disabled selected>Certificate Type</option> | 161 | <option class="optionclass" disabled selected>Certificate Type</option> |
162 | <option class="optionclass" value="corporate">Part 91 (Corporate)</option> | 162 | <option class="optionclass" value="corporate">Part 91 (Corporate)</option> |
163 | <option class="optionclass" value="charter">Part 135 (Charter)</option> | 163 | <option class="optionclass" value="charter">Part 135 (Charter)</option> |
164 | <option class="optionclass" value="scheduled">Part 121 (Scheduled)</option> | 164 | <option class="optionclass" value="scheduled">Part 121 (Scheduled)</option> |
165 | <option class="optionclass" value="military">Military</option> | 165 | <option class="optionclass" value="military">Military</option> |
166 | <option class="optionclass" value="government">Government</option> | 166 | <option class="optionclass" value="government">Government</option> |
167 | </select> | 167 | </select> |
168 | </div> | 168 | </div> |
169 | </div> | 169 | </div> |
170 | <div> | 170 | <div> |
171 | <p class="new-label"> | 171 | <p class="new-label"> |
172 | <span>Master Margin Setting </span> | 172 | <span>JET A Margin </span> |
173 | <!-- <select class="form-control" ng-model="companyData.masterMargin" ng-options="margin.id as margin.marginName for margin in marginList"></select> --> | 173 | <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-change="editData()" ng-model="companyData.masterMargin"> |
174 | <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-model="companyData.masterMargin"> | 174 | <option ng-if="multiple" value="multiple">Multiple</option> |
175 | <option ng-repeat="margin in marginList" value="{{margin.id}}">{{margin.marginName}}</option> | 175 | <option ng-repeat="margin in jetMarginList" value="{{margin.id}}">{{margin.marginName}}</option> |
176 | </select> | ||
177 | <span ng-show="multipleMsg"> See Aircrart List</span> | ||
178 | <div class="clearfix"></div> | ||
179 | </p> | ||
180 | </div> | ||
181 | <div> | ||
182 | <p class="new-label"> | ||
183 | <span>AVGAS 100LL </span> | ||
184 | <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-change="editData()" ng-model="companyData.avgasMargin"> | ||
185 | <option ng-repeat="margin in avgsMarginList" value="{{margin.id}}">{{margin.marginName}}</option> | ||
176 | </select> | 186 | </select> |
177 | <span> See Aircrart List</span> | ||
178 | <div class="clearfix"></div> | 187 | <div class="clearfix"></div> |
179 | </p> | 188 | </p> |
180 | </div> | 189 | </div> |
181 | <div class="row" style="margin-left:0px;"> | 190 | <div class="row" style="margin-left:0px;"> |
182 | <div class="col-md-5" style="padding-left: 0;"> | 191 | <div class="col-md-5" style="padding-left: 0;"> |
183 | <input type="checkbox" name="" ng-model="companyData.baseTenant"> Tenant/Base Customer | 192 | <input type="checkbox" name="" ng-model="companyData.baseTenant"> Tenant/Base Customer |
184 | </div> | 193 | </div> |
185 | <div class="col-md-5" style="padding-left: 0;"> | 194 | <div class="col-md-5" style="padding-left: 0;"> |
186 | <input type="checkbox" name="" ng-model="companyData.fuelerlinxCustomer"> FuelerLinx Customer | 195 | <input type="checkbox" name="" ng-model="companyData.fuelerlinxCustomer"> FuelerLinx Customer |
187 | </div> | 196 | </div> |
188 | </div> | 197 | </div> |
189 | <div> | 198 | <div> |
190 | <input type="checkbox" name="" ng-model="companyData.contractFuelVendor"> CAA Member | 199 | <input type="checkbox" name="" ng-model="companyData.contractFuelVendor"> CAA Member |
191 | </div> | 200 | </div> |
192 | </br> | 201 | </br> |
193 | <div class="new-address"> | 202 | <div class="new-address"> |
194 | <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{companyData.addressOne}} {{companyData.addressTwo}} <i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p> | 203 | <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{companyData.addressOne}} {{companyData.addressTwo}} <i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p> |
195 | 204 | ||
196 | <div ng-hide="showAddress"> | 205 | <div ng-hide="showAddress"> |
197 | <label>Address1</label> | 206 | <label>Address1</label> |
198 | <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="companyData.addressOne" class="form-control" /> | 207 | <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="companyData.addressOne" class="form-control" /> |
199 | <label>Address2</label> | 208 | <label>Address2</label> |
200 | <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="companyData.addressTwo" class="form-control" /> | 209 | <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="companyData.addressTwo" class="form-control" /> |
201 | </div> | 210 | </div> |
202 | 211 | ||
203 | <!-- <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.contactNumber != null"> | 212 | <!-- <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.contactNumber != null"> |
204 | <i class="fa fa-phone" ng-hide="showEditContact"></i> | 213 | <i class="fa fa-phone" ng-hide="showEditContact"></i> |
205 | <span ng-hide="showEditContact">{{data.contactNumber}} </span> | 214 | <span ng-hide="showEditContact">{{data.contactNumber}} </span> |
206 | <i ng-click="showEditContact = ! showEditContact" ng-hide="showEditContact" class="fa fa-pencil-square-o" aria-hidden="true"></i> | 215 | <i ng-click="showEditContact = ! showEditContact" ng-hide="showEditContact" class="fa fa-pencil-square-o" aria-hidden="true"></i> |
207 | 216 | ||
208 | <input type="tel" class="form-control" placeholder="min" ng-model="data.contactNumber" style="width: 50%;" ng-show="showEditContact"> | 217 | <input type="tel" class="form-control" placeholder="min" ng-model="data.contactNumber" style="width: 50%;" ng-show="showEditContact"> |
209 | <span ng-show="showEditContact"></br></span> | 218 | <span ng-show="showEditContact"></br></span> |
210 | </p> --> | 219 | </p> --> |
211 | <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.contactNumber != null"> | 220 | <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.contactNumber != null"> |
212 | <i class="fa fa-phone" ng-hide="showEditContact"></i> | 221 | <i class="fa fa-phone" ng-hide="showEditContact"></i> |
213 | <span ng-hide="showEditContact">{{data.contactNumber}} </span> | 222 | <span ng-hide="showEditContact">{{data.contactNumber}} </span> |
214 | <i ng-click="showContact(data, 'phone')" ng-hide="showEditContact" class="fa fa-pencil-square-o" aria-hidden="true"></i> | 223 | <i ng-click="showContact(data, 'phone')" ng-hide="showEditContact" class="fa fa-pencil-square-o" aria-hidden="true"></i> |
215 | 224 | ||
216 | <!-- <input type="tel" class="form-control" placeholder="min" ng-model="data.contactNumber" style="width: 50%;" ng-show="showEditContact"> | 225 | <!-- <input type="tel" class="form-control" placeholder="min" ng-model="data.contactNumber" style="width: 50%;" ng-show="showEditContact"> |
217 | <span ng-show="showEditContact"></br></span> --> | 226 | <span ng-show="showEditContact"></br></span> --> |
218 | </p> | 227 | </p> |
219 | <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.email != null"> | 228 | <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.email != null"> |
220 | <i class="fa fa-envelope" ng-hide="showEditEmail"></i> | 229 | <i class="fa fa-envelope" ng-hide="showEditEmail"></i> |
221 | <span ng-hide="showEditEmail">{{data.email}} </span> | 230 | <span ng-hide="showEditEmail">{{data.email}} </span> |
222 | <i ng-click="showContact(data, 'email')" ng-hide="showEditEmail" class="fa fa-pencil-square-o" aria-hidden="true"></i> | 231 | <i ng-click="showContact(data, 'email')" ng-hide="showEditEmail" class="fa fa-pencil-square-o" aria-hidden="true"></i> |
223 | 232 | ||
224 | <!-- <input type="tel" style="width: 50%;" class="form-control" placeholder="min" ng-model="data.email" ng-show="showEditEmail"> --> | 233 | <!-- <input type="tel" style="width: 50%;" class="form-control" placeholder="min" ng-model="data.email" ng-show="showEditEmail"> --> |
225 | </p> | 234 | </p> |
226 | </div> | 235 | </div> |
227 | <div class="new-add-select"> | 236 | <div class="new-add-select"> |
228 | <select class="form-control" ng-model="value" ng-click="addCustom(value)" style="background: #ebebeb;padding: 4px 8px;width: 115px;"> | 237 | <select class="form-control" ng-model="value" ng-click="addCustom(value)" style="background: #ebebeb;padding: 4px 8px;width: 115px;"> |
229 | <option disabled selected>Add Field</option> | 238 | <option disabled selected>Add Field</option> |
230 | <option value="phone" class="optionclass">Add Phone</option> | 239 | <option value="phone" class="optionclass">Add Phone</option> |
231 | <option value="email" class="optionclass">Add Email</option> | 240 | <option value="email" class="optionclass">Add Email</option> |
232 | </select> | 241 | </select> |
233 | </div> | 242 | </div> |
234 | <div> | 243 | <div> |
235 | <p style="margin-bottom: 0;"><b>Company Notes</b> <i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p> | 244 | <p style="margin-bottom: 0;"><b>Company Notes</b> <i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p> |
236 | <p ng-show="showNoteData">{{companyData.internalNote}}</p> | 245 | <p ng-show="showNoteData">{{companyData.internalNote}}</p> |
237 | <textarea name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="companyData.internalNote" rows="4" cols="34"></textarea> | 246 | <textarea name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="companyData.internalNote" rows="4" cols="34"></textarea> |
238 | </div> | 247 | </div> |
239 | <div class="pull-left"> | 248 | <div class="pull-left"> |
240 | <button ng-click="editData()" ng-show="showUpdateBtn" class="btn btn-success">Save</button> | 249 | <button ng-click="editData()" ng-show="showUpdateBtn" class="btn btn-success">Save</button> |
241 | <button ng-click="cancelData()" ng-show="showUpdateBtn" class="btn btn-default">Cancel</button> | 250 | <button ng-click="cancelData()" ng-show="showUpdateBtn" class="btn btn-default">Cancel</button> |
242 | </div> | 251 | </div> |
243 | <div class="pull-right"> | 252 | <div class="pull-right"> |
244 | <button type="button" ng-click="openConfirmMail()" class="btn btn-primary">Distribute Price to Company Contacts</button> | 253 | <button type="button" ng-click="openConfirmMail()" class="btn btn-primary">Distribute Price to Company Contacts</button> |
245 | <button type="button" class="btn btn-info" ui-sref="app.updateFuelManager">Setup Fuel</button> | 254 | <button type="button" class="btn btn-info" ui-sref="app.updateFuelManager">Setup Fuel</button> |
246 | </div> | 255 | </div> |
247 | <div class="clearfix"></div> | 256 | <div class="clearfix"></div> |
248 | </div> | 257 | </div> |
249 | </div> | 258 | </div> |
250 | </div> | 259 | </div> |
251 | <div class="col-md-6"> | 260 | <div class="col-md-6"> |
252 | <div class="widget"> | 261 | <div class="widget"> |
253 | <div class="widget-header"> | 262 | <div class="widget-header"> |
254 | <i class="fa fa-plane"></i> | 263 | <i class="fa fa-plane"></i> |
255 | <h3>Aircraft List</h3> | 264 | <h3>Aircraft List</h3> |
256 | <div class="pull-right"> | 265 | <div class="pull-right"> |
257 | <button type="submit" class="btn btn-success btn-sm" data-toggle="modal" ng-click="clearAircrafts()" data-target="#aircraft-modal-3" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Aircraft</button> | 266 | <button type="submit" class="btn btn-success btn-sm" data-toggle="modal" ng-click="clearAircrafts()" data-target="#aircraft-modal-3" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Aircraft</button> |
258 | </div> | 267 | </div> |
259 | </div> | 268 | </div> |
260 | <div class="widget-content" style="padding:0px"> | 269 | <div class="widget-content" style="padding:0px"> |
261 | <div class="table-responsive"> | 270 | <div class="table-responsive"> |
262 | <table class="table table-bordered table-hover table-striped"> | 271 | <table class="table table-bordered table-hover table-striped"> |
263 | <thead> | 272 | <thead> |
264 | <tr> | 273 | <tr> |
265 | <th>Tail #</th> | 274 | <th>Tail #</th> |
266 | <th>Make</th> | 275 | <th>Make</th> |
267 | <th>Model</th> | 276 | <th>Model</th> |
268 | <th>JET-A</th> | 277 | <th>JET-A</th> |
269 | <th>All in</th> | 278 | <th>All in</th> |
270 | <th>AVGAS</th> | 279 | <th>AVGAS</th> |
271 | <th>All in</th> | 280 | <th>All in</th> |
272 | <th></th> | 281 | <th></th> |
273 | </tr> | 282 | </tr> |
274 | </thead> | 283 | </thead> |
275 | <tbody> | 284 | <tbody> |
276 | <tr ng-repeat="aircraft in contactAircraftList"> | 285 | <tr ng-repeat="aircraft in contactAircraftList"> |
277 | <td>{{aircraft.tail}}</td> | 286 | <td>{{aircraft.tail}}</td> |
278 | <td>{{aircraft.make}}</td> | 287 | <td>{{aircraft.make}}</td> |
279 | <td>{{aircraft.model}}</td> | 288 | <td>{{aircraft.model}}</td> |
280 | <td> | 289 | <td> |
281 | <select class="form-control" style="height:31px;"> | 290 | <select class="form-control" style="height:31px;"> |
282 | <option>Margin1</option> | 291 | <option>Margin1</option> |
283 | <option>Margin2</option> | 292 | <option>Margin2</option> |
284 | </select> | 293 | </select> |
285 | </td> | 294 | </td> |
286 | <td style="color:#55AF8B;">$3659</td> | 295 | <td style="color:#55AF8B;">$3659</td> |
287 | <td> | 296 | <td> |
288 | <select class="form-control" style="height:31px;"> | 297 | <select class="form-control" style="height:31px;"> |
289 | <option>Margin1</option> | 298 | <option>Margin1</option> |
290 | <option>Margin2</option> | 299 | <option>Margin2</option> |
291 | </select> | 300 | </select> |
292 | </td> | 301 | </td> |
293 | <td style="color:#55AF8B;">$3659</td> | 302 | <td style="color:#55AF8B;">$3659</td> |
294 | <td> | 303 | <td> |
295 | <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteAircraft(aircraft.id)" aria-hidden="true"></i> | 304 | <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteAircraft(aircraft.id)" aria-hidden="true"></i> |
296 | </td> | 305 | </td> |
297 | </tr> | 306 | </tr> |
298 | </tbody> | 307 | </tbody> |
299 | </table> | 308 | </table> |
300 | </div> | 309 | </div> |
301 | </div> | 310 | </div> |
302 | </div> | 311 | </div> |
303 | </div> | 312 | </div> |
304 | </div> | 313 | </div> |
305 | <div class="row" style="margin-left:0px"> | 314 | <div class="row" style="margin-left:0px"> |
306 | <div class="col-md-6"> | 315 | <div class="col-md-6"> |
307 | <div class="widget"> | 316 | <div class="widget"> |
308 | <div class="widget-header"> | 317 | <div class="widget-header"> |
309 | <i class="fa fa-user"></i> | 318 | <i class="fa fa-user"></i> |
310 | <h3>Contact List</h3> | 319 | <h3>Contact List</h3> |
311 | <div class="pull-right"> | 320 | <div class="pull-right"> |
312 | <button type="submit" data-toggle="modal" data-target="#contact-modal-3" class="btn btn-success btn-sm" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Contact</button> | 321 | <button type="submit" data-toggle="modal" data-target="#contact-modal-3" class="btn btn-success btn-sm" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Contact</button> |
313 | </div> | 322 | </div> |
314 | </div> | 323 | </div> |
315 | <div class="widget-content" style="padding:0px"> | 324 | <div class="widget-content" style="padding:0px"> |
316 | <div class="table-responsive"> | 325 | <div class="table-responsive"> |
317 | <table class="table table-bordered table-hover table-striped"> | 326 | <table class="table table-bordered table-hover table-striped"> |
318 | <thead> | 327 | <thead> |
319 | <tr> | 328 | <tr> |
320 | <th>Price Email</th> | 329 | <th>Price Email</th> |
321 | <th>First Name</th> | 330 | <th>First Name</th> |
322 | <th>Last Name</th> | 331 | <th>Last Name</th> |
323 | <th>Title</th> | 332 | <th>Title</th> |
324 | </tr> | 333 | </tr> |
325 | </thead> | 334 | </thead> |
326 | <tbody> | 335 | <tbody> |
327 | <tr ng-repeat="contact in companyContactList" style="cursor: pointer;" ui-sref="app.viewContact({id : contact.id})"> | 336 | <tr ng-repeat="contact in companyContactList" style="cursor: pointer;" ui-sref="app.viewContact({id : contact.id})"> |
328 | <td><toggle ng-model="contact.priceEmail" size="customToogle"></toggle></td> | 337 | <td><toggle ng-model="contact.priceEmail" size="customToogle"></toggle></td> |
329 | <td> | 338 | <td> |
330 | {{contact.firstName}} | 339 | {{contact.firstName}} |
331 | </td> | 340 | </td> |
332 | <td>{{contact.lastName}}</td> | 341 | <td>{{contact.lastName}}</td> |
333 | <td>{{contact.title}}</td> | 342 | <td>{{contact.title}}</td> |
334 | </tr> | 343 | </tr> |
335 | </tbody> | 344 | </tbody> |
336 | </table> | 345 | </table> |
337 | </div> | 346 | </div> |
338 | </div> | 347 | </div> |
339 | </div> | 348 | </div> |
340 | </div> | 349 | </div> |
341 | <div class="col-md-6"> | 350 | <div class="col-md-6"> |
342 | <div class="widget"> | 351 | <div class="widget"> |
343 | <div class="widget-header"> | 352 | <div class="widget-header"> |
344 | <i class="fa fa-pencil"></i> | 353 | <i class="fa fa-pencil"></i> |
345 | <h3>Price Manager Reference</h3> | 354 | <h3>Price Manager Reference</h3> |
346 | </div> | 355 | </div> |
347 | <div class="widget-content"> | 356 | <div class="widget-content"> |
348 | <div class="table-responsive"> | 357 | <div class="table-responsive"> |
349 | <table class="table table-striped" style="position: relative; top: -33px; margin-bottom: 0;"> | 358 | <table class="table table-striped" style="position: relative; top: -33px; margin-bottom: 0;"> |
350 | <thead> | 359 | <thead> |
351 | <tr> | 360 | <tr> |
352 | <th>Omit</th> | 361 | <th>Omit</th> |
353 | <th>Product</th> | 362 | <th>Product</th> |
354 | <th>Cost</th> | 363 | <th>Cost</th> |
355 | <th>PAP (Margin)</th> | 364 | <th>PAP (Margin)</th> |
356 | <th>PAP (Total)</th> | 365 | <th>PAP (Total)</th> |
357 | <th style="color:#F90">Expires</th> | 366 | <th style="color:#F90">Expires</th> |
358 | </tr> | 367 | </tr> |
359 | </thead> | 368 | </thead> |
360 | <tbody> | 369 | <tbody> |
361 | <tr ng-repeat="fuel in fuelPricing"> | 370 | <tr ng-repeat="fuel in fuelPricing"> |
362 | <td><input type="checkbox" ng-model="fuel.status"></td> | 371 | <td><input type="checkbox" ng-model="fuel.status"></td> |
363 | <td>{{fuel.name}}</td> | 372 | <td>{{fuel.name}}</td> |
364 | <td>${{fuel.fuelPricing.cost}}</td> | 373 | <td>${{fuel.fuelPricing.cost}}</td> |
365 | <td>${{fuel.fuelPricing.papMargin}}</td> | 374 | <td>${{fuel.fuelPricing.papMargin}}</td> |
366 | <td style="color:#55AF8B;">${{fuel.fuelPricing.papTotal}}</td> | 375 | <td style="color:#55AF8B;">${{fuel.fuelPricing.papTotal}}</td> |
367 | <td style="color:#F90">{{fuel.fuelPricing.expirationDate}}</td> | 376 | <td style="color:#F90">{{fuel.fuelPricing.expirationDate}}</td> |
368 | </tr>. | 377 | </tr>. |
369 | </tbody> | 378 | </tbody> |
370 | </table> | 379 | </table> |
371 | </div> | 380 | </div> |
372 | </div> | 381 | </div> |
373 | </div> | 382 | </div> |
374 | </div> | 383 | </div> |
375 | </div> | 384 | </div> |
376 | </div> | 385 | </div> |
377 | <!-- /widget-content --> | 386 | <!-- /widget-content --> |
378 | </div> | 387 | </div> |
379 | <!-- /widget --> | 388 | <!-- /widget --> |
380 | </div> | 389 | </div> |
381 | <!-- /span6 --> | 390 | <!-- /span6 --> |
382 | </div> | 391 | </div> |
383 | <!-- /widget --> | 392 | <!-- /widget --> |
384 | </div> | 393 | </div> |
385 | <!-- /container --> | 394 | <!-- /container --> |
386 | <form class="modal multi-step" id="contact-modal-3" name="companyForm"> | 395 | <form class="modal multi-step" id="contact-modal-3" name="companyForm"> |
387 | <div class="modal-dialog modal-lg"> | 396 | <div class="modal-dialog modal-lg"> |
388 | <div class="modal-content"> | 397 | <div class="modal-content"> |
389 | <div class="modal-body step-1" data-step="1" style="padding: 0;"> | 398 | <div class="modal-body step-1" data-step="1" style="padding: 0;"> |
390 | <div> | 399 | <div> |
391 | <div class="row" style="margin: 0;"> | 400 | <div class="row" style="margin: 0;"> |
392 | <div> | 401 | <div> |
393 | <div class="widget" style="margin-bottom: 0; box-shadow: none;"> | 402 | <div class="widget" style="margin-bottom: 0; box-shadow: none;"> |
394 | <div class="widget-header"> | 403 | <div class="widget-header"> |
395 | <i class="icon-pencil"></i> | 404 | <i class="icon-pencil"></i> |
396 | <i class="fa fa-tasks" aria-hidden="true"></i> | 405 | <i class="fa fa-tasks" aria-hidden="true"></i> |
397 | <h3>Add a New Contact</h3> | 406 | <h3>Add a New Contact</h3> |
398 | <div class="clearfix"></div> | 407 | <div class="clearfix"></div> |
399 | </div> | 408 | </div> |
400 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> | 409 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> |
401 | <div class="col-xs-12"> | 410 | <div class="col-xs-12"> |
402 | <div class="col-md-6"> | 411 | <div class="col-md-6"> |
403 | <div class="pull-left" style="width: 110px;"> | 412 | <div class="pull-left" style="width: 110px;"> |
404 | <label class="new-input-label"><b>First Name</b></label> | 413 | <label class="new-input-label"><b>First Name</b></label> |
405 | </div> | 414 | </div> |
406 | <div class="pull-left" style="margin-left: 15px;"> | 415 | <div class="pull-left" style="margin-left: 15px;"> |
407 | <input type="tel" ng-model="data.firstName" class="form-control" placeholder=""> | 416 | <input type="tel" ng-model="data.firstName" class="form-control" placeholder=""> |
408 | </div> | 417 | </div> |
409 | <div class="clearfix"></div> | 418 | <div class="clearfix"></div> |
410 | </div> | 419 | </div> |
411 | <div class="col-md-6"> | 420 | <div class="col-md-6"> |
412 | 421 | ||
413 | <div class="pull-left" style="width: 110px;"> | 422 | <div class="pull-left" style="width: 110px;"> |
414 | <label class="new-input-label"><b>Last Name</b></label> | 423 | <label class="new-input-label"><b>Last Name</b></label> |
415 | </div> | 424 | </div> |
416 | <div class="pull-left" style="margin-left: 15px;"> | 425 | <div class="pull-left" style="margin-left: 15px;"> |
417 | <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder=""> | 426 | <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder=""> |
418 | </div> | 427 | </div> |
419 | <div class="clearfix"></div> | 428 | <div class="clearfix"></div> |
420 | </div> | 429 | </div> |
421 | </div> | 430 | </div> |
422 | <div class="clearfix"></div><br> | 431 | <div class="clearfix"></div><br> |
423 | <div class="col-xs-12"> | 432 | <div class="col-xs-12"> |
424 | <div class="col-md-6"> | 433 | <div class="col-md-6"> |
425 | <div class="pull-left" style="width: 110px;"> | 434 | <div class="pull-left" style="width: 110px;"> |
426 | <label class="new-input-label"><b>Title</b></label> | 435 | <label class="new-input-label"><b>Title</b></label> |
427 | </div> | 436 | </div> |
428 | <div class="pull-left" style="margin-left: 15px;"> | 437 | <div class="pull-left" style="margin-left: 15px;"> |
429 | <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder=""> | 438 | <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder=""> |
430 | </div> | 439 | </div> |
431 | <div class="clearfix"></div> | 440 | <div class="clearfix"></div> |
432 | </div> | 441 | </div> |
433 | <div class="col-md-6"> | 442 | <div class="col-md-6"> |
434 | 443 | ||
435 | <div class="pull-left" style="width: 110px;"> | 444 | <div class="pull-left" style="width: 110px;"> |
436 | <label class="new-input-label"><b>Email</b></label> | 445 | <label class="new-input-label"><b>Email</b></label> |
437 | </div> | 446 | </div> |
438 | <div class="pull-left" style="margin-left: 15px;"> | 447 | <div class="pull-left" style="margin-left: 15px;"> |
439 | <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder=""> | 448 | <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder=""> |
440 | </div> | 449 | </div> |
441 | <div class="clearfix"></div> | 450 | <div class="clearfix"></div> |
442 | </div> | 451 | </div> |
443 | </div> | 452 | </div> |
444 | <div class="clearfix"></div><br> | 453 | <div class="clearfix"></div><br> |
445 | <div class="col-xs-12"> | 454 | <div class="col-xs-12"> |
446 | <div class="col-md-6"> | 455 | <div class="col-md-6"> |
447 | <div class="pull-left" style="width: 110px;"> | 456 | <div class="pull-left" style="width: 110px;"> |
448 | <label class="new-input-label"><b>Username</b></label> | 457 | <label class="new-input-label"><b>Username</b></label> |
449 | </div> | 458 | </div> |
450 | <div class="pull-left" style="margin-left: 15px;"> | 459 | <div class="pull-left" style="margin-left: 15px;"> |
451 | <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder=""> | 460 | <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder=""> |
452 | </div> | 461 | </div> |
453 | <div class="clearfix"></div> | 462 | <div class="clearfix"></div> |
454 | </div> | 463 | </div> |
455 | <div class="col-md-6"> | 464 | <div class="col-md-6"> |
456 | 465 | ||
457 | <div class="pull-left" style="width: 110px;"> | 466 | <div class="pull-left" style="width: 110px;"> |
458 | <label class="new-input-label"><b>Password</b></label> | 467 | <label class="new-input-label"><b>Password</b></label> |
459 | </div> | 468 | </div> |
460 | <div class="pull-left" style="margin-left: 15px;"> | 469 | <div class="pull-left" style="margin-left: 15px;"> |
461 | <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder=""> | 470 | <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder=""> |
462 | </div> | 471 | </div> |
463 | <div class="clearfix"></div> | 472 | <div class="clearfix"></div> |
464 | </div> | 473 | </div> |
465 | </div> | 474 | </div> |
466 | <div class="clearfix"></div><br> | 475 | <div class="clearfix"></div><br> |
467 | <div class="col-xs-12"> | 476 | <div class="col-xs-12"> |
468 | <div class="col-md-6"> | 477 | <div class="col-md-6"> |
469 | <div class="pull-left" style="width: 110px;"> | 478 | <div class="pull-left" style="width: 110px;"> |
470 | <label class="new-input-label"><b>Work Phone</b></label> | 479 | <label class="new-input-label"><b>Work Phone</b></label> |
471 | </div> | 480 | </div> |
472 | <div class="pull-left" style="margin-left: 15px;"> | 481 | <div class="pull-left" style="margin-left: 15px;"> |
473 | <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder=""> | 482 | <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder=""> |
474 | </div> | 483 | </div> |
475 | <div class="clearfix"></div> | 484 | <div class="clearfix"></div> |
476 | </div> | 485 | </div> |
477 | <div class="col-md-6"> | 486 | <div class="col-md-6"> |
478 | 487 | ||
479 | <div class="pull-left" style="width: 110px;"> | 488 | <div class="pull-left" style="width: 110px;"> |
480 | <label class="new-input-label"><b>Mobile Phone</b></label> | 489 | <label class="new-input-label"><b>Mobile Phone</b></label> |
481 | </div> | 490 | </div> |
482 | <div class="pull-left" style="margin-left: 15px;"> | 491 | <div class="pull-left" style="margin-left: 15px;"> |
483 | <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder=""> | 492 | <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder=""> |
484 | </div> | 493 | </div> |
485 | <div class="clearfix"></div> | 494 | <div class="clearfix"></div> |
486 | </div> | 495 | </div> |
487 | </div> | 496 | </div> |
488 | <div class="clearfix"></div><br> | 497 | <div class="clearfix"></div><br> |
489 | <div class="col-xs-12"> | 498 | <div class="col-xs-12"> |
490 | <div class="col-md-12"> | 499 | <div class="col-md-12"> |
491 | <div class="pull-left" style="width: 110px;"> | 500 | <div class="pull-left" style="width: 110px;"> |
492 | <label class="new-input-label"><b>Address</b></label> | 501 | <label class="new-input-label"><b>Address</b></label> |
493 | </div> | 502 | </div> |
494 | <div class="pull-right" style="width: calc(100% - 123px);"> | 503 | <div class="pull-right" style="width: calc(100% - 123px);"> |
495 | <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder=""> | 504 | <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder=""> |
496 | </div> | 505 | </div> |
497 | <div class="clearfix"></div> | 506 | <div class="clearfix"></div> |
498 | </div> | 507 | </div> |
499 | </div> | 508 | </div> |
500 | <div class="clearfix"></div> | 509 | <div class="clearfix"></div> |
501 | <br/> | 510 | <br/> |
502 | <div class="col-xs-12"> | 511 | <div class="col-xs-12"> |
503 | <div class="col-md-3"> | 512 | <div class="col-md-3"> |
504 | <div class="pull-left my-toggle-switch"> | 513 | <div class="pull-left my-toggle-switch"> |
505 | <div style="color: #ff9a01;">Price Email     | 514 | <div style="color: #ff9a01;">Price Email     |
506 | <toggle ng-model="data.priceEmail" size="customToogle"></toggle> | 515 | <toggle ng-model="data.priceEmail" size="customToogle"></toggle> |
507 | </div> | 516 | </div> |
508 | </div> | 517 | </div> |
509 | <div class="clearfix"></div> | 518 | <div class="clearfix"></div> |
510 | </div> | 519 | </div> |
511 | <div class="col-md-3"> | 520 | <div class="col-md-3"> |
512 | <div class="pull-left my-toggle-switch"> | 521 | <div class="pull-left my-toggle-switch"> |
513 | <div style="color: #ff9a01;">Primary Contact     | 522 | <div style="color: #ff9a01;">Primary Contact     |
514 | <input type="checkbox" ng-click="checkPrimaryContact()" ng-model="primaryContact"> | 523 | <input type="checkbox" ng-click="checkPrimaryContact()" ng-model="primaryContact"> |
515 | </div> | 524 | </div> |
516 | </div> | 525 | </div> |
517 | <div class="clearfix"></div> | 526 | <div class="clearfix"></div> |
518 | </div> | 527 | </div> |
519 | <div class="col-md-6"> | 528 | <div class="col-md-6"> |
520 | <div class="pull-left" style="width: 110px;"> | 529 | <div class="pull-left" style="width: 110px;"> |
521 | <label class="new-input-label"><b>Internal Note</b></label> | 530 | <label class="new-input-label"><b>Internal Note</b></label> |
522 | </div> | 531 | </div> |
523 | <div class="pull-left" style="width: calc(100% - 110px);"> | 532 | <div class="pull-left" style="width: calc(100% - 110px);"> |
524 | <textarea name="message" ng-model="data.note" rows="4" cols="34"></textarea> | 533 | <textarea name="message" ng-model="data.note" rows="4" cols="34"></textarea> |
525 | </div> | 534 | </div> |
526 | </div> | 535 | </div> |
527 | <div class="clearfix"></div> | 536 | <div class="clearfix"></div> |
528 | </div> | 537 | </div> |
529 | <div class="clearfix"></div><br> | 538 | <div class="clearfix"></div><br> |
530 | </div> | 539 | </div> |
531 | </div> | 540 | </div> |
532 | <div class="clearfix"></div> | 541 | <div class="clearfix"></div> |
533 | </div> | 542 | </div> |
534 | </div> | 543 | </div> |
535 | </div> | 544 | </div> |
536 | </div> | 545 | </div> |
537 | <div class="modal-footer" style="border-top: 0;"> | 546 | <div class="modal-footer" style="border-top: 0;"> |
538 | <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button> | 547 | <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button> |
539 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button> | 548 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button> |
540 | </div> | 549 | </div> |
541 | </div> | 550 | </div> |
542 | </div> | 551 | </div> |
543 | </form> | 552 | </form> |
544 | <div class="clearfix"></div> | 553 | <div class="clearfix"></div> |
545 | 554 | ||
546 | <form class="modal multi-step" id="aircraft-modal-3" name="aircraftForm"> | 555 | <form class="modal multi-step" id="aircraft-modal-3" name="aircraftForm"> |
547 | <div class="modal-dialog modal-lg"> | 556 | <div class="modal-dialog modal-lg"> |
548 | <div class="modal-content"> | 557 | <div class="modal-content"> |
549 | <div class="modal-body step-2" data-step="2" style="padding: 0;"> | 558 | <div class="modal-body step-2" data-step="2" style="padding: 0;"> |
550 | <div> | 559 | <div> |
551 | <div class="row" style="margin: 0;"> | 560 | <div class="row" style="margin: 0;"> |
552 | <div> | 561 | <div> |
553 | <div class="widget" style="margin-bottom: 0;box-shadow: none;"> | 562 | <div class="widget" style="margin-bottom: 0;box-shadow: none;"> |
554 | <div class="widget-header"> | 563 | <div class="widget-header"> |
555 | <i class="icon-pencil"></i> | 564 | <i class="icon-pencil"></i> |
556 | <i class="fa fa-tasks" aria-hidden="true"></i> | 565 | <i class="fa fa-tasks" aria-hidden="true"></i> |
557 | <h3>Add a New Aircraft</h3> | 566 | <h3>Add a New Aircraft</h3> |
558 | <div class="clearfix"></div> | 567 | <div class="clearfix"></div> |
559 | </div> | 568 | </div> |
560 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> | 569 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> |
561 | <div class="col-xs-12"> | 570 | <div class="col-xs-12"> |
562 | <div class="widget-header"> | 571 | <div class="widget-header"> |
563 | <i class="fa fa-list"></i> | 572 | <i class="fa fa-list"></i> |
564 | <h3>Aircraft List</h3> | 573 | <h3>Aircraft List</h3> |
565 | </div> | 574 | </div> |
566 | <div class="widget-content" style="padding:0px;border: 0px; padding: 0px !important;"> | 575 | <div class="widget-content" style="padding:0px;border: 0px; padding: 0px !important;"> |
567 | <div class="table-responsive"> | 576 | <div class="table-responsive"> |
568 | <table class="table table-striped table-bordered"> | 577 | <table class="table table-striped table-bordered"> |
569 | <thead> | 578 | <thead> |
570 | <tr> | 579 | <tr> |
571 | <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> --> | 580 | <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> --> |
572 | <th>Tail</th> | 581 | <th>Tail</th> |
573 | <th>Make</th> | 582 | <th>Make</th> |
574 | <th>Model</th> | 583 | <th>Model</th> |
575 | <th>Size</th> | 584 | <th>Size</th> |
576 | <th>Margin</th> | 585 | <th>Margin</th> |
577 | </tr> | 586 | </tr> |
578 | </thead> | 587 | </thead> |
579 | <tbody> | 588 | <tbody> |
580 | <tr ng-repeat="aircraftData in aircraftDetails track by $index"> | 589 | <tr ng-repeat="aircraftData in aircraftDetails track by $index"> |
581 | <!-- <td> | 590 | <!-- <td> |
582 | <input type="checkbox" ng-model="aircraftData.selected"/> | 591 | <input type="checkbox" ng-model="aircraftData.selected"/> |
583 | </td> --> | 592 | </td> --> |
584 | <td style="width: 20%"> | 593 | <td style="width: 20%"> |
585 | <input type="tel" class="form-control" ng-model="aircraftData.tail" required/> | 594 | <input type="tel" class="form-control" ng-model="aircraftData.tail" required/> |
586 | </td> | 595 | </td> |
587 | <td style="width: 20%"> | 596 | <td style="width: 20%"> |
588 | <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)"> | 597 | <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)"> |
589 | <option ng-repeat="make in aircraftMakeList">{{make}}</option> | 598 | <option ng-repeat="make in aircraftMakeList">{{make}}</option> |
590 | </select> | 599 | </select> |
591 | </td> | 600 | </td> |
592 | <td style="width: 20%"> | 601 | <td style="width: 20%"> |
593 | <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)"> | 602 | <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)"> |
594 | <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option> | 603 | <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option> |
595 | </select> | 604 | </select> |
596 | </td> | 605 | </td> |
597 | <td style="width: 20%"> | 606 | <td style="width: 20%"> |
598 | <select class="form-control" ng-model="aircraftData.sizeId" ng-options="size.aircraftSize.id as size.aircraftSize.size for size in aircraftData.aircraftSizeList"></select> | 607 | <select class="form-control" ng-model="aircraftData.sizeId" ng-options="size.aircraftSize.id as size.aircraftSize.size for size in aircraftData.aircraftSizeList"></select> |
599 | <!-- <select class="form-control" ng-model="aircraftData.size"> | 608 | <!-- <select class="form-control" ng-model="aircraftData.size"> |
600 | <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option> | 609 | <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option> |
601 | </select> --> | 610 | </select> --> |
602 | </td> | 611 | </td> |
603 | <td> | 612 | <td> |
604 | <select class="form-control" ng-model="aircraftData.marginId" ng-options="margin.id as margin.marginName for margin in marginList"></select> | 613 | <select class="form-control" ng-model="aircraftData.marginId" ng-options="margin.id as margin.marginName for margin in marginList"></select> |
605 | </td> | 614 | </td> |
606 | </tr> | 615 | </tr> |
607 | </tbody> | 616 | </tbody> |
608 | </table> | 617 | </table> |
609 | </div> | 618 | </div> |
610 | <div class="clearfix"></div> | 619 | <div class="clearfix"></div> |
611 | </div> | 620 | </div> |
612 | </div> | 621 | </div> |
613 | <div class="clearfix"></div> | 622 | <div class="clearfix"></div> |
614 | <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;"> | 623 | <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;"> |
615 | <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button> | 624 | <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button> |
616 | </div> | 625 | </div> |
617 | </div> | 626 | </div> |
618 | </div> | 627 | </div> |
619 | <div class="clearfix"></div> | 628 | <div class="clearfix"></div> |
620 | </div> | 629 | </div> |
621 | </div> | 630 | </div> |
622 | </div> | 631 | </div> |
623 | </div> | 632 | </div> |
624 | <div class="modal-footer" style="border-top: 0;"> | 633 | <div class="modal-footer" style="border-top: 0;"> |
625 | <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button> | 634 | <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button> |
626 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="saveCompanyData()">Save</button> | 635 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="saveCompanyData()">Save</button> |
627 | </div> | 636 | </div> |
628 | </div> | 637 | </div> |
629 | </div> | 638 | </div> |
630 | </form> | 639 | </form> |
631 | 640 | ||
632 | <div class="customConfirmPopBackdrop" id="confirm1"> | 641 | <div class="customConfirmPopBackdrop" id="confirm1"> |
633 | <div class="customModalInner" style="max-width: 400px;"> | 642 | <div class="customModalInner" style="max-width: 400px;"> |
634 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> | 643 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> |
635 | <table> | 644 | <table> |
636 | <tr> | 645 | <tr> |
637 | <td> | 646 | <td> |
638 | <img src="img/info.png" style="width: 50px;"> | 647 | <img src="img/info.png" style="width: 50px;"> |
639 | </td> | 648 | </td> |
640 | <td> | 649 | <td> |
641 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p> | 650 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p> |
642 | </td> | 651 | </td> |
643 | </tr> | 652 | </tr> |
644 | </table> | 653 | </table> |
645 | </div> | 654 | </div> |
646 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> | 655 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> |
647 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendMail()">Yes</button> | 656 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendMail()">Yes</button> |
648 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button> | 657 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button> |
649 | </div> | 658 | </div> |
650 | </div> | 659 | </div> |
651 | </div> | 660 | </div> |
652 | 661 | ||
653 | <div class="customConfirmPopBackdrop" id="primaryContact"> | 662 | <div class="customConfirmPopBackdrop" id="primaryContact"> |
654 | <div class="customModalInner" style="max-width: 400px;"> | 663 | <div class="customModalInner" style="max-width: 400px;"> |
655 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> | 664 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> |
656 | <table> | 665 | <table> |
657 | <tr> | 666 | <tr> |
658 | <td> | 667 | <td> |
659 | <img src="img/info.png" style="width: 50px;"> | 668 | <img src="img/info.png" style="width: 50px;"> |
660 | </td> | 669 | </td> |
661 | <td> | 670 | <td> |
662 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure you want to set this person as your primary contact?</p> | 671 | <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure you want to set this person as your primary contact?</p> |
663 | </td> | 672 | </td> |
664 | </tr> | 673 | </tr> |
665 | </table> | 674 | </table> |
666 | </div> | 675 | </div> |
667 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> | 676 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> |
668 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendPrimaryContact()">Yes</button> | 677 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendPrimaryContact()">Yes</button> |
669 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelPrimaryContact()">Cancel</button> | 678 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelPrimaryContact()">Cancel</button> |
670 | </div> | 679 | </div> |
671 | </div> | 680 | </div> |
672 | </div> | 681 | </div> |
673 | 682 | ||
674 | <div class="customConfirmPopBackdrop" id="customField"> | 683 | <div class="customConfirmPopBackdrop" id="customField"> |
675 | <div class="customModalInner" style="max-width: 400px;"> | 684 | <div class="customModalInner" style="max-width: 400px;"> |
676 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> | 685 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> |
677 | <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div> | 686 | <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div> |
678 | <div class="col-md-10"> | 687 | <div class="col-md-10"> |
679 | <form> | 688 | <form> |
680 | Title:<br> | 689 | Title:<br> |
681 | <input type="text" name="firstname" ng-model="custom.title"><br> | 690 | <input type="text" name="firstname" ng-model="custom.title"><br> |
682 | Content:<br> | 691 | Content:<br> |
683 | <input type="text" name="lastname" ng-model="custom.content"> | 692 | <input type="text" name="lastname" ng-model="custom.content"> |
684 | </form> | 693 | </form> |
685 | </div> | 694 | </div> |
686 | <div class="clearfix"></div> | 695 | <div class="clearfix"></div> |
687 | </div> | 696 | </div> |
688 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> | 697 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> |
689 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptCustomField()">Accept</button> | 698 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptCustomField()">Accept</button> |
690 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelCustomField()">Cancel</button> | 699 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelCustomField()">Cancel</button> |
691 | </div> | 700 | </div> |
692 | </div> | 701 | </div> |
693 | </div> | 702 | </div> |
694 | 703 | ||
695 | <div class="customConfirmPopBackdrop" id="updateContact"> | 704 | <div class="customConfirmPopBackdrop" id="updateContact"> |
696 | <div class="customModalInner" style="max-width: 400px;"> | 705 | <div class="customModalInner" style="max-width: 400px;"> |
697 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> | 706 | <div class="customModelBody" style="border-radius: 5px 5px 0 0;"> |
698 | <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div> | 707 | <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div> |
699 | <div class="col-md-10"> | 708 | <div class="col-md-10"> |
700 | <form> | 709 | <form> |
701 | Title:<br> | 710 | Title:<br> |
702 | <input type="text" name="firstname" ng-model="updateData.title"><br> | 711 | <input type="text" name="firstname" ng-model="updateData.title"><br> |
703 | Content:<br> | 712 | Content:<br> |
704 | <input type="text" name="lastname" ng-model="updateData.content"> | 713 | <input type="text" name="lastname" ng-model="updateData.content"> |
705 | </form> | 714 | </form> |
706 | </div> | 715 | </div> |
707 | <div class="clearfix"></div> | 716 | <div class="clearfix"></div> |
708 | </div> | 717 | </div> |
709 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> | 718 | <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;"> |
710 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptUpdateField()">Accept</button> | 719 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptUpdateField()">Accept</button> |
711 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelUpdateField()">Cancel</button> | 720 | <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelUpdateField()">Cancel</button> |
712 | </div> | 721 | </div> |
713 | </div> | 722 | </div> |
714 | </div> | 723 | </div> |
715 | 724 | ||
716 | <div class="myLoader" ng-show="showLoader"> | 725 | <div class="myLoader" ng-show="showLoader"> |
717 | <img src="../img/hourglass.gif" width="50px;"> | 726 | <img src="../img/hourglass.gif" width="50px;"> |
718 | </div> | 727 | </div> |
719 | 728 | ||
720 | <!-- Le javascript | 729 | <!-- Le javascript |
721 | ================================================== --> | 730 | ================================================== --> |
722 | <!-- Placed at the end of the document so the pages load faster --> | 731 | <!-- Placed at the end of the document so the pages load faster --> |
723 | <!-- <script | 732 | <!-- <script |
724 | CKEDITOR.replace( 'editor2', { | 733 | CKEDITOR.replace( 'editor2', { |
725 | height: 250, | 734 | height: 250, |
726 | extraPlugins: 'divarea' | 735 | extraPlugins: 'divarea' |
727 | } ); | 736 | } ); |
728 | </script> --> | 737 | </script> --> |