Blame view

app/partials/viewCompany/viewCompany.html 42.5 KB
feacde5ff   Rishav   setup acuefuel in...
1
2
3
4
  <style>
     .subnavbar .mainnav > li:nth-child(3) > a{
     color: #ff9900;
     }
4bb02bb84   Rishav   new integration w...
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
     .widget-content{
        padding: 10px !important;
     }
     .widget-content input[type="text"], .widget-content select{
        height: 31px;
        padding: 0;
     }
     .new-label span{
        float: left;
        line-height: 31px;
     }
     .new-label span:first-child{
        margin-right: 5px;
        font-weight: bold;
     }
     .new-label span:last-child{
        margin-left: 5px;
     }
     .new-label select{
        display: -webkit-inline-box;
        display: inline-box;
        float: left;
     }
     .new-address p{
        margin-bottom: 0;
     }
     .new-add-select{
        padding-left: 15px;
        margin: 10px 0;
     }
     .new-add-select select{
        width: 100px;
     }
     .widget{
        -moz-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7);
        -webkit-box-shadow: 0px 3px 8px rgba(100,100,100, 0.7);
        box-shadow: 0px 3px 8px rgba(100,100,100, 0.7);
     }
     .optionclass {
        background: #fff;
     }
     .timess {
        float: right !important;
        margin-top: 10px !important;
        margin-right: 10px !important;
        color: #999 !important;
        cursor: pointer !important;
     }
b1f6160d4   Rishav   add contact and a...
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
  
     .button1 {
       display: inline-block;
       height: 35px;
       line-height: 35px;
       padding-right: 15px;
       padding-left: 50px;
       position: relative;
       background-color:rgb(41,127,184);
       color:rgb(255,255,255);
       text-decoration: none;
       text-transform: uppercase;
       letter-spacing: 1px;
       margin-bottom: 15px;
       border: 0;
       
       
          border-radius: 5px;
          -moz-border-radius: 5px;
          -webkit-border-radius: 5px;
          text-shadow:0px 1px 0px rgba(0,0,0,0.5);
        -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true)";zoom:1;
        filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ff123852,Positive=true);
  
          -moz-box-shadow:0px 2px 2px rgba(0,0,0,0.2);
          -webkit-box-shadow:0px 2px 2px rgba(0,0,0,0.2);
          box-shadow:0px 2px 2px rgba(0,0,0,0.2);
          -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true)";
        filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=2,Color=#33000000,Positive=true);
     }
  
     .button1 span {
       position: absolute;
       left: 0;
       top: 0;
       width: 35px;
       background-color:rgba(0,0,0,0.5);
       
       -webkit-border-top-left-radius: 5px;
     -webkit-border-bottom-left-radius: 5px;
     -moz-border-radius-topleft: 5px;
     -moz-border-radius-bottomleft: 5px;
     border-top-left-radius: 5px;
     border-bottom-left-radius: 5px;
     border-right: 1px solid  rgba(0,0,0,0.15);
     }
  
     .button1:hover span, .button1.active span {
       background-color:rgb(0,102,26);
       border-right: 1px solid  rgba(0,0,0,0.3);
     }
  
     .button1:active {
       margin-top: 2px;
       margin-bottom: 13px;
  
       -moz-box-shadow:0px 1px 0px rgba(255,255,255,0.5);
     -webkit-box-shadow:0px 1px 0px rgba(255,255,255,0.5);
     box-shadow:0px 1px 0px rgba(255,255,255,0.5);
     -ms-filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true)";
     filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0,OffY=1,Color=#ccffffff,Positive=true);
     }
  
     .button1.turquoise {
       background: #449d44;
     }
feacde5ff   Rishav   setup acuefuel in...
119
  </style>
ba1d39503   Swarn Singh   view company form...
120
121
122
123
  
  <div class="myLoader" ng-show="showLoader">
    <img src="../img/hourglass.gif" width="50px;">
  </div>
7ee64838c   Anchit Jindal   new desing implem...
124
  <div class="col-xs-12 col-md-12">
feacde5ff   Rishav   setup acuefuel in...
125
126
     <div class="row" style="margin-left:0px">
        <div class="col-md-12">
4bb02bb84   Rishav   new integration w...
127
           <div class="widget">
feacde5ff   Rishav   setup acuefuel in...
128
              <div class="widget-header">
4bb02bb84   Rishav   new integration w...
129
                 <i class="fa fa-building-o" aria-hidden="true"></i>
6efd9a0a8   Anchit Jindal   new desing changes
130
                 <h3>{{companyData.companyName}} <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteCompany(companyData.id)" aria-hidden="true"></i></h3>
