Commit fd20aa6ce315cbb26e476c84b24dfd63f079912c
1 parent
48ed0c7bb0
Exists in
master
send confirmation mail code implemented and baseIco added
Showing
3 changed files
with
51 additions
and
1 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', function($scope , $uibModal, $stateParams, ViewCompanyService, CustomersService) { | 7 | .controller('viewCompanyController', ['$scope','$uibModal', '$stateParams', 'ViewCompanyService', 'CustomersService', function($scope , $uibModal, $stateParams, ViewCompanyService, CustomersService) { |
8 | $scope.data = {}; | 8 | $scope.data = {}; |
9 | $scope.data.priceEmail = true; | 9 | $scope.data.priceEmail = true; |
10 | $scope.aircraft = {}; | 10 | $scope.aircraft = {}; |
11 | // $scope.open = function(){ | 11 | // $scope.open = function(){ |
12 | // $scope.editSmsModal = $uibModal.open({ | 12 | // $scope.editSmsModal = $uibModal.open({ |
13 | // templateUrl: 'partials/NewCompany/NewCompany.html', | 13 | // templateUrl: 'partials/NewCompany/NewCompany.html', |
14 | // backdrop: true, | 14 | // backdrop: true, |
15 | // scope: $scope, | 15 | // scope: $scope, |
16 | // }) | 16 | // }) |
17 | // } | 17 | // } |
18 | 18 | ||
19 | $(function() { | 19 | $(function() { |
20 | $('#company-one2').bootstrapToggle(); | 20 | $('#company-one2').bootstrapToggle(); |
21 | }) | 21 | }) |
22 | 22 | ||
23 | $(function() { | 23 | $(function() { |
24 | $('#toggle-one1').bootstrapToggle(); | 24 | $('#toggle-one1').bootstrapToggle(); |
25 | }) | 25 | }) |
26 | $(function() { | 26 | $(function() { |
27 | $('#toggle-two').bootstrapToggle(); | 27 | $('#toggle-two').bootstrapToggle(); |
28 | }) | 28 | }) |
29 | $(function() { | 29 | $(function() { |
30 | $('#toggle-three').bootstrapToggle(); | 30 | $('#toggle-three').bootstrapToggle(); |
31 | }) | 31 | }) |
32 | $(function() { | 32 | $(function() { |
33 | $('#toggle-four').bootstrapToggle(); | 33 | $('#toggle-four').bootstrapToggle(); |
34 | }) | 34 | }) |
35 | 35 | ||
36 | $(function() { | 36 | $(function() { |
37 | $('#price-one2').bootstrapToggle(); | 37 | $('#price-one2').bootstrapToggle(); |
38 | $('#price-one2').change(function() { | 38 | $('#price-one2').change(function() { |
39 | $('#console-event').html('Toggle: ' + $(this).prop('checked')); | 39 | $('#console-event').html('Toggle: ' + $(this).prop('checked')); |
40 | $scope.data.priceEmail = $(this).prop('checked'); | 40 | $scope.data.priceEmail = $(this).prop('checked'); |
41 | }) | 41 | }) |
42 | }) | 42 | }) |
43 | 43 | ||
44 | var value = ""; | 44 | var value = ""; |
45 | var companyId = $stateParams.id; | 45 | var companyId = $stateParams.id; |
46 | ViewCompanyService.getCompany(companyId).then(function(result) { | 46 | ViewCompanyService.getCompany(companyId).then(function(result) { |
47 | $scope.companyData = result; | 47 | $scope.companyData = result; |
48 | if($scope.companyData.activate == true){ | 48 | if($scope.companyData.activate == true){ |
49 | value = 'on'; | 49 | value = 'on'; |
50 | }else{ | 50 | }else{ |
51 | value = 'off' | 51 | value = 'off' |
52 | } | 52 | } |
53 | $('#company-one2').bootstrapToggle(value) | 53 | $('#company-one2').bootstrapToggle(value) |
54 | }) | 54 | }) |
55 | 55 | ||
56 | getContactList(); | 56 | getContactList(); |
57 | function getContactList(){ | 57 | function getContactList(){ |
58 | ViewCompanyService.getContact(companyId).then(function(result) { | 58 | ViewCompanyService.getContact(companyId).then(function(result) { |
59 | $scope.companyContactList = result; | 59 | $scope.companyContactList = result; |
60 | }) | 60 | }) |
61 | } | 61 | } |
62 | 62 | ||
63 | getAircraftList(); | 63 | getAircraftList(); |
64 | function getAircraftList(){ | 64 | function getAircraftList(){ |
65 | ViewCompanyService.getAircraft(companyId).then(function(result) { | 65 | ViewCompanyService.getAircraft(companyId).then(function(result) { |
66 | $scope.contactAircraftList = result; | 66 | $scope.contactAircraftList = result; |
67 | }) | 67 | }) |
68 | } | 68 | } |
69 | 69 | ||
70 | 70 | ||
71 | $scope.contactData = {}; | 71 | $scope.contactData = {}; |
72 | $scope.contactData.contactList = []; | 72 | $scope.contactData.contactList = []; |
73 | $scope.addContact = function(){ | 73 | $scope.addContact = function(){ |
74 | $scope.data.companyId = companyId; | 74 | $scope.data.companyId = companyId; |
75 | $scope.contactData.contactList.push($scope.data); | 75 | $scope.contactData.contactList.push($scope.data); |
76 | ViewCompanyService.addContact($scope.contactData).then(function(result) { | 76 | ViewCompanyService.addContact($scope.contactData).then(function(result) { |
77 | if(result.success){ | 77 | if(result.success){ |
78 | toastr.success(''+result.success+'', { | 78 | toastr.success(''+result.success+'', { |
79 | closeButton: true | 79 | closeButton: true |
80 | }) | 80 | }) |
81 | $('#contact-modal-3').modal('hide'); | 81 | $('#contact-modal-3').modal('hide'); |
82 | getContactList(); | 82 | getContactList(); |
83 | }else{ | 83 | }else{ |
84 | toastr.error(''+result.statusText+'', { | 84 | toastr.error(''+result.statusText+'', { |
85 | closeButton: true | 85 | closeButton: true |
86 | }) | 86 | }) |
87 | } | 87 | } |
88 | }) | 88 | }) |
89 | } | 89 | } |
90 | 90 | ||
91 | getData(); | 91 | getData(); |
92 | function getData(){ | 92 | function getData(){ |
93 | CustomersService.getAircraftMake().then(function(result) { | 93 | CustomersService.getAircraftMake().then(function(result) { |
94 | $scope.aircraftMakeList = result; | 94 | $scope.aircraftMakeList = result; |
95 | }) | 95 | }) |
96 | } | 96 | } |
97 | 97 | ||
98 | $scope.aircraftDetails = [{ | 98 | $scope.aircraftDetails = [{ |
99 | 'tail':'', | 99 | 'tail':'', |
100 | 'make': '', | 100 | 'make': '', |
101 | 'model': '', | 101 | 'model': '', |
102 | 'size' : '' | 102 | 'size' : '' |
103 | }]; | 103 | }]; |
104 | 104 | ||
105 | $scope.addNew = function(){ | 105 | $scope.addNew = function(){ |
106 | $scope.aircraftDetails.push({ | 106 | $scope.aircraftDetails.push({ |
107 | 'tail':'', | 107 | 'tail':'', |
108 | 'make': '', | 108 | 'make': '', |
109 | 'model': '', | 109 | 'model': '', |
110 | 'size' : '' | 110 | 'size' : '' |
111 | }); | 111 | }); |
112 | }; | 112 | }; |
113 | 113 | ||
114 | $scope.getModal = function(makeId, index){ | 114 | $scope.getModal = function(makeId, index){ |
115 | $scope.aircraft.make = makeId; | 115 | $scope.aircraft.make = makeId; |
116 | //var makeId = makeId; | 116 | //var makeId = makeId; |
117 | CustomersService.getModal($scope.aircraft.make).then(function(result) { | 117 | CustomersService.getModal($scope.aircraft.make).then(function(result) { |
118 | $scope.aircraftDetails[index].aircraftModalList = result; | 118 | $scope.aircraftDetails[index].aircraftModalList = result; |
119 | //$scope.aircraftDetails[index].model = $scope.aircraftModalList[0]; | 119 | //$scope.aircraftDetails[index].model = $scope.aircraftModalList[0]; |
120 | }) | 120 | }) |
121 | } | 121 | } |
122 | 122 | ||
123 | $scope.getSize = function(model, index){ | 123 | $scope.getSize = function(model, index){ |
124 | CustomersService.getAircraftSize($scope.aircraft.make, model).then(function(result) { | 124 | CustomersService.getAircraftSize($scope.aircraft.make, model).then(function(result) { |
125 | $scope.aircraftDetails[index].aircraftSizeList = result; | 125 | $scope.aircraftDetails[index].aircraftSizeList = result; |
126 | //$scope.aircraftDetails[index].size = $scope.aircraftSizeList[0]; | 126 | //$scope.aircraftDetails[index].size = $scope.aircraftSizeList[0]; |
127 | }) | 127 | }) |
128 | } | 128 | } |
129 | 129 | ||
130 | $scope.aircraftListData = {}; | 130 | $scope.aircraftListData = {}; |
131 | $scope.addData = []; | 131 | $scope.addData = []; |
132 | $scope.saveCompanyData = function(){ | 132 | $scope.saveCompanyData = function(){ |
133 | for(var i=0; i<$scope.aircraftDetails.length;i++){ | 133 | for(var i=0; i<$scope.aircraftDetails.length;i++){ |
134 | $scope.addData.push({ | 134 | $scope.addData.push({ |
135 | 'tail': $scope.aircraftDetails[i].tail, | 135 | 'tail': $scope.aircraftDetails[i].tail, |
136 | 'make': $scope.aircraftDetails[i].make, | 136 | 'make': $scope.aircraftDetails[i].make, |
137 | 'model': $scope.aircraftDetails[i].model, | 137 | 'model': $scope.aircraftDetails[i].model, |
138 | 'size' : $scope.aircraftDetails[i].size | 138 | 'size' : $scope.aircraftDetails[i].size |
139 | }); | 139 | }); |
140 | } | 140 | } |
141 | $scope.aircraftListData.aircraftList = $scope.addData; | 141 | $scope.aircraftListData.aircraftList = $scope.addData; |
142 | $scope.aircraftListData.accountId = companyId; | 142 | $scope.aircraftListData.accountId = companyId; |
143 | 143 | ||
144 | CustomersService.addAircraft($scope.aircraftListData).then(function(result) { | 144 | CustomersService.addAircraft($scope.aircraftListData).then(function(result) { |
145 | if(result != null && result.success){ | 145 | if(result != null && result.success){ |
146 | toastr.success(''+result.success+'', { | 146 | toastr.success(''+result.success+'', { |
147 | closeButton: true | 147 | closeButton: true |
148 | }) | 148 | }) |
149 | $('#aircraft-modal-3').modal('hide'); | 149 | $('#aircraft-modal-3').modal('hide'); |
150 | getAircraftList(); | 150 | getAircraftList(); |
151 | }else{ | 151 | }else{ |
152 | toastr.error(''+result.statusText+'', { | 152 | toastr.error(''+result.statusText+'', { |
153 | closeButton: true | 153 | closeButton: true |
154 | }) | 154 | }) |
155 | } | 155 | } |
156 | }); | 156 | }); |
157 | 157 | ||
158 | } | 158 | } |
159 | $scope.showNoteData = true; | 159 | $scope.showNoteData = true; |
160 | $scope.showCompanyName = true; | 160 | $scope.showCompanyName = true; |
161 | $scope.showAddress = true; | 161 | $scope.showAddress = true; |
162 | $scope.showNote = function(){ | 162 | $scope.showNote = function(){ |
163 | $scope.showNoteData = false; | 163 | $scope.showNoteData = false; |
164 | } | 164 | } |
165 | 165 | ||
166 | $scope.company = function(){ | 166 | $scope.company = function(){ |
167 | $scope.showCompanyName = false; | 167 | $scope.showCompanyName = false; |
168 | } | 168 | } |
169 | 169 | ||
170 | $scope.addressChange = function(){ | 170 | $scope.addressChange = function(){ |
171 | $scope.showAddress = false; | 171 | $scope.showAddress = false; |
172 | } | 172 | } |
173 | 173 | ||
174 | $scope.editData = function(inputName) { | 174 | $scope.editData = function(inputName) { |
175 | console.log($scope.companyData) | 175 | console.log($scope.companyData) |
176 | if(inputName == 'showNoteData'){ | 176 | if(inputName == 'showNoteData'){ |
177 | $scope.showNoteData = true; | 177 | $scope.showNoteData = true; |
178 | }else if(inputName == 'showCompanyName'){ | 178 | }else if(inputName == 'showCompanyName'){ |
179 | $scope.showCompanyName = true; | 179 | $scope.showCompanyName = true; |
180 | }else if(inputName == 'showAddress'){ | 180 | }else if(inputName == 'showAddress'){ |
181 | $scope.showAddress = true; | 181 | $scope.showAddress = true; |
182 | } | 182 | } |
183 | 183 | ||
184 | var companyData = "companyName=" + $scope.companyData.companyName + "&masterMargin=" + $scope.companyData.masterMargin | 184 | var companyData = "companyName=" + $scope.companyData.companyName + "&masterMargin=" + $scope.companyData.masterMargin |
185 | + "&addressOne=" + $scope.companyData.addressOne + "&addressTwo=" + $scope.companyData.addressTwo + "&city=" + $scope.companyData.city + "&state=" | 185 | + "&addressOne=" + $scope.companyData.addressOne + "&addressTwo=" + $scope.companyData.addressTwo + "&city=" + $scope.companyData.city + "&state=" |
186 | + $scope.companyData.state + "&country=" + $scope.companyData.country + "&zipcode=" + $scope.companyData.zipcode + "&internalNote=" | 186 | + $scope.companyData.state + "&country=" + $scope.companyData.country + "&zipcode=" + $scope.companyData.zipcode + "&internalNote=" |
187 | + $scope.companyData.internalNote + "&certificateType=" + $scope.companyData.certificateType + "&baseTenant=" + $scope.companyData.baseTenant | 187 | + $scope.companyData.internalNote + "&certificateType=" + $scope.companyData.certificateType + "&baseTenant=" + $scope.companyData.baseTenant |
188 | + "&fuelerlinxCustomer=" + $scope.companyData.fuelerlinxCustomer + "&contractFuelVendor=" + $scope.companyData.contractFuelVendor | 188 | + "&fuelerlinxCustomer=" + $scope.companyData.fuelerlinxCustomer + "&contractFuelVendor=" + $scope.companyData.contractFuelVendor |
189 | + "&activate=" + $scope.companyData.activate + "&baseIcao=" + $scope.companyData.baseIcao + "&companyId=" + companyId; | 189 | + "&activate=" + $scope.companyData.activate + "&baseIcao=" + $scope.companyData.baseIcao + "&companyId=" + companyId; |
190 | 190 | ||
191 | ViewCompanyService.updateContact(companyData).then(function(result) { | 191 | ViewCompanyService.updateContact(companyData).then(function(result) { |
192 | if(result != null && result.success){ | 192 | if(result != null && result.success){ |
193 | toastr.success(''+result.success+'', { | 193 | toastr.success(''+result.success+'', { |
194 | closeButton: true | 194 | closeButton: true |
195 | }) | 195 | }) |
196 | }else{ | 196 | }else{ |
197 | toastr.error(''+result.statusText+'', { | 197 | toastr.error(''+result.statusText+'', { |
198 | closeButton: true | 198 | closeButton: true |
199 | }) | 199 | }) |
200 | } | 200 | } |
201 | }) | 201 | }) |
202 | 202 | ||
203 | } | 203 | } |
204 | 204 | ||
205 | $scope.sendMail = function(){ | ||
206 | ViewCompanyService.sendMail(companyId).then(function(result) { | ||
207 | if(result != null && result.success){ | ||
208 | toastr.success(''+result.success+'', { | ||
209 | closeButton: true | ||
210 | }) | ||
211 | }else{ | ||
212 | toastr.error(''+result.statusText+'', { | ||
213 | closeButton: true | ||
214 | }) | ||
215 | } | ||
216 | }) | ||
217 | } | ||
218 | |||
205 | }]); | 219 | }]); |
app/partials/viewCompany/viewCompany.html
1 | <style> | 1 | <style> |
2 | .subnavbar .mainnav > li:nth-child(3) > a{ | 2 | .subnavbar .mainnav > li:nth-child(3) > a{ |
3 | color: #ff9900; | 3 | color: #ff9900; |
4 | } | 4 | } |
5 | .widget-content{ | 5 | .widget-content{ |
6 | padding: 10px !important; | 6 | padding: 10px !important; |
7 | } | 7 | } |
8 | .widget-content input[type="text"], .widget-content select{ | 8 | .widget-content input[type="text"], .widget-content select{ |
9 | height: 31px; | 9 | height: 31px; |
10 | padding: 0; | 10 | padding: 0; |
11 | } | 11 | } |
12 | .new-label span{ | 12 | .new-label span{ |
13 | float: left; | 13 | float: left; |
14 | line-height: 31px; | 14 | line-height: 31px; |
15 | } | 15 | } |
16 | .new-label span:first-child{ | 16 | .new-label span:first-child{ |
17 | margin-right: 5px; | 17 | margin-right: 5px; |
18 | font-weight: bold; | 18 | font-weight: bold; |
19 | } | 19 | } |
20 | .new-label span:last-child{ | 20 | .new-label span:last-child{ |
21 | margin-left: 5px; | 21 | margin-left: 5px; |
22 | } | 22 | } |
23 | .new-label select{ | 23 | .new-label select{ |
24 | display: -webkit-inline-box; | 24 | display: -webkit-inline-box; |
25 | display: inline-box; | 25 | display: inline-box; |
26 | float: left; | 26 | float: left; |
27 | } | 27 | } |
28 | .new-address p{ | 28 | .new-address p{ |
29 | margin-bottom: 0; | 29 | margin-bottom: 0; |
30 | } | 30 | } |
31 | .new-add-select{ | 31 | .new-add-select{ |
32 | padding-left: 15px; | 32 | padding-left: 15px; |
33 | margin: 10px 0; | 33 | margin: 10px 0; |
34 | } | 34 | } |
35 | .new-add-select select{ | 35 | .new-add-select select{ |
36 | width: 100px; | 36 | width: 100px; |
37 | } | 37 | } |
38 | .widget{ | 38 | .widget{ |
39 | -moz-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); | 39 | -moz-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); |
40 | -webkit-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); | 40 | -webkit-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); |
41 | box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); | 41 | box-shadow: 0px 3px 8px rgba(100,100,100, 0.7); |
42 | } | 42 | } |
43 | .optionclass { | 43 | .optionclass { |
44 | background: #fff; | 44 | background: #fff; |
45 | } | 45 | } |
46 | .timess { | 46 | .timess { |
47 | float: right !important; | 47 | float: right !important; |
48 | margin-top: 10px !important; | 48 | margin-top: 10px !important; |
49 | margin-right: 10px !important; | 49 | margin-right: 10px !important; |
50 | color: #999 !important; | 50 | color: #999 !important; |
51 | cursor: pointer !important; | 51 | cursor: pointer !important; |
52 | } | 52 | } |
53 | 53 | ||
54 | .button1 { | 54 | .button1 { |
55 | display: inline-block; | 55 | display: inline-block; |
56 | height: 35px; | 56 | height: 35px; |
57 | line-height: 35px; | 57 | line-height: 35px; |
58 | padding-right: 15px; | 58 | padding-right: 15px; |
59 | padding-left: 50px; | 59 | padding-left: 50px; |
60 | position: relative; | 60 | position: relative; |
61 | background-color:rgb(41,127,184); | 61 | background-color:rgb(41,127,184); |
62 | color:rgb(255,255,255); | 62 | color:rgb(255,255,255); |
63 | text-decoration: none; | 63 | text-decoration: none; |
64 | text-transform: uppercase; | 64 | text-transform: uppercase; |
65 | letter-spacing: 1px; | 65 | letter-spacing: 1px; |
66 | margin-bottom: 15px; | 66 | margin-bottom: 15px; |
67 | border: 0; | 67 | border: 0; |
68 | 68 | ||
69 | 69 | ||
70 | border-radius: 5px; | 70 | border-radius: 5px; |
71 | -moz-border-radius: 5px; | 71 | -moz-border-radius: 5px; |
72 | -webkit-border-radius: 5px; | 72 | -webkit-border-radius: 5px; |
73 | text-shadow:0px 1px 0px rgba(0,0,0,0.5); | 73 | text-shadow:0px 1px 0px rgba(0,0,0,0.5); |
74 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true)";zoom:1; | 74 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true)";zoom:1; |
75 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true); | 75 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true); |
76 | 76 | ||
77 | -moz-box-shadow:0px 2px 2px rgba(0,0,0,0.2); | 77 | -moz-box-shadow:0px 2px 2px rgba(0,0,0,0.2); |
78 | -webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.2); | 78 | -webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.2); |
79 | box-shadow:0px 2px 2px rgba(0,0,0,0.2); | 79 | box-shadow:0px 2px 2px rgba(0,0,0,0.2); |
80 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true)"; | 80 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true)"; |
81 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true); | 81 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true); |
82 | } | 82 | } |
83 | 83 | ||
84 | .button1 span { | 84 | .button1 span { |
85 | position: absolute; | 85 | position: absolute; |
86 | left: 0; | 86 | left: 0; |
87 | top: 0; | 87 | top: 0; |
88 | width: 35px; | 88 | width: 35px; |
89 | background-color:rgba(0,0,0,0.5); | 89 | background-color:rgba(0,0,0,0.5); |
90 | 90 | ||
91 | -webkit-border-top-left-radius: 5px; | 91 | -webkit-border-top-left-radius: 5px; |
92 | -webkit-border-bottom-left-radius: 5px; | 92 | -webkit-border-bottom-left-radius: 5px; |
93 | -moz-border-radius-topleft: 5px; | 93 | -moz-border-radius-topleft: 5px; |
94 | -moz-border-radius-bottomleft: 5px; | 94 | -moz-border-radius-bottomleft: 5px; |
95 | border-top-left-radius: 5px; | 95 | border-top-left-radius: 5px; |
96 | border-bottom-left-radius: 5px; | 96 | border-bottom-left-radius: 5px; |
97 | border-right: 1px solid rgba(0,0,0,0.15); | 97 | border-right: 1px solid rgba(0,0,0,0.15); |
98 | } | 98 | } |
99 | 99 | ||
100 | .button1:hover span, .button1.active span { | 100 | .button1:hover span, .button1.active span { |
101 | background-color:rgb(0,102,26); | 101 | background-color:rgb(0,102,26); |
102 | border-right: 1px solid rgba(0,0,0,0.3); | 102 | border-right: 1px solid rgba(0,0,0,0.3); |
103 | } | 103 | } |
104 | 104 | ||
105 | .button1:active { | 105 | .button1:active { |
106 | margin-top: 2px; | 106 | margin-top: 2px; |
107 | margin-bottom: 13px; | 107 | margin-bottom: 13px; |
108 | 108 | ||
109 | -moz-box-shadow:0px 1px 0px rgba(255,255,255,0.5); | 109 | -moz-box-shadow:0px 1px 0px rgba(255,255,255,0.5); |
110 | -webkit-box-shadow:0px 1px 0px rgba(255,255,255,0.5); | 110 | -webkit-box-shadow:0px 1px 0px rgba(255,255,255,0.5); |
111 | box-shadow:0px 1px 0px rgba(255,255,255,0.5); | 111 | box-shadow:0px 1px 0px rgba(255,255,255,0.5); |
112 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true)"; | 112 | -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true)"; |
113 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true); | 113 | filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true); |
114 | } | 114 | } |
115 | 115 | ||
116 | .button1.turquoise { | 116 | .button1.turquoise { |
117 | background: #449d44; | 117 | background: #449d44; |
118 | } | 118 | } |
119 | 119 | ||
120 | </style> | 120 | </style> |
121 | <div class="col-xs-12 col-md-11"> | 121 | <div class="col-xs-12 col-md-11"> |
122 | <div class="row" style="margin-left:0px"> | 122 | <div class="row" style="margin-left:0px"> |
123 | <div class="col-md-12"> | 123 | <div class="col-md-12"> |
124 | <div class="widget"> | 124 | <div class="widget"> |
125 | <div class="widget-header"> | 125 | <div class="widget-header"> |
126 | <i class="fa fa-building-o" aria-hidden="true"></i> | 126 | <i class="fa fa-building-o" aria-hidden="true"></i> |
127 | <h3>Antioch Flight Department</h3> | 127 | <h3>Antioch Flight Department</h3> |
128 | <i class="fa fa-times timess" ui-sref="app.customers" aria-hidden="true"></i> | 128 | <i class="fa fa-times timess" ui-sref="app.customers" aria-hidden="true"></i> |
129 | </div> | 129 | </div> |
130 | <!-- /widget-header --> | 130 | <!-- /widget-header --> |
131 | <div class="widget-content"> | 131 | <div class="widget-content"> |
132 | <div class="row" style="margin-left:0px"> | 132 | <div class="row" style="margin-left:0px"> |
133 | <div class="col-md-6"> | 133 | <div class="col-md-6"> |
134 | <div class="widget"> | 134 | <div class="widget"> |
135 | <div class="widget-header"> | 135 | <div class="widget-header"> |
136 | <i class="fa fa-building-o" aria-hidden="true"></i> | 136 | <i class="fa fa-building-o" aria-hidden="true"></i> |
137 | <h3>Company Details</h3> | 137 | <h3>Company Details</h3> |
138 | <label>BASE ICAO</label> | ||
139 | <input type="tel" ng-model="companyData.baseIcao" style="line-height: 18px;width: 50px;padding: 0px 9px;" ng-blur="editData()"/> | ||
138 | <div class="pull-right my-toggle-switch" style="margin-top: 10px; margin-right: 10px;"> | 140 | <div class="pull-right my-toggle-switch" style="margin-top: 10px; margin-right: 10px;"> |
139 | <div><input id="company-one2" checked type="checkbox" data-size="mini" data-width="55" data-toggle="toggle" data-on="Active" data-off="Dactive"> | 141 | <div><input id="company-one2" checked type="checkbox" data-size="mini" data-width="55" data-toggle="toggle" data-on="Active" data-off="Dactive"> |
140 | </div> | 142 | </div> |
141 | </div> | 143 | </div> |
142 | </div> | 144 | </div> |
143 | <div class="widget-content"> | 145 | <div class="widget-content"> |
144 | <div class="row" style="margin-left:0px;"> | 146 | <div class="row" style="margin-left:0px;"> |
145 | <div class="col-md-7" style="padding-left: 0;"> | 147 | <div class="col-md-7" style="padding-left: 0;"> |
146 | <h4 ng-show="showCompanyName"> | 148 | <h4 ng-show="showCompanyName"> |
147 | <b style="color:#F90;">{{companyData.companyName}}</b> <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i> | 149 | <b style="color:#F90;">{{companyData.companyName}}</b> <i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i> |
148 | </h4> | 150 | </h4> |
149 | <input type="tel" ng-hide="showCompanyName" ng-model="companyData.companyName" class="form-control" ng-blur="editData('showCompanyName')"/> | 151 | <input type="tel" ng-hide="showCompanyName" ng-model="companyData.companyName" class="form-control" ng-blur="editData('showCompanyName')"/> |
150 | </div> | 152 | </div> |
151 | <div class="col-md-5"> | 153 | <div class="col-md-5"> |
152 | <select class="form-control" style="padding: 4px 8px;background: #ebebeb;" ng-model="companyData.certificateType" ng-click="editData()"> | 154 | <select class="form-control" style="padding: 4px 8px;background: #ebebeb;" ng-model="companyData.certificateType" ng-click="editData()"> |
153 | <option class="optionclass" disabled selected>Certificate Type</option> | 155 | <option class="optionclass" disabled selected>Certificate Type</option> |
154 | <option class="optionclass" value="corporate">Part 91 (Corporate)</option> | 156 | <option class="optionclass" value="corporate">Part 91 (Corporate)</option> |
155 | <option class="optionclass" value="charter">Part 135 (Charter)</option> | 157 | <option class="optionclass" value="charter">Part 135 (Charter)</option> |
156 | <option class="optionclass" value="scheduled">Part 121 (Scheduled)</option> | 158 | <option class="optionclass" value="scheduled">Part 121 (Scheduled)</option> |
157 | <option class="optionclass" value="military">Military</option> | 159 | <option class="optionclass" value="military">Military</option> |
158 | <option class="optionclass" value="government">Government</option> | 160 | <option class="optionclass" value="government">Government</option> |
159 | </select> | 161 | </select> |
160 | </div> | 162 | </div> |
161 | </div> | 163 | </div> |
162 | <div> | 164 | <div> |
163 | <p class="new-label"> | 165 | <p class="new-label"> |
164 | <span>Master Margin Setting </span> | 166 | <span>Master Margin Setting </span> |
165 | <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-model="companyData.masterMargin" ng-click="editData()"> | 167 | <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-model="companyData.masterMargin" ng-click="editData()"> |
166 | <option value="margin1">Margin1</option> | 168 | <option value="margin1">Margin1</option> |
167 | <option value="margin2">Margin2</option> | 169 | <option value="margin2">Margin2</option> |
168 | <option value="vendorsonly">Vendors Only</option> | 170 | <option value="vendorsonly">Vendors Only</option> |
169 | <option value="margintenants">Margin Tenants</option> | 171 | <option value="margintenants">Margin Tenants</option> |
170 | </select> | 172 | </select> |
171 | <span> See Aircrart List</span> | 173 | <span> See Aircrart List</span> |
172 | <div class="clearfix"></div> | 174 | <div class="clearfix"></div> |
173 | </p> | 175 | </p> |
174 | </div> | 176 | </div> |
175 | <div class="row" style="margin-left:0px;"> | 177 | <div class="row" style="margin-left:0px;"> |
176 | <div class="col-md-5" style="padding-left: 0;"> | 178 | <div class="col-md-5" style="padding-left: 0;"> |
177 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.baseTenant"> Tenant/Base Customer | 179 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.baseTenant"> Tenant/Base Customer |
178 | </div> | 180 | </div> |
179 | <div class="col-md-5" style="padding-left: 0;"> | 181 | <div class="col-md-5" style="padding-left: 0;"> |
180 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.fuelerlinxCustomer"> FuelerLinx Customer | 182 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.fuelerlinxCustomer"> FuelerLinx Customer |
181 | </div> | 183 | </div> |
182 | </div> | 184 | </div> |
183 | <div> | 185 | <div> |
184 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.contractFuelVendor"> CAA Member | 186 | <input type="checkbox" name="" ng-click="editData()" ng-model="companyData.contractFuelVendor"> CAA Member |
185 | </div> | 187 | </div> |
186 | </br> | 188 | </br> |
187 | <div class="new-address"> | 189 | <div class="new-address"> |
188 | <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{companyData.addressOne}} {{companyData.addressTwo}} <i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p> | 190 | <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{companyData.addressOne}} {{companyData.addressTwo}} <i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p> |
189 | 191 | ||
190 | <div ng-hide="showAddress"> | 192 | <div ng-hide="showAddress"> |
191 | <label>Address1</label> | 193 | <label>Address1</label> |
192 | <input type="tel" ng-hide="showAddress" ng-model="companyData.addressOne" class="form-control" ng-blur="editData('showAddress')"/> | 194 | <input type="tel" ng-hide="showAddress" ng-model="companyData.addressOne" class="form-control" ng-blur="editData('showAddress')"/> |
193 | <label>Address2</label> | 195 | <label>Address2</label> |
194 | <input type="tel" ng-hide="showAddress" ng-model="companyData.addressTwo" class="form-control" ng-blur="editData('showAddress')"/> | 196 | <input type="tel" ng-hide="showAddress" ng-model="companyData.addressTwo" class="form-control" ng-blur="editData('showAddress')"/> |
195 | </div> | 197 | </div> |
196 | 198 | ||
197 | <p><i class="fa fa-phone"></i> (310) 2342-3433 <i class="fa fa-pencil-square-o" aria-hidden="true"></i></p> | 199 | <p><i class="fa fa-phone"></i> (310) 2342-3433 <i class="fa fa-pencil-square-o" aria-hidden="true"></i></p> |
198 | <p><i class="fa fa-envelope"></i> freed@gmail.com <i class="fa fa-pencil-square-o" aria-hidden="true"></i></p> | 200 | <p><i class="fa fa-envelope"></i> freed@gmail.com <i class="fa fa-pencil-square-o" aria-hidden="true"></i></p> |
199 | </div> | 201 | </div> |
200 | <div class="new-add-select"> | 202 | <div class="new-add-select"> |
201 | <select class="form-control" style="background: #ebebeb;padding: 4px 8px;width: 115px;"> | 203 | <select class="form-control" style="background: #ebebeb;padding: 4px 8px;width: 115px;"> |
202 | <option disabled selected>Add Field</option> | 204 | <option disabled selected>Add Field</option> |
203 | <option class="optionclass">Add Phone</option> | 205 | <option class="optionclass">Add Phone</option> |
204 | <option class="optionclass">Add Email</option> | 206 | <option class="optionclass">Add Email</option> |
205 | </select> | 207 | </select> |
206 | </div> | 208 | </div> |
207 | <div> | 209 | <div> |
208 | <p style="margin-bottom: 0;"><b>Company Notes</b> <i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p> | 210 | <p style="margin-bottom: 0;"><b>Company Notes</b> <i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p> |
209 | <p ng-show="showNoteData">{{companyData.internalNote}}</p> | 211 | <p ng-show="showNoteData">{{companyData.internalNote}}</p> |
210 | <textarea name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="companyData.internalNote" ng-blur="editData('showNoteData')" rows="4" cols="34"></textarea> | 212 | <textarea name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="companyData.internalNote" ng-blur="editData('showNoteData')" rows="4" cols="34"></textarea> |
211 | </div> | 213 | </div> |
212 | <div class="dis"> | 214 | <div class="dis"> |
213 | <button type="button" class="btn btn-primary">Distribute Price to Company Contacts</button> | 215 | <button type="button" data-toggle="modal" data-target="#distribute-modal-3" class="btn btn-primary">Distribute Price to Company Contacts</button> |
214 | </div> | 216 | </div> |
215 | <div><button type="button" class="btn btn-info">Setup Fuel</button></div> | 217 | <div><button type="button" class="btn btn-info">Setup Fuel</button></div> |
216 | </div> | 218 | </div> |
217 | </div> | 219 | </div> |
218 | </div> | 220 | </div> |
219 | <div class="col-md-6"> | 221 | <div class="col-md-6"> |
220 | <div class="widget"> | 222 | <div class="widget"> |
221 | <div class="widget-header"> | 223 | <div class="widget-header"> |
222 | <i class="fa fa-plane"></i> | 224 | <i class="fa fa-plane"></i> |
223 | <h3>Aircraft List</h3> | 225 | <h3>Aircraft List</h3> |
224 | <div class="pull-right"> | 226 | <div class="pull-right"> |
225 | <button type="submit" class="btn btn-success btn-sm" data-toggle="modal" data-target="#aircraft-modal-3" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Aircraft</button> | 227 | <button type="submit" class="btn btn-success btn-sm" data-toggle="modal" data-target="#aircraft-modal-3" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Aircraft</button> |
226 | </div> | 228 | </div> |
227 | </div> | 229 | </div> |
228 | <div class="widget-content" style="padding:0px"> | 230 | <div class="widget-content" style="padding:0px"> |
229 | <div class="table-responsive"> | 231 | <div class="table-responsive"> |
230 | <table class="table table-bordered table-hover table-striped"> | 232 | <table class="table table-bordered table-hover table-striped"> |
231 | <thead> | 233 | <thead> |
232 | <tr> | 234 | <tr> |
233 | <th>Tail #</th> | 235 | <th>Tail #</th> |
234 | <th>Make</th> | 236 | <th>Make</th> |
235 | <th>Model</th> | 237 | <th>Model</th> |
236 | <th>JET-A</th> | 238 | <th>JET-A</th> |
237 | <th>All in</th> | 239 | <th>All in</th> |
238 | <th>AVGAS</th> | 240 | <th>AVGAS</th> |
239 | <th>All in</th> | 241 | <th>All in</th> |
240 | <th></th> | 242 | <th></th> |
241 | </tr> | 243 | </tr> |
242 | </thead> | 244 | </thead> |
243 | <tbody> | 245 | <tbody> |
244 | <tr ng-repeat="aircraft in contactAircraftList"> | 246 | <tr ng-repeat="aircraft in contactAircraftList"> |
245 | <td>{{aircraft.tail}}</td> | 247 | <td>{{aircraft.tail}}</td> |
246 | <td>{{aircraft.make}}</td> | 248 | <td>{{aircraft.make}}</td> |
247 | <td>{{aircraft.model}}</td> | 249 | <td>{{aircraft.model}}</td> |
248 | <td> | 250 | <td> |
249 | <select class="form-control" style="height:31px;"> | 251 | <select class="form-control" style="height:31px;"> |
250 | <option>Margin1</option> | 252 | <option>Margin1</option> |
251 | <option>Margin2</option> | 253 | <option>Margin2</option> |
252 | </select> | 254 | </select> |
253 | </td> | 255 | </td> |
254 | <td style="color:#55AF8B;">$3659</td> | 256 | <td style="color:#55AF8B;">$3659</td> |
255 | <td> | 257 | <td> |
256 | <select class="form-control" style="height:31px;"> | 258 | <select class="form-control" style="height:31px;"> |
257 | <option>Margin1</option> | 259 | <option>Margin1</option> |
258 | <option>Margin2</option> | 260 | <option>Margin2</option> |
259 | </select> | 261 | </select> |
260 | </td> | 262 | </td> |
261 | <td style="color:#55AF8B;">$3659</td> | 263 | <td style="color:#55AF8B;">$3659</td> |
262 | <td></td> | 264 | <td></td> |
263 | </tr> | 265 | </tr> |
264 | </tbody> | 266 | </tbody> |
265 | </table> | 267 | </table> |
266 | </div> | 268 | </div> |
267 | </div> | 269 | </div> |
268 | </div> | 270 | </div> |
269 | </div> | 271 | </div> |
270 | </div> | 272 | </div> |
271 | <div class="row" style="margin-left:0px"> | 273 | <div class="row" style="margin-left:0px"> |
272 | <div class="col-md-6"> | 274 | <div class="col-md-6"> |
273 | <div class="widget"> | 275 | <div class="widget"> |
274 | <div class="widget-header"> | 276 | <div class="widget-header"> |
275 | <i class="fa fa-user"></i> | 277 | <i class="fa fa-user"></i> |
276 | <h3>Contact List</h3> | 278 | <h3>Contact List</h3> |
277 | <div class="pull-right"> | 279 | <div class="pull-right"> |
278 | <button type="submit" data-toggle="modal" data-target="#contact-modal-3" class="btn btn-success btn-sm" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Contact</button> | 280 | <button type="submit" data-toggle="modal" data-target="#contact-modal-3" class="btn btn-success btn-sm" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i> Add Contact</button> |
279 | </div> | 281 | </div> |
280 | </div> | 282 | </div> |
281 | <div class="widget-content" style="padding:0px"> | 283 | <div class="widget-content" style="padding:0px"> |
282 | <div class="table-responsive"> | 284 | <div class="table-responsive"> |
283 | <table class="table table-bordered table-hover table-striped"> | 285 | <table class="table table-bordered table-hover table-striped"> |
284 | <thead> | 286 | <thead> |
285 | <tr> | 287 | <tr> |
286 | <th>Price Email</th> | 288 | <th>Price Email</th> |
287 | <th>First Name</th> | 289 | <th>First Name</th> |
288 | <th>Last Name</th> | 290 | <th>Last Name</th> |
289 | <th>Title</th> | 291 | <th>Title</th> |
290 | </tr> | 292 | </tr> |
291 | </thead> | 293 | </thead> |
292 | <tbody> | 294 | <tbody> |
293 | <tr ng-repeat="contact in companyContactList"> | 295 | <tr ng-repeat="contact in companyContactList"> |
294 | <td><input id="toggle-one1" ng-model="contact.priceEmail" ng-true-value="true" ng-false-value="false" checked type="checkbox" data-size="mini" data-toggle="toggle"></td> | 296 | <td><input id="toggle-one1" ng-model="contact.priceEmail" ng-true-value="true" ng-false-value="false" checked type="checkbox" data-size="mini" data-toggle="toggle"></td> |
295 | <td>{{contact.firstName}}</td> | 297 | <td>{{contact.firstName}}</td> |
296 | <td>{{contact.lastName}}</td> | 298 | <td>{{contact.lastName}}</td> |
297 | <td>{{contact.title}}</td> | 299 | <td>{{contact.title}}</td> |
298 | </tr> | 300 | </tr> |
299 | </tbody> | 301 | </tbody> |
300 | </table> | 302 | </table> |
301 | </div> | 303 | </div> |
302 | </div> | 304 | </div> |
303 | </div> | 305 | </div> |
304 | </div> | 306 | </div> |
305 | <div class="col-md-6"> | 307 | <div class="col-md-6"> |
306 | <div class="widget"> | 308 | <div class="widget"> |
307 | <div class="widget-header"> | 309 | <div class="widget-header"> |
308 | <i class="fa fa-pencil"></i> | 310 | <i class="fa fa-pencil"></i> |
309 | <h3>Price Manager Reference</h3> | 311 | <h3>Price Manager Reference</h3> |
310 | </div> | 312 | </div> |
311 | <div class="widget-content"> | 313 | <div class="widget-content"> |
312 | <div class="table-responsive"> | 314 | <div class="table-responsive"> |
313 | <table class="table table-hover table-striped"> | 315 | <table class="table table-hover table-striped"> |
314 | <thead> | 316 | <thead> |
315 | <tr> | 317 | <tr> |
316 | <th>Omit</th> | 318 | <th>Omit</th> |
317 | <th>Product</th> | 319 | <th>Product</th> |
318 | <th>Cost</th> | 320 | <th>Cost</th> |
319 | <th>PAP (Margin)</th> | 321 | <th>PAP (Margin)</th> |
320 | <th>PAP (Total)</th> | 322 | <th>PAP (Total)</th> |
321 | <th style="color:#F90">Expires</th> | 323 | <th style="color:#F90">Expires</th> |
322 | </tr> | 324 | </tr> |
323 | </thead> | 325 | </thead> |
324 | <tbody> | 326 | <tbody> |
325 | <tr> | 327 | <tr> |
326 | <td><input type="checkbox"></td> | 328 | <td><input type="checkbox"></td> |
327 | <td>Jet-A Full Service</td> | 329 | <td>Jet-A Full Service</td> |
328 | <td>$2.123</td> | 330 | <td>$2.123</td> |
329 | <td>$23000</td> | 331 | <td>$23000</td> |
330 | <td style="color:#55AF8B;">$3659</td> | 332 | <td style="color:#55AF8B;">$3659</td> |
331 | <td style="color:#F90">3/15/2017</td> | 333 | <td style="color:#F90">3/15/2017</td> |
332 | </tr> | 334 | </tr> |
333 | <tr> | 335 | <tr> |
334 | <td><input type="checkbox"></td> | 336 | <td><input type="checkbox"></td> |
335 | <td>Jet-A Full Service</td> | 337 | <td>Jet-A Full Service</td> |
336 | <td>$2.123</td> | 338 | <td>$2.123</td> |
337 | <td>$23000</td> | 339 | <td>$23000</td> |
338 | <td style="color:#55AF8B;">$3659</td> | 340 | <td style="color:#55AF8B;">$3659</td> |
339 | <td style="color:#F90">3/15/2017</td> | 341 | <td style="color:#F90">3/15/2017</td> |
340 | </tr> | 342 | </tr> |
341 | <tr> | 343 | <tr> |
342 | <tr> | 344 | <tr> |
343 | <td><input type="checkbox"></td> | 345 | <td><input type="checkbox"></td> |
344 | <td>Jet-A Full Service</td> | 346 | <td>Jet-A Full Service</td> |
345 | <td>$2.123</td> | 347 | <td>$2.123</td> |
346 | <td>$23000</td> | 348 | <td>$23000</td> |
347 | <td style="color:#55AF8B;">$3659</td> | 349 | <td style="color:#55AF8B;">$3659</td> |
348 | <td style="color:#F90">3/15/2017</td> | 350 | <td style="color:#F90">3/15/2017</td> |
349 | </tr> | 351 | </tr> |
350 | <tr> | 352 | <tr> |
351 | <td><input type="checkbox"></td> | 353 | <td><input type="checkbox"></td> |
352 | <td>Jet-A Full Service</td> | 354 | <td>Jet-A Full Service</td> |
353 | <td>$2.123</td> | 355 | <td>$2.123</td> |
354 | <td>$23000</td> | 356 | <td>$23000</td> |
355 | <td style="color:#55AF8B;">$3659</td> | 357 | <td style="color:#55AF8B;">$3659</td> |
356 | <td style="color:#F90">3/15/2017</td> | 358 | <td style="color:#F90">3/15/2017</td> |
357 | </tr> | 359 | </tr> |
358 | </tbody> | 360 | </tbody> |
359 | </table> | 361 | </table> |
360 | </div> | 362 | </div> |
361 | </div> | 363 | </div> |
362 | </div> | 364 | </div> |
363 | </div> | 365 | </div> |
364 | </div> | 366 | </div> |
365 | </div> | 367 | </div> |
366 | <!-- /widget-content --> | 368 | <!-- /widget-content --> |
367 | </div> | 369 | </div> |
368 | <!-- /widget --> | 370 | <!-- /widget --> |
369 | </div> | 371 | </div> |
370 | <!-- /span6 --> | 372 | <!-- /span6 --> |
371 | </div> | 373 | </div> |
372 | <!-- /widget --> | 374 | <!-- /widget --> |
373 | </div> | 375 | </div> |
374 | <!-- /container --> | 376 | <!-- /container --> |
375 | <form class="modal multi-step" id="contact-modal-3" name="companyForm"> | 377 | <form class="modal multi-step" id="contact-modal-3" name="companyForm"> |
376 | <div class="modal-dialog modal-lg"> | 378 | <div class="modal-dialog modal-lg"> |
377 | <div class="modal-content"> | 379 | <div class="modal-content"> |
378 | <div class="modal-body step-1" data-step="1" style="padding: 0;"> | 380 | <div class="modal-body step-1" data-step="1" style="padding: 0;"> |
379 | <div> | 381 | <div> |
380 | <div class="row" style="margin: 0;"> | 382 | <div class="row" style="margin: 0;"> |
381 | <div> | 383 | <div> |
382 | <div class="widget" style="margin-bottom: 0; box-shadow: none;"> | 384 | <div class="widget" style="margin-bottom: 0; box-shadow: none;"> |
383 | <div class="widget-header"> | 385 | <div class="widget-header"> |
384 | <i class="icon-pencil"></i> | 386 | <i class="icon-pencil"></i> |
385 | <i class="fa fa-tasks" aria-hidden="true"></i> | 387 | <i class="fa fa-tasks" aria-hidden="true"></i> |
386 | <h3>Add a New Contact</h3> | 388 | <h3>Add a New Contact</h3> |
387 | <div class="clearfix"></div> | 389 | <div class="clearfix"></div> |
388 | </div> | 390 | </div> |
389 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> | 391 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> |
390 | <div class="col-xs-12"> | 392 | <div class="col-xs-12"> |
391 | <div class="col-md-6"> | 393 | <div class="col-md-6"> |
392 | <div class="pull-left" style="width: 110px;"> | 394 | <div class="pull-left" style="width: 110px;"> |
393 | <label class="new-input-label"><b>First Name</b></label> | 395 | <label class="new-input-label"><b>First Name</b></label> |
394 | </div> | 396 | </div> |
395 | <div class="pull-left" style="margin-left: 15px;"> | 397 | <div class="pull-left" style="margin-left: 15px;"> |
396 | <input type="tel" ng-model="data.firstName" class="form-control" placeholder=""> | 398 | <input type="tel" ng-model="data.firstName" class="form-control" placeholder=""> |
397 | </div> | 399 | </div> |
398 | <div class="clearfix"></div> | 400 | <div class="clearfix"></div> |
399 | </div> | 401 | </div> |
400 | <div class="col-md-6"> | 402 | <div class="col-md-6"> |
401 | 403 | ||
402 | <div class="pull-left" style="width: 110px;"> | 404 | <div class="pull-left" style="width: 110px;"> |
403 | <label class="new-input-label"><b>Last Name</b></label> | 405 | <label class="new-input-label"><b>Last Name</b></label> |
404 | </div> | 406 | </div> |
405 | <div class="pull-left" style="margin-left: 15px;"> | 407 | <div class="pull-left" style="margin-left: 15px;"> |
406 | <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder=""> | 408 | <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder=""> |
407 | </div> | 409 | </div> |
408 | <div class="clearfix"></div> | 410 | <div class="clearfix"></div> |
409 | </div> | 411 | </div> |
410 | </div> | 412 | </div> |
411 | <div class="clearfix"></div><br> | 413 | <div class="clearfix"></div><br> |
412 | <div class="col-xs-12"> | 414 | <div class="col-xs-12"> |
413 | <div class="col-md-6"> | 415 | <div class="col-md-6"> |
414 | <div class="pull-left" style="width: 110px;"> | 416 | <div class="pull-left" style="width: 110px;"> |
415 | <label class="new-input-label"><b>Title</b></label> | 417 | <label class="new-input-label"><b>Title</b></label> |
416 | </div> | 418 | </div> |
417 | <div class="pull-left" style="margin-left: 15px;"> | 419 | <div class="pull-left" style="margin-left: 15px;"> |
418 | <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder=""> | 420 | <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder=""> |
419 | </div> | 421 | </div> |
420 | <div class="clearfix"></div> | 422 | <div class="clearfix"></div> |
421 | </div> | 423 | </div> |
422 | <div class="col-md-6"> | 424 | <div class="col-md-6"> |
423 | 425 | ||
424 | <div class="pull-left" style="width: 110px;"> | 426 | <div class="pull-left" style="width: 110px;"> |
425 | <label class="new-input-label"><b>Email</b></label> | 427 | <label class="new-input-label"><b>Email</b></label> |
426 | </div> | 428 | </div> |
427 | <div class="pull-left" style="margin-left: 15px;"> | 429 | <div class="pull-left" style="margin-left: 15px;"> |
428 | <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder=""> | 430 | <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder=""> |
429 | </div> | 431 | </div> |
430 | <div class="clearfix"></div> | 432 | <div class="clearfix"></div> |
431 | </div> | 433 | </div> |
432 | </div> | 434 | </div> |
433 | <div class="clearfix"></div><br> | 435 | <div class="clearfix"></div><br> |
434 | <div class="col-xs-12"> | 436 | <div class="col-xs-12"> |
435 | <div class="col-md-6"> | 437 | <div class="col-md-6"> |
436 | <div class="pull-left" style="width: 110px;"> | 438 | <div class="pull-left" style="width: 110px;"> |
437 | <label class="new-input-label"><b>Username</b></label> | 439 | <label class="new-input-label"><b>Username</b></label> |
438 | </div> | 440 | </div> |
439 | <div class="pull-left" style="margin-left: 15px;"> | 441 | <div class="pull-left" style="margin-left: 15px;"> |
440 | <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder=""> | 442 | <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder=""> |
441 | </div> | 443 | </div> |
442 | <div class="clearfix"></div> | 444 | <div class="clearfix"></div> |
443 | </div> | 445 | </div> |
444 | <div class="col-md-6"> | 446 | <div class="col-md-6"> |
445 | 447 | ||
446 | <div class="pull-left" style="width: 110px;"> | 448 | <div class="pull-left" style="width: 110px;"> |
447 | <label class="new-input-label"><b>Password</b></label> | 449 | <label class="new-input-label"><b>Password</b></label> |
448 | </div> | 450 | </div> |
449 | <div class="pull-left" style="margin-left: 15px;"> | 451 | <div class="pull-left" style="margin-left: 15px;"> |
450 | <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder=""> | 452 | <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder=""> |
451 | </div> | 453 | </div> |
452 | <div class="clearfix"></div> | 454 | <div class="clearfix"></div> |
453 | </div> | 455 | </div> |
454 | </div> | 456 | </div> |
455 | <div class="clearfix"></div><br> | 457 | <div class="clearfix"></div><br> |
456 | <div class="col-xs-12"> | 458 | <div class="col-xs-12"> |
457 | <div class="col-md-6"> | 459 | <div class="col-md-6"> |
458 | <div class="pull-left" style="width: 110px;"> | 460 | <div class="pull-left" style="width: 110px;"> |
459 | <label class="new-input-label"><b>Work Phone</b></label> | 461 | <label class="new-input-label"><b>Work Phone</b></label> |
460 | </div> | 462 | </div> |
461 | <div class="pull-left" style="margin-left: 15px;"> | 463 | <div class="pull-left" style="margin-left: 15px;"> |
462 | <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder=""> | 464 | <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder=""> |
463 | </div> | 465 | </div> |
464 | <div class="clearfix"></div> | 466 | <div class="clearfix"></div> |
465 | </div> | 467 | </div> |
466 | <div class="col-md-6"> | 468 | <div class="col-md-6"> |
467 | 469 | ||
468 | <div class="pull-left" style="width: 110px;"> | 470 | <div class="pull-left" style="width: 110px;"> |
469 | <label class="new-input-label"><b>Mobile Phone</b></label> | 471 | <label class="new-input-label"><b>Mobile Phone</b></label> |
470 | </div> | 472 | </div> |
471 | <div class="pull-left" style="margin-left: 15px;"> | 473 | <div class="pull-left" style="margin-left: 15px;"> |
472 | <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder=""> | 474 | <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder=""> |
473 | </div> | 475 | </div> |
474 | <div class="clearfix"></div> | 476 | <div class="clearfix"></div> |
475 | </div> | 477 | </div> |
476 | </div> | 478 | </div> |
477 | <div class="clearfix"></div><br> | 479 | <div class="clearfix"></div><br> |
478 | <div class="col-xs-12"> | 480 | <div class="col-xs-12"> |
479 | <div class="col-md-12"> | 481 | <div class="col-md-12"> |
480 | <div class="pull-left" style="width: 110px;"> | 482 | <div class="pull-left" style="width: 110px;"> |
481 | <label class="new-input-label"><b>Address</b></label> | 483 | <label class="new-input-label"><b>Address</b></label> |
482 | </div> | 484 | </div> |
483 | <div class="pull-right" style="width: calc(100% - 123px);"> | 485 | <div class="pull-right" style="width: calc(100% - 123px);"> |
484 | <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder=""> | 486 | <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder=""> |
485 | </div> | 487 | </div> |
486 | <div class="clearfix"></div> | 488 | <div class="clearfix"></div> |
487 | </div> | 489 | </div> |
488 | </div> | 490 | </div> |
489 | <div class="clearfix"></div> | 491 | <div class="clearfix"></div> |
490 | <br/> | 492 | <br/> |
491 | <div class="col-xs-12"> | 493 | <div class="col-xs-12"> |
492 | <div class="col-md-3"> | 494 | <div class="col-md-3"> |
493 | <div class="pull-left my-toggle-switch"> | 495 | <div class="pull-left my-toggle-switch"> |
494 | <div style="color: #ff9a01;">Price Email     | 496 | <div style="color: #ff9a01;">Price Email     |
495 | <input id="price-one2" checked type="checkbox" data-size="mini" data-width="55" data-toggle="toggle" data-on="On" data-off="Off"> | 497 | <input id="price-one2" checked type="checkbox" data-size="mini" data-width="55" data-toggle="toggle" data-on="On" data-off="Off"> |
496 | </div> | 498 | </div> |
497 | </div> | 499 | </div> |
498 | <div class="clearfix"></div> | 500 | <div class="clearfix"></div> |
499 | </div> | 501 | </div> |
500 | <div class="col-md-3"> | 502 | <div class="col-md-3"> |
501 | <div class="pull-left my-toggle-switch"> | 503 | <div class="pull-left my-toggle-switch"> |
502 | <div style="color: #ff9a01;">Primary Contact     | 504 | <div style="color: #ff9a01;">Primary Contact     |
503 | <input type="checkbox" ng-model="data.primaryContact"> | 505 | <input type="checkbox" ng-model="data.primaryContact"> |
504 | </div> | 506 | </div> |
505 | </div> | 507 | </div> |
506 | <div class="clearfix"></div> | 508 | <div class="clearfix"></div> |
507 | </div> | 509 | </div> |
508 | <div class="col-md-6"> | 510 | <div class="col-md-6"> |
509 | <div class="pull-left" style="width: 110px;"> | 511 | <div class="pull-left" style="width: 110px;"> |
510 | <label class="new-input-label"><b>Internal Note</b></label> | 512 | <label class="new-input-label"><b>Internal Note</b></label> |
511 | </div> | 513 | </div> |
512 | <div class="pull-left" style="width: calc(100% - 110px);"> | 514 | <div class="pull-left" style="width: calc(100% - 110px);"> |
513 | <textarea name="message" ng-model="data.note" rows="4" cols="34"></textarea> | 515 | <textarea name="message" ng-model="data.note" rows="4" cols="34"></textarea> |
514 | </div> | 516 | </div> |
515 | </div> | 517 | </div> |
516 | <div class="clearfix"></div> | 518 | <div class="clearfix"></div> |
517 | </div> | 519 | </div> |
518 | <div class="clearfix"></div><br> | 520 | <div class="clearfix"></div><br> |
519 | </div> | 521 | </div> |
520 | </div> | 522 | </div> |
521 | <div class="clearfix"></div> | 523 | <div class="clearfix"></div> |
522 | </div> | 524 | </div> |
523 | </div> | 525 | </div> |
524 | </div> | 526 | </div> |
525 | </div> | 527 | </div> |
526 | <div class="modal-footer" style="border-top: 0;"> | 528 | <div class="modal-footer" style="border-top: 0;"> |
527 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> | 529 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
528 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button> | 530 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button> |
529 | </div> | 531 | </div> |
530 | </div> | 532 | </div> |
531 | </div> | 533 | </div> |
532 | </form> | 534 | </form> |
533 | <div class="clearfix"></div> | 535 | <div class="clearfix"></div> |
534 | 536 | ||
535 | <form class="modal multi-step" id="aircraft-modal-3" name="aircraftForm"> | 537 | <form class="modal multi-step" id="aircraft-modal-3" name="aircraftForm"> |
536 | <div class="modal-dialog modal-lg"> | 538 | <div class="modal-dialog modal-lg"> |
537 | <div class="modal-content"> | 539 | <div class="modal-content"> |
538 | <div class="modal-body step-2" data-step="2" style="padding: 0;"> | 540 | <div class="modal-body step-2" data-step="2" style="padding: 0;"> |
539 | <div> | 541 | <div> |
540 | <div class="row" style="margin: 0;"> | 542 | <div class="row" style="margin: 0;"> |
541 | <div> | 543 | <div> |
542 | <div class="widget" style="margin-bottom: 0;box-shadow: none;"> | 544 | <div class="widget" style="margin-bottom: 0;box-shadow: none;"> |
543 | <div class="widget-header"> | 545 | <div class="widget-header"> |
544 | <i class="icon-pencil"></i> | 546 | <i class="icon-pencil"></i> |
545 | <i class="fa fa-tasks" aria-hidden="true"></i> | 547 | <i class="fa fa-tasks" aria-hidden="true"></i> |
546 | <h3>Add a New Aircraft</h3> | 548 | <h3>Add a New Aircraft</h3> |
547 | <div class="clearfix"></div> | 549 | <div class="clearfix"></div> |
548 | </div> | 550 | </div> |
549 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> | 551 | <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;"> |
550 | <div class="col-xs-12"> | 552 | <div class="col-xs-12"> |
551 | <div class="widget-header"> | 553 | <div class="widget-header"> |
552 | <i class="fa fa-list"></i> | 554 | <i class="fa fa-list"></i> |
553 | <h3>Aircraft List</h3> | 555 | <h3>Aircraft List</h3> |
554 | </div> | 556 | </div> |
555 | <div class="widget-content" style="padding:0px;border: 0px; padding: 0px !important;"> | 557 | <div class="widget-content" style="padding:0px;border: 0px; padding: 0px !important;"> |
556 | <div class="table-responsive"> | 558 | <div class="table-responsive"> |
557 | <table class="table table-striped table-bordered"> | 559 | <table class="table table-striped table-bordered"> |
558 | <thead> | 560 | <thead> |
559 | <tr> | 561 | <tr> |
560 | <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> --> | 562 | <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> --> |
561 | <th>Tail</th> | 563 | <th>Tail</th> |
562 | <th>Make</th> | 564 | <th>Make</th> |
563 | <th>Model</th> | 565 | <th>Model</th> |
564 | <th>Size</th> | 566 | <th>Size</th> |
565 | </tr> | 567 | </tr> |
566 | </thead> | 568 | </thead> |
567 | <tbody> | 569 | <tbody> |
568 | <tr ng-repeat="aircraftData in aircraftDetails track by $index"> | 570 | <tr ng-repeat="aircraftData in aircraftDetails track by $index"> |
569 | <!-- <td> | 571 | <!-- <td> |
570 | <input type="checkbox" ng-model="aircraftData.selected"/> | 572 | <input type="checkbox" ng-model="aircraftData.selected"/> |
571 | </td> --> | 573 | </td> --> |
572 | <td style="width: 20%"> | 574 | <td style="width: 20%"> |
573 | <input type="tel" class="form-control" ng-model="aircraftData.tail" required/> | 575 | <input type="tel" class="form-control" ng-model="aircraftData.tail" required/> |
574 | </td> | 576 | </td> |
575 | <td style="width: 20%"> | 577 | <td style="width: 20%"> |
576 | <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)"> | 578 | <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)"> |
577 | <option ng-repeat="make in aircraftMakeList">{{make}}</option> | 579 | <option ng-repeat="make in aircraftMakeList">{{make}}</option> |
578 | </select> | 580 | </select> |
579 | </td> | 581 | </td> |
580 | <td style="width: 20%"> | 582 | <td style="width: 20%"> |
581 | <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)"> | 583 | <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)"> |
582 | <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option> | 584 | <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option> |
583 | </select> | 585 | </select> |
584 | </td> | 586 | </td> |
585 | <td style="width: 20%"> | 587 | <td style="width: 20%"> |
586 | <select class="form-control" ng-model="aircraftData.size"> | 588 | <select class="form-control" ng-model="aircraftData.size"> |
587 | <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option> | 589 | <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option> |
588 | </select> | 590 | </select> |
589 | </td> | 591 | </td> |
590 | </tr> | 592 | </tr> |
591 | </tbody> | 593 | </tbody> |
592 | </table> | 594 | </table> |
593 | </div> | 595 | </div> |
594 | <div class="clearfix"></div> | 596 | <div class="clearfix"></div> |
595 | </div> | 597 | </div> |
596 | </div> | 598 | </div> |
597 | <div class="clearfix"></div> | 599 | <div class="clearfix"></div> |
598 | <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;"> | 600 | <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;"> |
599 | <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button> | 601 | <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button> |
600 | </div> | 602 | </div> |
601 | </div> | 603 | </div> |
602 | </div> | 604 | </div> |
603 | <div class="clearfix"></div> | 605 | <div class="clearfix"></div> |
604 | </div> | 606 | </div> |
605 | </div> | 607 | </div> |
606 | </div> | 608 | </div> |
607 | </div> | 609 | </div> |
608 | <div class="modal-footer" style="border-top: 0;"> | 610 | <div class="modal-footer" style="border-top: 0;"> |
609 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> | 611 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> |
610 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="saveCompanyData()">Save</button> | 612 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="saveCompanyData()">Save</button> |
611 | </div> | 613 | </div> |
612 | </div> | 614 | </div> |
613 | </div> | 615 | </div> |
614 | </form> | 616 | </form> |
617 | |||
618 | <form class="modal multi-step" id="distribute-modal-3" name="aircraftForm"> | ||
619 | <div class="modal-dialog"> | ||
620 | <div class="modal-content"> | ||
621 | <div class="modal-body step-2" data-step="2" style="padding: 0;"> | ||
622 | <div> | ||
623 | <div class="row" style="margin: 0;"> | ||
624 | <p>Are you sure that you want to email pricing to everyone in your contact list</p> | ||
625 | </div> | ||
626 | </div> | ||
627 | </div> | ||
628 | <div class="modal-footer" style="border-top: 0;"> | ||
629 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> | ||
630 | <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="sendMail()">Save</button> | ||
631 | </div> | ||
632 | </div> | ||
633 | </div> | ||
634 | </form> | ||
615 | <!-- Le javascript | 635 | <!-- Le javascript |
616 | ================================================== --> | 636 | ================================================== --> |
617 | <!-- Placed at the end of the document so the pages load faster --> | 637 | <!-- Placed at the end of the document so the pages load faster --> |
618 | <!-- <script | 638 | <!-- <script |
619 | CKEDITOR.replace( 'editor2', { | 639 | CKEDITOR.replace( 'editor2', { |
620 | height: 250, | 640 | height: 250, |
621 | extraPlugins: 'divarea' | 641 | extraPlugins: 'divarea' |
622 | } ); | 642 | } ); |
623 | </script> --> | 643 | </script> --> |
624 | 644 |
app/partials/viewCompany/viewCompany.service.js
1 | (function(){ | 1 | (function(){ |
2 | 'use strict'; | 2 | 'use strict'; |
3 | angular.module('acufuel') | 3 | angular.module('acufuel') |
4 | .service('ViewCompanyService', ['$q', '$http', 'BASE_URL', ViewCompanyService]); | 4 | .service('ViewCompanyService', ['$q', '$http', 'BASE_URL', ViewCompanyService]); |
5 | 5 | ||
6 | function ViewCompanyService($q, $http, BASE_URL) { | 6 | function ViewCompanyService($q, $http, BASE_URL) { |
7 | 7 | ||
8 | this.getCompany = function(id) { | 8 | this.getCompany = function(id) { |
9 | 9 | ||
10 | var deferred = $q.defer(); | 10 | var deferred = $q.defer(); |
11 | $http({ | 11 | $http({ |
12 | method : 'GET', | 12 | method : 'GET', |
13 | url : BASE_URL.url +'/company/'+id, | 13 | url : BASE_URL.url +'/company/'+id, |
14 | headers : {'Content-Type': 'application/json'}, | 14 | headers : {'Content-Type': 'application/json'}, |
15 | }) | 15 | }) |
16 | .then(function (result){ | 16 | .then(function (result){ |
17 | deferred.resolve(result.data); | 17 | deferred.resolve(result.data); |
18 | },function (result){ | 18 | },function (result){ |
19 | deferred.resolve(result.data); | 19 | deferred.resolve(result.data); |
20 | }) | 20 | }) |
21 | return deferred.promise; | 21 | return deferred.promise; |
22 | } | 22 | } |
23 | 23 | ||
24 | this.getContact = function(id) { | 24 | this.getContact = function(id) { |
25 | 25 | ||
26 | var deferred = $q.defer(); | 26 | var deferred = $q.defer(); |
27 | $http({ | 27 | $http({ |
28 | method : 'GET', | 28 | method : 'GET', |
29 | url : BASE_URL.url +'/company/contact/'+id, | 29 | url : BASE_URL.url +'/company/contact/'+id, |
30 | headers : {'Content-Type': 'application/json'}, | 30 | headers : {'Content-Type': 'application/json'}, |
31 | }) | 31 | }) |
32 | .then(function (result){ | 32 | .then(function (result){ |
33 | deferred.resolve(result.data); | 33 | deferred.resolve(result.data); |
34 | },function (result){ | 34 | },function (result){ |
35 | deferred.resolve(result.data); | 35 | deferred.resolve(result.data); |
36 | }) | 36 | }) |
37 | return deferred.promise; | 37 | return deferred.promise; |
38 | } | 38 | } |
39 | 39 | ||
40 | this.addContact = function(data) { | 40 | this.addContact = function(data) { |
41 | 41 | ||
42 | var deferred = $q.defer(); | 42 | var deferred = $q.defer(); |
43 | $http({ | 43 | $http({ |
44 | method : 'POST', | 44 | method : 'POST', |
45 | url : BASE_URL.url +'/company/add/contact', | 45 | url : BASE_URL.url +'/company/add/contact', |
46 | data : data, | 46 | data : data, |
47 | headers : {'Content-Type': 'application/json'}, | 47 | headers : {'Content-Type': 'application/json'}, |
48 | }) | 48 | }) |
49 | .then(function (result){ | 49 | .then(function (result){ |
50 | deferred.resolve(result.data); | 50 | deferred.resolve(result.data); |
51 | },function (result){ | 51 | },function (result){ |
52 | deferred.resolve(result.data); | 52 | deferred.resolve(result.data); |
53 | }) | 53 | }) |
54 | return deferred.promise; | 54 | return deferred.promise; |
55 | } | 55 | } |
56 | 56 | ||
57 | this.sendMail = function(id) { | ||
58 | |||
59 | var deferred = $q.defer(); | ||
60 | $http({ | ||
61 | method : 'POST', | ||
62 | url : BASE_URL.url +'/mailPriceToContacts/'+id, | ||
63 | headers : {'Content-Type': 'application/json'}, | ||
64 | }) | ||
65 | .then(function (result){ | ||
66 | deferred.resolve(result.data); | ||
67 | },function (result){ | ||
68 | deferred.resolve(result.data); | ||
69 | }) | ||
70 | return deferred.promise; | ||
71 | } | ||
72 | |||
57 | this.updateContact = function(data) { | 73 | this.updateContact = function(data) { |
58 | 74 | ||
59 | var deferred = $q.defer(); | 75 | var deferred = $q.defer(); |
60 | $http({ | 76 | $http({ |
61 | method : 'PUT', | 77 | method : 'PUT', |
62 | url : BASE_URL.url +'/company', | 78 | url : BASE_URL.url +'/company', |
63 | data : data, | 79 | data : data, |
64 | headers : {'Content-Type': 'application/json'}, | 80 | headers : {'Content-Type': 'application/json'}, |
65 | }) | 81 | }) |
66 | .then(function (result){ | 82 | .then(function (result){ |
67 | deferred.resolve(result.data); | 83 | deferred.resolve(result.data); |
68 | },function (result){ | 84 | },function (result){ |
69 | deferred.resolve(result.data); | 85 | deferred.resolve(result.data); |
70 | }) | 86 | }) |
71 | return deferred.promise; | 87 | return deferred.promise; |
72 | } | 88 | } |
73 | 89 | ||
74 | this.getAircraft = function(id) { | 90 | this.getAircraft = function(id) { |
75 | 91 | ||
76 | var deferred = $q.defer(); | 92 | var deferred = $q.defer(); |
77 | $http({ | 93 | $http({ |
78 | method : 'GET', | 94 | method : 'GET', |
79 | url : BASE_URL.url +'/company/aircrafts/'+id, | 95 | url : BASE_URL.url +'/company/aircrafts/'+id, |
80 | headers : {'Content-Type': 'application/json'}, | 96 | headers : {'Content-Type': 'application/json'}, |
81 | }) | 97 | }) |
82 | .then(function (result){ | 98 | .then(function (result){ |
83 | deferred.resolve(result.data); | 99 | deferred.resolve(result.data); |
84 | },function (result){ | 100 | },function (result){ |
85 | deferred.resolve(result.data); | 101 | deferred.resolve(result.data); |
86 | }) | 102 | }) |
87 | return deferred.promise; | 103 | return deferred.promise; |
88 | } | 104 | } |
89 | 105 | ||
90 | } | 106 | } |
91 | 107 | ||
92 | })(); | 108 | })(); |