4bb02bb84   Rishav   new integration w...
131
                 <i class="fa fa-times timess" ui-sref="app.customers" aria-hidden="true"></i>
feacde5ff   Rishav   setup acuefuel in...
132
133
134
135
136
              </div>
              <!-- /widget-header -->
              <div class="widget-content">
                 <div class="row" style="margin-left:0px">
                    <div class="col-md-6">
4bb02bb84   Rishav   new integration w...
137
                       <div class="widget">
feacde5ff   Rishav   setup acuefuel in...
138
                          <div class="widget-header">
74c8ae4bb   Rishav   remove old toogle...
139
140
141
                              <i class="fa fa-building-o" aria-hidden="true"></i>
                              <h3>Company Details</h3>
                              <label>BASE ICAO</label>
4441858d8   Rishav Singla   minor change
142
                              <input type="tel" ng-model="companyData.baseIcao" ng-click="base()" style="line-height: 18px;width: 80px;padding: 0px 9px;" />
74c8ae4bb   Rishav   remove old toogle...
143
144
145
146
                             
                              <div class="pull-right" style="margin-top: 5px; margin-right: 10px;">
                                <toggle ng-model="companyData.activate" ng-change="changeCompanyStatus()" size="customToogle" on="Active" off="Dactive"></toggle>
                              </div>
feacde5ff   Rishav   setup acuefuel in...
147
148
                          </div>
                          <div class="widget-content">
b1f6160d4   Rishav   add contact and a...
149
                             <div class="row" style="margin-left:0px;">
48ed0c7bb   Rishav   update company co...
150
                                <div class="col-md-7" style="padding-left: 0;">
b1f6160d4   Rishav   add contact and a...
151
152
153
                                   <h4 ng-show="showCompanyName">
                                      <b style="color:#F90;">{{companyData.companyName}}</b> &nbsp;<i class="fa fa-pencil-square-o" ng-click="company()" style="font-size: 14px;" aria-hidden="true"></i>
                                   </h4>
ba1d39503   Swarn Singh   view company form...
154
                                   <input type="tel" ng-hide="showCompanyName" ng-model="companyData.companyName" class="form-control"/>
feacde5ff   Rishav   setup acuefuel in...
155
                                </div>
48ed0c7bb   Rishav   update company co...
156
                                <div class="col-md-5">
7152ff131   Rishav   model handle
157
                                   <select class="form-control" style="padding: 4px 8px;background: #ebebeb;" ng-model="companyData.certificateType">
6efd9a0a8   Anchit Jindal   new desing changes
158
                                      <option class="optionclass" value="" disabled selected>Certificate Type</option>
48ed0c7bb   Rishav   update company co...
159
160
161
162
163
                                      <option class="optionclass" value="corporate">Part 91 (Corporate)</option>
                                      <option class="optionclass" value="charter">Part 135 (Charter)</option>
                                      <option class="optionclass" value="scheduled">Part 121 (Scheduled)</option>
                                      <option class="optionclass" value="military">Military</option>
                                      <option class="optionclass" value="government">Government</option>
feacde5ff   Rishav   setup acuefuel in...
164
165
166
167
                                   </select>
                                </div>
                             </div>
                             <div>
4bb02bb84   Rishav   new integration w...
168
                                <p class="new-label">
a9a8f570d   Anchit Jindal   new desing implem...
169
170
171
172
173
174
175
176
177
178
179
180
181
                                   <span>JET A Margin </span> 
                                   <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-change="editData()" ng-model="companyData.masterMargin">
                                   	<option ng-if="multiple" value="multiple">Multiple</option>
                                      <option ng-repeat="margin in jetMarginList" value="{{margin.id}}">{{margin.marginName}}</option>
                                   </select>
                                   <span ng-show="multipleMsg">&nbsp;See Aircrart List</span>
                                   <div class="clearfix"></div>
                                </p>
                             </div>
                             <div>
                                <p class="new-label">
                                   <span>AVGAS 100LL </span> 
                                   <select class="form-control" style="width: 135px;padding: 4px 8px;" ng-change="editData()" ng-model="companyData.avgasMargin">
7ee64838c   Anchit Jindal   new desing implem...
182
                                      <option value="">N/A</option>
a9a8f570d   Anchit Jindal   new desing implem...
183
                                      <option ng-repeat="margin in avgsMarginList" value="{{margin.id}}">{{margin.marginName}}</option>
feacde5ff   Rishav   setup acuefuel in...
184
                                   </select>
4bb02bb84   Rishav   new integration w...
185
                                   <div class="clearfix"></div>
feacde5ff   Rishav   setup acuefuel in...
186
187
                                </p>
                             </div>
b1f6160d4   Rishav   add contact and a...
188
189
                             <div class="row"  style="margin-left:0px;"> 
                                <div class="col-md-5" style="padding-left: 0;">
7152ff131   Rishav   model handle
190
                                   <input type="checkbox" name="" ng-model="companyData.baseTenant"> Tenant/Base Customer
b1f6160d4   Rishav   add contact and a...
191
192
                                </div>
                                <div class="col-md-5" style="padding-left: 0;">
7152ff131   Rishav   model handle
193
                                   <input type="checkbox" name="" ng-model="companyData.fuelerlinxCustomer"> FuelerLinx Customer
b1f6160d4   Rishav   add contact and a...
194
                                </div>
feacde5ff   Rishav   setup acuefuel in...
195
196
                             </div>
                             <div>
7152ff131   Rishav   model handle
197
                                <input type="checkbox" name="" ng-model="companyData.contractFuelVendor"> CAA Member
feacde5ff   Rishav   setup acuefuel in...
198
199
                             </div>
                             </br>
4bb02bb84   Rishav   new integration w...
200
                             <div class="new-address">
48ed0c7bb   Rishav   update company co...
201
202
203
204
                                <p ng-show="showAddress"><i class="fa fa-map-marker"></i> {{companyData.addressOne}} {{companyData.addressTwo}} &nbsp;<i class="fa fa-pencil-square-o" ng-click="addressChange()" aria-hidden="true"></i> </p>
                                
                                <div ng-hide="showAddress">
                                   <label>Address1</label>
ba1d39503   Swarn Singh   view company form...
205
                                   <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="companyData.addressOne" class="form-control" />
48ed0c7bb   Rishav   update company co...
206
                                   <label>Address2</label>
ba1d39503   Swarn Singh   view company form...
207
                                   <input type="tel" style="width: 50%;" ng-hide="showAddress" ng-model="companyData.addressTwo" class="form-control" />
48ed0c7bb   Rishav   update company co...
208
209
                                </div>
                                
e9a2edf03   Rishav   update custom field
210
211
212
213
214
                                <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.contactNumber != null">
                                  <i class="fa fa-phone" ng-hide="showEditContact"></i> 
                                  <span ng-hide="showEditContact">{{data.contactNumber}} &nbsp;</span>
                                  <i ng-click="showContact(data, 'phone')" ng-hide="showEditContact" class="fa fa-pencil-square-o" aria-hidden="true"></i>
                                  
8f88e39ed   Rishav   add custom field ...
215
216
217
218
                                </p>
                                <p ng-repeat="data in companyData.companyCustomContacts" ng-if="data.email != null">
                                  <i class="fa fa-envelope" ng-hide="showEditEmail"></i> 
                                  <span ng-hide="showEditEmail">{{data.email}} &nbsp;</span>
e9a2edf03   Rishav   update custom field
219
                                  <i ng-click="showContact(data, 'email')" ng-hide="showEditEmail" class="fa fa-pencil-square-o" aria-hidden="true"></i>
8f88e39ed   Rishav   add custom field ...
220

8f88e39ed   Rishav   add custom field ...
221
                                </p>
4bb02bb84   Rishav   new integration w...
222
223
                             </div>
                             <div class="new-add-select">
3a9f4472b   Rishav   Implement contact...
224
                                <select class="form-control" ng-model="value" ng-click="addCustom(value)" style="background: #ebebeb;padding: 4px 8px;width: 115px;">
6efd9a0a8   Anchit Jindal   new desing changes
225
                                   <option value="" disabled selected>Add Field</option>
3a9f4472b   Rishav   Implement contact...
226
227
                                   <option value="phone" class="optionclass">Add Phone</option>
                                   <option value="email" class="optionclass">Add Email</option>
4bb02bb84   Rishav   new integration w...
228
                                </select>
feacde5ff   Rishav   setup acuefuel in...
229
                             </div>
feacde5ff   Rishav   setup acuefuel in...
230
                             <div>
b1f6160d4   Rishav   add contact and a...
231
232
                                <p style="margin-bottom: 0;"><b>Company Notes</b> &nbsp;<i class="fa fa-pencil-square-o" ng-click="showNote()" aria-hidden="true"></i></p>
                                <p ng-show="showNoteData">{{companyData.internalNote}}</p>
ba1d39503   Swarn Singh   view company form...
233
                                <textarea  name="message" ng-hide="showNoteData" style="margin-bottom: 6px;" class="form-control" ng-model="companyData.internalNote" rows="4" cols="34"></textarea>
feacde5ff   Rishav   setup acuefuel in...
234
                             </div>
ba1d39503   Swarn Singh   view company form...
235
236
                             <div class="pull-left">
                                <button ng-click="editData()" ng-show="showUpdateBtn" class="btn btn-success">Save</button>
7152ff131   Rishav   model handle
237
                                <button ng-click="cancelData()" ng-show="showUpdateBtn" class="btn btn-default">Cancel</button>
feacde5ff   Rishav   setup acuefuel in...
238
                             </div>
ba1d39503   Swarn Singh   view company form...
239
240
                             <div class="pull-right">
                                <button type="button" ng-click="openConfirmMail()" class="btn btn-primary">Distribute Price to Company Contacts</button>
67044e31e   Rishav Singla   modify changes an...
241
                                <button type="button" class="btn btn-info" ui-sref="app.updateFuelManager">Setup Fuel</button>
ba1d39503   Swarn Singh   view company form...
242
243
                              </div>
                              <div class="clearfix"></div>
feacde5ff   Rishav   setup acuefuel in...
244
245
246
247
                          </div>
                       </div>
                    </div>
                    <div class="col-md-6">
6efd9a0a8   Anchit Jindal   new desing changes
248
                       <div class="widget" style="min-height: 350px;">
feacde5ff   Rishav   setup acuefuel in...
249
250
251
                          <div class="widget-header">
                             <i class="fa fa-plane"></i>
                             <h3>Aircraft List</h3>
4bb02bb84   Rishav   new integration w...
252
                             <div class="pull-right">
a4884cfe7   Rishav   add aircraft issu...
253
                                <button type="submit" class="btn btn-success btn-sm" data-toggle="modal" ng-click="clearAircrafts()" data-target="#aircraft-modal-3" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i>&nbsp; Add Aircraft</button>
4bb02bb84   Rishav   new integration w...
254
                             </div>
feacde5ff   Rishav   setup acuefuel in...
255
                          </div>
6efd9a0a8   Anchit Jindal   new desing changes
256
                          <div class="widget-content" style="padding:0px;min-height: 350px;">
feacde5ff   Rishav   setup acuefuel in...
257
258
259
260
                             <div class="table-responsive">
                                <table class="table table-bordered table-hover table-striped">
                                   <thead>
                                      <tr>
b1f6160d4   Rishav   add contact and a...
261
                                         <th>Tail #</th>
feacde5ff   Rishav   setup acuefuel in...
262
263
264
                                         <th>Make</th>
                                         <th>Model</th>
                                         <th>JET-A</th>
2398385ac   Anchit Jindal   minor changes
265
                                         <th>All In</th>
feacde5ff   Rishav   setup acuefuel in...
266
                                         <th>AVGAS</th>
2398385ac   Anchit Jindal   minor changes
267
                                         <th>All In</th>
4bb02bb84   Rishav   new integration w...
268
                                         <th></th>
feacde5ff   Rishav   setup acuefuel in...
269
270
271
                                      </tr>
                                   </thead>
                                   <tbody>
b1f6160d4   Rishav   add contact and a...
272
273
274
275
                                      <tr ng-repeat="aircraft in contactAircraftList">
                                         <td>{{aircraft.tail}}</td>
                                         <td>{{aircraft.make}}</td>
                                         <td>{{aircraft.model}}</td>
feacde5ff   Rishav   setup acuefuel in...
276
                                         <td>
6efd9a0a8   Anchit Jindal   new desing changes
277
                                            <select class="form-control" style="height:31px;" ng-model="aircraft.aircraftsMargin.id" ng-options="margin.id as margin.marginName for margin in jetMarginList" required></select>
feacde5ff   Rishav   setup acuefuel in...
278
                                         </td>
6efd9a0a8   Anchit Jindal   new desing changes
279
                                         <td style="color:#55AF8B;">${{aircraft.marginAllIn}}</td>
feacde5ff   Rishav   setup acuefuel in...
280
                                         <td>
7ee64838c   Anchit Jindal   new desing implem...
281
282
283
284
                                            <select class="form-control" style="height:31px;" ng-model="aircraft.aircraftsAVGASMargin.id">
  		                                 	<option value="">N/A</option>
  		                                    <option ng-repeat="margin in avgsMarginList" value="{{margin.id}}">{{margin.marginName}}</option>
  		                                 </select>
feacde5ff   Rishav   setup acuefuel in...
285
                                         </td>
6efd9a0a8   Anchit Jindal   new desing changes
286
                                         <td style="color:#55AF8B;">${{aircraft.marginAvgasAllIn}}</td>
67044e31e   Rishav Singla   modify changes an...
287
                                         <td>
a7a7cfeca   Rishav Singla   fuel vendor page ...
288
                                          <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteAircraft(aircraft.id)" aria-hidden="true"></i>
67044e31e   Rishav Singla   modify changes an...
289
                                         </td>
feacde5ff   Rishav   setup acuefuel in...
290
291
292
293
294
295
296
297
298
299
                                      </tr>
                                   </tbody>
                                </table>
                             </div>
                          </div>
                       </div>
                    </div>
                 </div>
                 <div class="row" style="margin-left:0px">
                    <div class="col-md-6">
4bb02bb84   Rishav   new integration w...
300
                       <div class="widget">
feacde5ff   Rishav   setup acuefuel in...
301
302
303
                          <div class="widget-header">
                             <i class="fa fa-user"></i>
                             <h3>Contact List</h3>
4bb02bb84   Rishav   new integration w...
304
                             <div class="pull-right">
b1f6160d4   Rishav   add contact and a...
305
                                <button type="submit" data-toggle="modal" data-target="#contact-modal-3" class="btn btn-success btn-sm" style="margin-top: 4px; margin-right: 9px;"><i class="fa fa-plus" aria-hidden="true"></i>&nbsp; Add Contact</button>
4bb02bb84   Rishav   new integration w...
306
                             </div>
feacde5ff   Rishav   setup acuefuel in...
307
308
309
310
311
312
313
314
315
316
317
318
319
                          </div>
                          <div class="widget-content" style="padding:0px">
                             <div class="table-responsive">
                                <table class="table table-bordered table-hover table-striped">
                                   <thead>
                                      <tr>
                                         <th>Price Email</th>
                                         <th>First Name</th>
                                         <th>Last Name</th>
                                         <th>Title</th>
                                      </tr>
                                   </thead>
                                   <tbody>
406deaecb   Rishav   state change
320
                                      <tr ng-repeat="contact in companyContactList" style="cursor: pointer;" ui-sref="app.viewContact({id : contact.id})">
d1fe89776   Rishav Singla   view fuel vendor ...
321
                                         <td><toggle ng-model="contact.priceEmail" ng-change="changePriceEmail(contact.id, $index)" size="customToogle"></toggle></td>
3cab9e8a3   Rishav   implement view co...
322
                                         <td>
3cab9e8a3   Rishav   implement view co...
323
                                              {{contact.firstName}}
3cab9e8a3   Rishav   implement view co...
324
                                          </td>
b1f6160d4   Rishav   add contact and a...
325
326
                                         <td>{{contact.lastName}}</td>
                                         <td>{{contact.title}}</td>
feacde5ff   Rishav   setup acuefuel in...
327
328
329
330
331
332
333
334
                                      </tr>
                                   </tbody>
                                </table>
                             </div>
                          </div>
                       </div>
                    </div>
                    <div class="col-md-6">
4bb02bb84   Rishav   new integration w...
335
                       <div class="widget">
feacde5ff   Rishav   setup acuefuel in...
336
337
338
339
340
341
                          <div class="widget-header">
                             <i class="fa fa-pencil"></i>
                             <h3>Price Manager Reference</h3>
                          </div>
                          <div class="widget-content">
                             <div class="table-responsive">
a9e3a7365   Swarn Singh   fix issues on vie...
342
                                <table class="table table-striped" style="position: relative; top: -33px; margin-bottom: 0;">
feacde5ff   Rishav   setup acuefuel in...
343
344
345
346
347
348
349
350
351
352
353
                                   <thead>
                                      <tr>
                                         <th>Omit</th>
                                         <th>Product</th>
                                         <th>Cost</th>
                                         <th>PAP (Margin)</th>
                                         <th>PAP (Total)</th>
                                         <th style="color:#F90">Expires</th>
                                      </tr>
                                   </thead>
                                   <tbody>
28af27a3f   Rishav   add fuelPriceapi
354
                                      <tr ng-repeat="fuel in fuelPricing">
7152ff131   Rishav   model handle
355
356
357
358
359
360
                                         <td><input type="checkbox" ng-model="fuel.status"></td>
                                         <td>{{fuel.name}}</td>
                                         <td>${{fuel.fuelPricing.cost}}</td>
                                         <td>${{fuel.fuelPricing.papMargin}}</td>
                                         <td style="color:#55AF8B;">${{fuel.fuelPricing.papTotal}}</td>
                                         <td style="color:#F90">{{fuel.fuelPricing.expirationDate}}</td>
d1fe89776   Rishav Singla   view fuel vendor ...
361
                                      </tr>
feacde5ff   Rishav   setup acuefuel in...
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
                                   </tbody>
                                </table>
                             </div>
                          </div>
                       </div>
                    </div>
                 </div>
              </div>
              <!-- /widget-content -->
           </div>
           <!-- /widget -->
        </div>
        <!-- /span6 -->
     </div>
     <!-- /widget -->
  </div>
  <!-- /container -->
55e075d7e   Rishav   add contact, add ...
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
  <form class="modal multi-step" id="contact-modal-3" name="companyForm">
      <div class="modal-dialog modal-lg">
          <div class="modal-content">
              <div class="modal-body step-1" data-step="1" style="padding: 0;">
                 <div>
                    <div class="row" style="margin: 0;">
                       <div>
                          <div class="widget" style="margin-bottom: 0; box-shadow: none;">
                             <div class="widget-header">
                                <i class="icon-pencil"></i>
                                <i class="fa fa-tasks" aria-hidden="true"></i>
                                <h3>Add a New Contact</h3>
                                <div class="clearfix"></div>
                             </div>
                             <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;">
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>First Name</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.firstName" class="form-control" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-6">
                                      
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Last Name</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.lastName" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div><br>
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Title</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.title" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-6">
                                      
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Email</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="email" ng-model="data.email" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div><br>
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Username</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.userName" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-6">
                                      
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Password</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="password" ng-model="data.password" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div><br>
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Work Phone</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.workPhone" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-6">
                                      
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Mobile Phone</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
                                         <input type="tel" ng-model="data.mobilePhone" class="form-control" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div><br>
                                <div class="col-xs-12">
                                    <div class="col-md-12">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Address</b></label>
                                      </div>
                                      <div class="pull-right" style="width: calc(100% - 123px);">
                                         <input type="tel" class="form-control" ng-model="data.address" id="Address" placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div>
                                <br/>
                                <div class="col-xs-12">
                                   <div class="col-md-3">
                                      <div class="pull-left my-toggle-switch">
                                         <div style="color: #ff9a01;">Price Email &nbsp &nbsp
74c8ae4bb   Rishav   remove old toogle...
499
                                            <toggle ng-model="data.priceEmail" size="customToogle"></toggle>
55e075d7e   Rishav   add contact, add ...
500
501
502
503
504
505
506
                                         </div>
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-3">
                                      <div class="pull-left my-toggle-switch">
                                         <div style="color: #ff9a01;">Primary Contact &nbsp &nbsp
3a9f4472b   Rishav   Implement contact...
507
                                            <input type="checkbox" ng-click="checkPrimaryContact()" ng-model="primaryContact">
55e075d7e   Rishav   add contact, add ...
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
                                         </div>
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Internal Note</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <textarea  name="message" ng-model="data.note" rows="4" cols="34"></textarea>
                                      </div>
                                   </div>
                                   <div class="clearfix"></div>
                                </div>
                                <div class="clearfix"></div><br>
                             </div>
                          </div>
                          <div class="clearfix"></div>
                       </div>
                    </div>
                 </div>
              </div>
              <div class="modal-footer" style="border-top: 0;">
7152ff131   Rishav   model handle
531
                  <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button>
55e075d7e   Rishav   add contact, add ...
532
533
534
535
536
                  <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addContact()">Save</button>
              </div>
          </div>
      </div>
  </form>
4bb02bb84   Rishav   new integration w...
537
  <div class="clearfix"></div>
b1f6160d4   Rishav   add contact and a...
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
  
  <form class="modal multi-step" id="aircraft-modal-3" name="aircraftForm">
      <div class="modal-dialog modal-lg">
          <div class="modal-content">
              <div class="modal-body step-2" data-step="2" style="padding: 0;">
                 <div>
                    <div class="row" style="margin: 0;">
                       <div>
                          <div class="widget" style="margin-bottom: 0;box-shadow: none;">
                             <div class="widget-header">
                                <i class="icon-pencil"></i>
                                <i class="fa fa-tasks" aria-hidden="true"></i>
                                <h3>Add a New Aircraft</h3>
                                <div class="clearfix"></div>
                             </div>
                             <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;">
                                <div class="col-xs-12">
                                   <div class="widget-header">
                                      <i class="fa fa-list"></i>
                                      <h3>Aircraft List</h3>
                                   </div>
                                   <div class="widget-content" style="padding:0px;border: 0px; padding: 0px !important;">
                                      <div class="table-responsive">
                                         <table class="table table-striped table-bordered">
                                            <thead>
                                               <tr>
                                                  <!-- <th><input type="checkbox" ng-model="selectedAll" ng-click="checkAll()" /></th> -->
                                                  <th>Tail</th>
                                                  <th>Make</th>
                                                  <th>Model</th>
                                                  <th>Size</th>
7ee64838c   Anchit Jindal   new desing implem...
569
570
                                                  <th>JET A Margin</th>
                                                  <th>AVGS 100LL Margin</th>
b1f6160d4   Rishav   add contact and a...
571
572
573
574
575
576
577
                                               </tr>
                                            </thead>
                                            <tbody>
                                               <tr ng-repeat="aircraftData in aircraftDetails track by $index">
                                                  <!-- <td>
                                                     <input type="checkbox" ng-model="aircraftData.selected"/>
                                                     </td> -->
7ee64838c   Anchit Jindal   new desing implem...
578
                                                  <td style="width: 15%">
b1f6160d4   Rishav   add contact and a...
579
580
                                                     <input type="tel" class="form-control" ng-model="aircraftData.tail" required/>
                                                  </td>
7ee64838c   Anchit Jindal   new desing implem...
581
                                                  <td style="width: 17%">
b1f6160d4   Rishav   add contact and a...
582
583
584
585
                                                     <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)">
                                                        <option ng-repeat="make in aircraftMakeList">{{make}}</option>
                                                     </select>
                                                  </td>
7ee64838c   Anchit Jindal   new desing implem...
586
                                                  <td style="width: 17%">
b1f6160d4   Rishav   add contact and a...
587
588
589
590
                                                     <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)">
                                                        <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option>
                                                     </select>
                                                  </td>
7ee64838c   Anchit Jindal   new desing implem...
591
                                                  <td style="width: 17%">
b6f0311a3   Rishav   get Company api i...
592
593
                                                    <select class="form-control" ng-model="aircraftData.sizeId" ng-options="size.aircraftSize.id as size.aircraftSize.size for size in aircraftData.aircraftSizeList"></select>
                                                     <!-- <select class="form-control" ng-model="aircraftData.size">
b1f6160d4   Rishav   add contact and a...
594
                                                        <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option>
b6f0311a3   Rishav   get Company api i...
595
                                                     </select> -->
b1f6160d4   Rishav   add contact and a...
596
                                                  </td>
7ee64838c   Anchit Jindal   new desing implem...
597
598
599
600
601
602
603
604
605
                                                  <td style="width: 17%">
                                                    <select class="form-control" ng-model="aircraftData.marginId" ng-options="margin.id as margin.marginName for margin in jetMarginList">
                                                      <option value="" disabled>Select...</option>
                                                    </select>
                                                  </td>
                                                  <td style="width: 17%">
                                                   <select class="form-control marginSelectBox" ng-model="aircraftData.avgasMarginId" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList">
                                                      <option value="" disabled>Select...</option>
                                                    </select>
3a9f4472b   Rishav   Implement contact...
606
                                                  </td>
b1f6160d4   Rishav   add contact and a...
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
                                               </tr>
                                            </tbody>
                                         </table>
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div>
                                <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;">
                                   <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button>
                                </div>
                             </div>
                          </div>
                          <div class="clearfix"></div>
                       </div>
                    </div>
                 </div>
              </div>
              <div class="modal-footer" style="border-top: 0;">
7152ff131   Rishav   model handle
626
                  <button type="button" class="btn btn-default" id="reset" data-dismiss="modal">Cancel</button>
b1f6160d4   Rishav   add contact and a...
627
628
629
630
631
                  <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="saveCompanyData()">Save</button>
              </div>
          </div>
      </div>
  </form>
fd20aa6ce   Rishav   send confirmation...
632

3a9f4472b   Rishav   Implement contact...
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
  <div class="customConfirmPopBackdrop" id="confirm1">
     <div class="customModalInner" style="max-width: 400px;">
        <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
           <table>
              <tr>
                 <td>
                    <img src="img/info.png" style="width: 50px;">
                 </td>
                 <td>
                    <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p>
                 </td>
              </tr>
           </table>
        </div>
        <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendMail()">Yes</button>
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button>
        </div>
     </div>
  </div>
3a9f4472b   Rishav   Implement contact...
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
  <div class="customConfirmPopBackdrop" id="primaryContact">
     <div class="customModalInner" style="max-width: 400px;">
        <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
           <table>
              <tr>
                 <td>
                    <img src="img/info.png" style="width: 50px;">
                 </td>
                 <td>
                    <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure you want to set this person as your primary contact?</p>
                 </td>
              </tr>
           </table>
        </div>
        <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="sendPrimaryContact()">Yes</button>
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelPrimaryContact()">Cancel</button>
        </div>
     </div>
  </div>
3a9f4472b   Rishav   Implement contact...
673
674
675
676
677
678
679
680
681
682
683
  <div class="customConfirmPopBackdrop" id="customField">
     <div class="customModalInner" style="max-width: 400px;">
        <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
           <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div>
              <div class="col-md-10">
                  <form>
                    Title:<br>
                    <input type="text" name="firstname" ng-model="custom.title"><br>
                    Content:<br>
                    <input type="text" name="lastname" ng-model="custom.content">
                  </form>
fd20aa6ce   Rishav   send confirmation...
684
              </div>
3a9f4472b   Rishav   Implement contact...
685
686
687
688
              <div class="clearfix"></div>
        </div>
        <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptCustomField()">Accept</button>
8f88e39ed   Rishav   add custom field ...
689
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelCustomField()">Cancel</button>
3a9f4472b   Rishav   Implement contact...
690
691
692
        </div>
     </div>
  </div>
e9a2edf03   Rishav   update custom field
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
  <div class="customConfirmPopBackdrop" id="updateContact">
     <div class="customModalInner" style="max-width: 400px;">
        <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
           <div class="col-md-2"><img class="src-image" src="img/images.jpg"></div>
              <div class="col-md-10">
                  <form>
                    Title:<br>
                    <input type="text" name="firstname" ng-model="updateData.title"><br>
                    Content:<br>
                    <input type="text" name="lastname" ng-model="updateData.content">
                  </form>
              </div>
              <div class="clearfix"></div>
        </div>
        <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="acceptUpdateField()">Accept</button>
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelUpdateField()">Cancel</button>
        </div>
     </div>
  </div>
da24c95c8   Rishav Singla   confirmation mess...
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
  <div class="customConfirmPopBackdrop" id="delete1">
     <div class="customModalInner" style="max-width: 400px;">
        <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
           <table>
              <tr>
                 <td>
                    <img src="img/info.png" style="width: 50px;">
                 </td>
                 <td>
                    <p style="padding: 5px 10px; margin-bottom: 0;">Please confirm! Are you sure you want to DELETE this Aircraft?</p>
                 </td>
              </tr>
           </table>
        </div>
        <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="aircraftDelete()">Accept</button>
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelDelete()">Cancel</button>
        </div>
     </div>
  </div>
da24c95c8   Rishav Singla   confirmation mess...
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
  <div class="customConfirmPopBackdrop" id="delete3">
     <div class="customModalInner" style="max-width: 400px;">
        <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
           <table>
              <tr>
                 <td>
                    <img src="img/info.png" style="width: 50px;">
                 </td>
                 <td>
                    <p style="padding: 5px 10px; margin-bottom: 0;">{{statusMessage}}</p>
                 </td>
              </tr>
           </table>
        </div>
        <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="companyStatus()">Accept</button>
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelStatus()">Cancel</button>
        </div>
     </div>
  </div>
da24c95c8   Rishav Singla   confirmation mess...
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
  <div class="customConfirmPopBackdrop" id="toogleMail">
     <div class="customModalInner" style="max-width: 400px;">
        <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
           <table>
              <tr>
                 <!-- <td>
                    <img src="" style="width: 50px;">
                 </td> -->
                 <td>
                    <p style="padding: 5px 10px; margin-bottom: 0;text-align: center;">{{messageText}}</p>
                 </td>
              </tr>
           </table>
        </div>
        <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelToogle()">Cancel</button>
        </div>
     </div>
  </div>
d24318592   Rishav   changes and new i...
772
773
774
  <div class="myLoader" ng-show="showLoader">
     <img src="../img/hourglass.gif" width="50px;">
  </div>
feacde5ff   Rishav   setup acuefuel in...
775
776
777
  <!-- Le javascript
     ================================================== -->
  <!-- Placed at the end of the document so the pages load faster -->
4bb02bb84   Rishav   new integration w...
778
  <!-- <script
feacde5ff   Rishav   setup acuefuel in...
779
780
781
782
     CKEDITOR.replace( 'editor2', {
        height: 250,
        extraPlugins: 'divarea'
     } );
55e075d7e   Rishav   add contact, add ...
783
     </script> -->