Blame view

app/partials/fuelOrders/fuelOrders.html 67.1 KB
4bb02bb84   Rishav   new integration w...
1
  <style>
8fc0ea8f4   Kuldeep Arora   update menu items
2
     .subnavbar .mainnav > li:nth-child(4) > a{
6f19fff16   Kuldeep Arora   Rebranding-FBOins...
3
     color: #c44646;
4bb02bb84   Rishav   new integration w...
4
     }
6284a85b9   Jaideep Singh   fuel orders page ...
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
  
     .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;
     }
4bb02bb84   Rishav   new integration w...
71
  </style>
6284a85b9   Jaideep Singh   fuel orders page ...
72

9aae3d136   Mr. Hot Foods   show loaders and ...
73
74
75
  <div class="myLoader" ng-show="showLoader">
    <img src="../img/hourglass.gif" width="50px;">
  </div>
4bb02bb84   Rishav   new integration w...
76
77
78
79
80
81
82
  <div class="main">
     <div class="container">
        <div class="row">
           <div class="col-md-12">
              <div class="widget stacked ">
                 <div class="widget-content">
                    <div class="tabbable">
6284a85b9   Jaideep Singh   fuel orders page ...
83
84
85
86
                       <ul class="nav nav-tabs">
                          <li style="margin: 0px 10px 4px 10px;"><input type="text" style="height:31px;"class="form-control" name="name" id="name" ng-model="searchText" placeholder="Search In Table"></li>
                          <li><button type="button" class="btn btn-default btn-sm " ng-click="displayFuelOrderList.filter({}); searchText=null">Clear Search And Filters</button></li>
                          <li style="float:right"><button type="submit"  data-toggle="modal" data-target="#demo-modal-3" class="btn btn-success btn-sm"><i class="fa fa-plus" aria-hidden="true"></i> Add Company</button></li>
4bb02bb84   Rishav   new integration w...
87
88
                       </ul>
                       <br>  
6284a85b9   Jaideep Singh   fuel orders page ...
89
                       <div class="tab-content customer-table" style="margin:0px">
4bb02bb84   Rishav   new integration w...
90
                          <div class="tab-pane active" id="companyView">
6284a85b9   Jaideep Singh   fuel orders page ...
91
                            <table ng-table="displayFuelOrderList" class="table table-striped table-condensed" show-filter="true">
dd378d69f   Mr. Hot Foods   changes in flight...
92
93
                             <tr ng-repeat="row in $data | filter:searchText" style="cursor: pointer;"  >
                               <td data-title="'Company Name'" filter="{companyName: 'text'}" sortable="'companyName'" ng-click="editTableRow(row)">
6284a85b9   Jaideep Singh   fuel orders page ...
94
95
                                {{row.companyName}}
                               </td>
20f645d6f   Kuldeep Arora   fuelorder
96
97
                               <td data-title="'Fueling date'" filter="{fuelingDate: 'text'}" sortable="'fuelingDate'" ng-click="editTableRow(row)">
                                {{row.fuelingDate}}
6284a85b9   Jaideep Singh   fuel orders page ...
98
                               </td>
dd378d69f   Mr. Hot Foods   changes in flight...
99
                               <td data-title="'Tail #'" filter="{aircraftName: 'text'}" sortable="'aircraftName'" ng-click="editTableRow(row)">
6284a85b9   Jaideep Singh   fuel orders page ...
100
101
                                {{row.aircraftName}}
                               </td> 
dd378d69f   Mr. Hot Foods   changes in flight...
102
                               <td data-title="'Source'" filter="{source: 'text'}" sortable="'source'" ng-click="editTableRow(row)">
6284a85b9   Jaideep Singh   fuel orders page ...
103
104
                                {{row.source}}
                               </td>
dd378d69f   Mr. Hot Foods   changes in flight...
105
                               <td data-title="'Volume'" filter="{requestedVolume: 'text'}" sortable="'requestedVolume'" ng-click="editTableRow(row)">
6284a85b9   Jaideep Singh   fuel orders page ...
106
107
                                {{row.requestedVolume}}
                               </td>
dd378d69f   Mr. Hot Foods   changes in flight...
108
                               <td data-title="'FBO Cost'" filter="{fboCost: 'text'}" sortable="'fboCost'" ng-click="editTableRow(row)">
73794e3be   Anchit Jindal   minor changes
109
                               {{row.fboCost | number : 4}}
6284a85b9   Jaideep Singh   fuel orders page ...
110
                               </td>
dd378d69f   Mr. Hot Foods   changes in flight...
111
                               <td data-title="'Quoted'" filter="{priceQuote: 'text'}"  sortable="'priceQuote'" ng-click="editTableRow(row)">
73794e3be   Anchit Jindal   minor changes
112
                               {{row.priceQuote | number : 4}}
6284a85b9   Jaideep Singh   fuel orders page ...
113
                               </td>
dd378d69f   Mr. Hot Foods   changes in flight...
114
                               <td data-title="'Invoiced'" filter="{invoiced: 'text'}" sortable="'invoiced'" ng-click="editTableRow(row)">
73794e3be   Anchit Jindal   minor changes
115
                                {{row.invoiced | number : 4}}
6284a85b9   Jaideep Singh   fuel orders page ...
116
                               </td>
dd378d69f   Mr. Hot Foods   changes in flight...
117
                               <td data-title="'Total'" filter="{total: 'text'}" sortable="'total'" ng-click="editTableRow(row)">
73794e3be   Anchit Jindal   minor changes
118
                                {{row.total | number : 4}}
6284a85b9   Jaideep Singh   fuel orders page ...
119
                               </td>
8d682e773   Mr. Hot Foods   changes in fuel o...
120
                               <td data-title="'Status'" filter="{status: 'select'}" filter-data="statusFilterOptions" sortable="'status'">
a55afb325   Kuldeep Arora   reconciled order ...
121
                                      <select class="btn btn-regular colorfulSelectbox" ng-model="row.status" ng-style="abc" ng-change="updateStatus(row, row.status)" ng-init="{{defaultStatus != '' ? row.status = defaultStatus : '' }}">
5a7920053   Swarn Singh   selectbox color i...
122
123
124
125
126
                                          <option class="blackOption" value="pending" ng-selected="row.status == pending"> Pending</option>
                                          <option class="blueOption" value="invoiced" ng-selected="row.status == invoiced" >Invoiced</option>
                                          <option class="greenOption" value="paid" ng-selected="row.status == paid" >Paid</option>
                                          <option class="redOption" value="cancelled" ng-selected="row.status == cancelled" >Cancelled</option>
                                          <option class="yellowOption" value="archived" ng-selected="row.status == archived" >Archived</option>
8d682e773   Mr. Hot Foods   changes in fuel o...
127
                                      </select>
a55afb325   Kuldeep Arora   reconciled order ...
128

6284a85b9   Jaideep Singh   fuel orders page ...
129
                               </td>
8d682e773   Mr. Hot Foods   changes in fuel o...
130
                               <td data-title="'Attachments'" filter="{orderInvoice : 'select'}" filter-data="attachmentFilterOptions" sortable="'orderInvoice '">
64e7e5f50   Mr. Hot Foods   view upload delet...
131
                                      <select class="btn btn-regular" ng-model="attachOptionSelected" ng-change="attachment(row.id,attachOptionSelected,row.orderInvoice.link, row)" >
dd378d69f   Mr. Hot Foods   changes in flight...
132
                                          <option value="" disabled selected="selected" >Invoice</option>
9aae3d136   Mr. Hot Foods   show loaders and ...
133
134
                                          <option value="viewAttachment" ng-if="row.orderInvoice !== null" >View</option>
                                          <option value="deleteAttachment" ng-if="row.orderInvoice !== null">Delete</option>
dd378d69f   Mr. Hot Foods   changes in flight...
135
136
137
                                          <option value="0" disabled >_____________</option>
                                          <option value="uploadAttachment" >Upload</option>
                                      </select>
8d682e773   Mr. Hot Foods   changes in fuel o...
138
                                      <i class="fa fa-paperclip" ng-if="row.orderInvoice !== null"></i>
6284a85b9   Jaideep Singh   fuel orders page ...
139
140
141
                               </td>
                             </tr>
                           </table>
8d682e773   Mr. Hot Foods   changes in fuel o...
142
                                      <select class="btn btn-primary exportBtn" ng-model="optionSelected" ng-change="onFWSelect()">
6284a85b9   Jaideep Singh   fuel orders page ...
143
144
145
                                          <option value="" disabled selected="selected">Fuel Widget</option>
                                          <option value="dt" >Direct Transaction</option>
                                          <option value="efo" >Export Fuel Orders</option>
4bb02bb84   Rishav   new integration w...
146
                                      </select>
6284a85b9   Jaideep Singh   fuel orders page ...
147
148
149
150
151
152
153
154
155
156
157
158
159
160
  
                          </div>
                       </div>
                    </div>
                 </div>
                 <!-- /widget-content -->
              </div>
              <!-- /widget -->
           </div>
           <!-- /span8 -->
        </div>
        <!-- /row -->
     </div>
     <!-- /container -->
dd378d69f   Mr. Hot Foods   changes in flight...
161

6284a85b9   Jaideep Singh   fuel orders page ...
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
  </div>
  <!-- /main -->
  
                         
  <form class="modal multi-step" id="demo-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;">
                             <div class="widget-header">
                                <i class="icon-pencil"></i>
                                <i class="fa fa-tasks" aria-hidden="true"></i>
                                <h3>Add a New Company</h3>
                                <div class="pull-right my-toggle-switch" style="margin-right: 30px;">
                                   <div style="color: #ff9a01;">Activate &nbsp &nbsp
                                      <toggle ng-model="data.activate" size="customToogle"></toggle>
                                   </div>
                                </div>
                                <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-8">
                                      <div class="pull-left">
                                         <label class="new-input-label"><b>Company Name *</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
e33b4556c   Kuldeep Arora   bugs resolved
192
193
                                         <!-- <input type="text" ng-model="data.companyName" class="form-control companyNameInput" ng-keyup="removeValidation()" placeholder="" required> -->
                                         <input type="text" ng-keyup="removeValidation()" ng-model="data.companyName" uib-typeahead="company.companyName for company in compNameList | filter:$viewValue | limitTo:8" class="form-control companyNameInput"> 
6284a85b9   Jaideep Singh   fuel orders page ...
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
                                         <label class="customErrorMessage" ng-show="showCompanyError">This field is required.</label>
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-4">
                                      
                                      <div class="pull-right">
                                         <input type="text" ng-model="data.baseIcao" style="width: 100px;" class="form-control"  placeholder="">
                                      </div>
                                      <div class="pull-right">
                                         <label style="margin-right: 15px;" class="new-input-label"><b>Base ICAO</b></label>
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div><br>
                                <div class="col-xs-12">
                                   <div class="col-md-7">
                                      <div class="pull-left">
                                         <label class="new-input-label"><b>Relationship&nbsp;</b></label>
                                      </div>
                                      <div class="pull-left" style="margin-left: 32px;">
                                         <input type="checkbox" ng-model="data.baseTenant" name="vehicle" value="Bike"> Check here if this is a Base Tenant<br>
                                         <input type="checkbox" ng-model="data.fuelerlinxCustomer" name="vehicle" value="Car" checked> Check here if this is a FuelerLinx Customer<br>
                                         <input type="checkbox" ng-model="data.contractFuelVendor" name="vehicle" value="Car" checked> Check here if this is a Contract Fuel Vendor
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-2 Airport" style="text-align: right;">
                                      <b>Certificate Type</b>
                                   </div>
                                   <div class="col-md-3 Airport">
                                      <select required class="form-control" ng-model="data.certificateType">
                                         <option value="" disabled selected hidden>Select...</option>
                                         <option value="corporate">Part 91 (Corporate)</option>
                                         <option value="charter">Part 135 (Charter)</option>
                                         <option value="scheduled">Part 121 (Scheduled)</option>
                                         <option value="military">Military</option>
                                         <option value="government">Government</option>
                                      </select>
                                   </div>
                                   <div class="clearfix"></div>
                                </div>
                                <div class="clearfix"></div>
                                <br/>
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <b>JET A Margin *</b>
                                      </div>
                                      <div class="pull-left">
                                        <select class="form-control marginSelectBox" ng-model="data.masterMargin" ng-options="margin.id as margin.marginName for margin in jetMarginList" required ng-change="removeMarginValidation()">
                                         <option value="" disabled>Select...</option>
                                        </select>
                                        <label ng-show="showMarginError" class="customErrorMessage">This field is required.</label>
  
                                        <div class="clearfix"></div>
                                      </div>
                                    </div>
                                   
                                   <div class="col-md-3 Airport" style="text-align: right;">
                                      <b>AVGAS 100LL Margin</b>
                                   </div>
                                   <div class="col-md-3 Airport">
                                      <select class="form-control" ng-model="data.avgasMargin" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList">
                                      <option value="" disabled>Select...</option>
                                      </select>
                                   </div>
                                   <div class="clearfix"></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-left" style="width: calc(100% - 110px);">
                                         <input type="text" class="form-control" ng-model="data.addressOne"  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>Address2</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <input type="text" ng-model="data.addressTwo" class="form-control"  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>City</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <input type="text" ng-model="data.city" class="form-control"  placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-3">
                                      <div class="pull-left" style="width: 40px;">
                                         <label class="new-input-label"><b>State</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <input type="text" ng-model="data.state" class="form-control"  placeholder="">
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-3">
                                      <div class="pull-left">
                                         <label class="new-input-label"><b>Zip Code</b></label>
                                      </div>
                                      <div class="pull-right" style="width: calc(100% - 60px);">
                                         <input type="tel" ng-model="data.zipcode" class="form-control"  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>Country</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <input type="text" ng-model="data.country" 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>Internal Note</b></label>
4bb02bb84   Rishav   new integration w...
338
                                      </div>
6284a85b9   Jaideep Singh   fuel orders page ...
339
340
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <textarea  name="message" ng-model="data.internalNote" rows="4" cols="34"></textarea>
4bb02bb84   Rishav   new integration w...
341
                                      </div>
6284a85b9   Jaideep Singh   fuel orders page ...
342
                                      <div class="clearfix"></div>
4bb02bb84   Rishav   new integration w...
343
344
                                   </div>
                                </div>
6284a85b9   Jaideep Singh   fuel orders page ...
345
346
347
348
349
350
351
352
353
354
355
                                <div class="clearfix"></div>
                               <!--  <br/>
                                <div class="col-xs-12">
                                   <div class="col-md-2 Airport"></div>
                                   <div class="col-md-10 Airport">
                                      <div class="pull-right">
                                         <button type="button" class="btn btn-default" ng-click="cancel()">Cancel</button>
                                         <button type="button" class="btn btn-warning" ng-click="addAircraft()">Next: Add Aircraft</button>
                                      </div>
                                   </div>
                                </div> -->
4bb02bb84   Rishav   new integration w...
356
357
                             </div>
                          </div>
6284a85b9   Jaideep Singh   fuel orders page ...
358
359
360
361
                          <div class="clearfix"></div>
                       </div>
                    </div>
                 </div>
4bb02bb84   Rishav   new integration w...
362
              </div>
6284a85b9   Jaideep Singh   fuel orders page ...
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
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
              <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;">
                             <div class="widget-header">
                                <i class="icon-pencil"></i>
                                <i class="fa fa-tasks" aria-hidden="true"></i>
                                <h3>Add a New Company</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; ">
                                      <div class="table-responsive">
                                         <!-- <table class="table table-bordered table-hover table-striped addRow" style="margin-bottom: 0px;">
                                            <thead>
                                               <tr>
                                                  <th>Tail</th>
                                                  <th>Make</th>
                                                  <th>Model</th>
                                                  <th>Size</th>
                                                  <th>Margin</th>
                                               </tr>
                                            </thead>
                                            <tbody>
                                               <tr>
                                                  <td>
                                                     <input type="text" style="width:100px;" ng-model="aircraft.tail" class="form-control">
                                                  </td>
                                                  <td style="width: 25%;">
                                                     <select class="form-control" ng-model="aircraft.make" ng-change="getModal()">
                                                        <option ng-repeat="make in aircraftMakeList">{{make}}</option>
                                                     </select>
                                                  </td>
                                                  <td style="width: 20%;">
                                                     <select class="form-control" ng-model="aircraft.model" ng-change="getSize()">
                                                        <option ng-repeat="model in aircraftModalList">{{model}}</option>
                                                     </select>
                                                  </td>
                                                  <td style="width: 25%;">
                                                     <select class="form-control" ng-model="aircraft.size">
                                                        <option ng-repeat="size in aircraftSizeList">{{size}}</option>
                                                     </select>
                                                  </td>
                                                  <td>
                                                     <select class="form-control">
                                                        <option>Margin1</option>
                                                        <option>Margin2</option>
                                                     </select>
                                                  </td>
                                               </tr>
                                            </tbody>
  
                                         </table> -->
                                        <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>
                                                  <th>JET A Margin</th>
                                                  <th>AVGS 100LL Margin</th>
                                              </tr>
                                          </thead>
                                          <tbody>
                                              <tr ng-repeat="aircraftData in aircraftDetails track by $index">
                                                  <!-- <td>
                                                      <input type="checkbox" ng-model="aircraftData.selected"/>
                                                  </td> -->
                                                  <td style="width: 15%">
e33b4556c   Kuldeep Arora   bugs resolved
440
                                                      <input type="text" class="form-control" ng-model="aircraftData.tail" ng-blur="checkJetWithTail(aircraftData.tail, $index)" required/>
6284a85b9   Jaideep Singh   fuel orders page ...
441
442
443
                                                  </td>
                                                  <td style="width: 17%">
                                                      <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)">
e33b4556c   Kuldeep Arora   bugs resolved
444
                                                        <option ng-repeat="make in aircraftMakeList | orderBy">{{make}}</option>
6284a85b9   Jaideep Singh   fuel orders page ...
445
446
447
448
449
                                                        <option value="" disabled>Select...</option>
                                                      </select>
                                                  </td>
                                                  <td style="width: 17%">
                                                      <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)">
e33b4556c   Kuldeep Arora   bugs resolved
450
                                                          <option ng-repeat="model in aircraftData.aircraftModalList | orderBy">{{model}}</option>
6284a85b9   Jaideep Singh   fuel orders page ...
451
452
453
454
                                                          <option value="" disabled>Select...</option>
                                                      </select>
                                                  </td>
                                                  <td style="width: 17%">
e33b4556c   Kuldeep Arora   bugs resolved
455
                                                    <!-- <select class="form-control" ng-model="aircraftData.sizeId" ng-options="size.aircraftSize.id as size.aircraftSize.size for size in aircraftData.aircraftSizeList">
6284a85b9   Jaideep Singh   fuel orders page ...
456
                                                      <option value="" disabled>Select...</option>
e33b4556c   Kuldeep Arora   bugs resolved
457
458
459
460
                                                    </select> -->
                                                    <select class="form-control" ng-model="aircraftData.sizeId">
                                                        <option value="" disabled>Select</option>
                                                        <option ng-repeat="size in aircraftData.aircraftSizeList" value="{{size.aircraftSize.id}}">{{size.aircraftSize.size}}</option>
6284a85b9   Jaideep Singh   fuel orders page ...
461
462
463
464
465
466
                                                    </select>
                                                      <!-- <select class="form-control" ng-model="aircraftData.size">
                                                        <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option>
                                                      </select> -->
                                                  </td>
                                                  <td style="width: 17%">
e33b4556c   Kuldeep Arora   bugs resolved
467
                                                    <!-- <select class="form-control" ng-model="aircraftData.marginId" ng-options="margin.id as margin.marginName for margin in jetMarginList">
6284a85b9   Jaideep Singh   fuel orders page ...
468
                                                      <option value="" disabled>Select...</option>
e33b4556c   Kuldeep Arora   bugs resolved
469
470
471
472
                                                    </select> -->
                                                    <select class="form-control" ng-model="aircraftData.marginId" ng-disabled="jetShow[$index]">
                                                        <option value="" disabled>Select</option>
                                                        <option ng-repeat="margin in jetMarginList" value="{{margin.id}}">{{margin.marginName}}</option>
6284a85b9   Jaideep Singh   fuel orders page ...
473
474
475
                                                    </select>
                                                  </td>
                                                  <td style="width: 17%">
e33b4556c   Kuldeep Arora   bugs resolved
476
                                                   <!-- <select class="form-control marginSelectBox" ng-model="aircraftData.avgasMarginId" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList">
6284a85b9   Jaideep Singh   fuel orders page ...
477
                                                      <option value="" disabled>Select...</option>
e33b4556c   Kuldeep Arora   bugs resolved
478
479
480
481
                                                    </select> -->
                                                    <select class="form-control" ng-model="aircraftData.avgasMarginId" ng-disabled="marginShow[$index]">
                                                        <option value="" disabled>Select</option>
                                                        <option ng-repeat="avgs in avgsMarginList" value="{{avgs.id}}">{{avgs.marginName}}</option>
6284a85b9   Jaideep Singh   fuel orders page ...
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
                                                    </select>
                                                  </td>
                                              </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 class="col-xs-12" style="margin-bottom: 20px;">
                                   <div class="pull-right">
                                      <button type="button" class="btn btn-default" ng-click="cancelCraft()">Cancel</button>
                                      <button type="button" class="btn btn-warning" ng-click="goBack()">Go Back</button>
                                      <button type="button" class="btn btn-success" ng-click="goBack()">Save</button>
                                   </div>
                                </div> -->
                             </div>
                          </div>
                          <div class="clearfix"></div>
                       </div>
                    </div>
                 </div>
              </div>
              <!-- <div class="modal-body step-3" data-step="3">
                  This is the final step.
              </div> -->
              <div class="modal-footer" style="border-top: 0;">
                  <button type="button" class="btn btn-default" ng-click="reset2()" data-dismiss="modal">Cancel</button>
                  <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="addFirstData('#demo-modal-3', 2)">Next: Add Aircraft</button>
                  <button type="button" class="btn btn-primary step step-2" data-step="2" onclick="sendEvent('#demo-modal-3', 1)">Go Back</button>
                  <!-- <button type="button" class="btn btn-primary step step-2" data-step="2" onclick="sendEvent('#demo-modal-3', 3)">Continue</button> -->
                  <button type="button" class="btn btn-success step step-2" data-step="2" ng-click="saveCompanyData()">Save</button>
              </div>
          </div>
      </div>
  </form>
4bb02bb84   Rishav   new integration w...
522
     
6284a85b9   Jaideep Singh   fuel orders page ...
523
524
  
  <form class="modal multi-step" id="demo-modal-4" name="fuelOrderForm">
60b62c053   Kuldeep Arora   redesign of direc...
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
     <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;">
                          <div class="widget-header">
                             <i class="icon-pencil"></i>
                             <i class="fa fa-tasks" aria-hidden="true"></i>
                             <h3>Add a Fuel Order</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-xs-12">
6284a85b9   Jaideep Singh   fuel orders page ...
541
542
543
  
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
60b62c053   Kuldeep Arora   redesign of direc...
544
                                         <label class="new-input-label"><b>Company</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
545
546
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
60b62c053   Kuldeep Arora   redesign of direc...
547
548
549
550
                                          <select ui-select2 ng-model="order.companyName" ng-change="getAircraft(order.companyName)" style="width: 100%;" required>
                                          <option value="" selected disabled>Select Company</option>
                                          <option ng-repeat="list in companyList">{{list.companyName}}</option>
                                        </select>
6284a85b9   Jaideep Singh   fuel orders page ...
551
552
553
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
60b62c053   Kuldeep Arora   redesign of direc...
554
                                   <div class="col-md-6">
6284a85b9   Jaideep Singh   fuel orders page ...
555
                                      <div class="pull-left" style="width: 110px;">
60b62c053   Kuldeep Arora   redesign of direc...
556
                                         <label class="new-input-label"><b>Product</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
557
558
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
d1e8d9afb   Kuldeep Arora   fuel order & home...
559
                                         <select class="form-control" ng-model="order.priceQuote" ng-change="setCost(order.priceQuote);addTotal(order.priceQuote, order.volume)" required>
60b62c053   Kuldeep Arora   redesign of direc...
560
561
562
                                        <option value="" selected disabled>Select Product</option>
                                        <option ng-repeat="margin in marginList" value="{{margin}}">${{margin.papTotal | number : 4}} {{margin.productName}}</option>
                                      </select>
6284a85b9   Jaideep Singh   fuel orders page ...
563
564
565
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
60b62c053   Kuldeep Arora   redesign of direc...
566
567
568
569
                                  
                           </div>
                                <div class="clearfix"></div>
                                <br/> 
6284a85b9   Jaideep Singh   fuel orders page ...
570

60b62c053   Kuldeep Arora   redesign of direc...
571
572
  
                            <div class="col-xs-12">
6284a85b9   Jaideep Singh   fuel orders page ...
573
574
575
  
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
60b62c053   Kuldeep Arora   redesign of direc...
576
                                         <label class="new-input-label"><b>Aircraft</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
577
578
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
60b62c053   Kuldeep Arora   redesign of direc...
579
580
581
582
                                          <select class="form-control" ng-model="order.aircraftName" required>
                                          <option selected disabled value="">Select Aircraft</option>
                                          <option ng-repeat="list in aircraftList" value="{{list}}">{{list.tail}}</option>
                                        </select>
6284a85b9   Jaideep Singh   fuel orders page ...
583
584
585
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
60b62c053   Kuldeep Arora   redesign of direc...
586
                                   <div class="col-md-6">
6284a85b9   Jaideep Singh   fuel orders page ...
587
                                      <div class="pull-left" style="width: 110px;">
60b62c053   Kuldeep Arora   redesign of direc...
588
                                         <label class="new-input-label"><b>Volume</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
589
590
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
d1e8d9afb   Kuldeep Arora   fuel order & home...
591
                                          <input type="text" ng-model="order.volume" ng-keyup="addTotal(order.priceQuote, order.volume)" class="form-control"  placeholder="" required>
6284a85b9   Jaideep Singh   fuel orders page ...
592
593
594
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
8d682e773   Mr. Hot Foods   changes in fuel o...
595
                                  
60b62c053   Kuldeep Arora   redesign of direc...
596
                           </div>
6284a85b9   Jaideep Singh   fuel orders page ...
597
                                <div class="clearfix"></div>
60b62c053   Kuldeep Arora   redesign of direc...
598
                                <br/> 
6284a85b9   Jaideep Singh   fuel orders page ...
599

60b62c053   Kuldeep Arora   redesign of direc...
600
601
602
                              <div class="col-xs-12">
  
                                   <div class="col-md-6">
6284a85b9   Jaideep Singh   fuel orders page ...
603
                                      <div class="pull-left" style="width: 110px;">
60b62c053   Kuldeep Arora   redesign of direc...
604
                                         <label class="new-input-label" style="margin-top: 25px;"><b>ETA</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
605
                                      </div>
60b62c053   Kuldeep Arora   redesign of direc...
606
607
608
                                      <div class="pull-left" style="width: calc(100% - 110px);">  
                                        <div style="width: 50%; float: left;">
                                          Date 
a4004862d   Kuldeep Arora   UI fuel order
609
                                           <input type="text" style="width: 90%;" ng-model="order.upliftDate" class="form-control"  placeholder="" datepicker required/>
60b62c053   Kuldeep Arora   redesign of direc...
610
611
612
                                         </div>
                                         <div style="width: 50%; float: left;">
                                          Time 
a4004862d   Kuldeep Arora   UI fuel order
613
                                            <select class="form-control" ng-model="order.etaTime" style="width: 100%;" required>
60b62c053   Kuldeep Arora   redesign of direc...
614
615
616
617
                                               <option ng-repeat="li in etaTimeList">{{li.time}}</option>
                                           </select>
                                              
                                        </div>
6284a85b9   Jaideep Singh   fuel orders page ...
618
619
620
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
60b62c053   Kuldeep Arora   redesign of direc...
621
                                
d1e8d9afb   Kuldeep Arora   fuel order & home...
622
                                <div class="col-md-6" style="margin-top: 22px;" ng-if ="order.status === 'invoiced'">
6284a85b9   Jaideep Singh   fuel orders page ...
623
                                      <div class="pull-left" style="width: 110px;">
60b62c053   Kuldeep Arora   redesign of direc...
624
                                         <label class="new-input-label"><b>Invoiced</b></label>
e33b4556c   Kuldeep Arora   bugs resolved
625
                                         <span style="margin-top: 6px; margin-right: 3px; float: right;">$</span>
6284a85b9   Jaideep Singh   fuel orders page ...
626
627
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
d1e8d9afb   Kuldeep Arora   fuel order & home...
628
                                         <input type="text" ng-model="order.invoiced" class="form-control"  placeholder="">
6284a85b9   Jaideep Singh   fuel orders page ...
629
630
631
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
60b62c053   Kuldeep Arora   redesign of direc...
632
633
                              </div>
                                <div class="clearfix"></div><br>
6284a85b9   Jaideep Singh   fuel orders page ...
634

60b62c053   Kuldeep Arora   redesign of direc...
635
636
637
638
  
                             <div class="col-xs-12">
  
                                   <div class="col-md-6">
6284a85b9   Jaideep Singh   fuel orders page ...
639
                                      <div class="pull-left" style="width: 110px;">
60b62c053   Kuldeep Arora   redesign of direc...
640
                                         <label class="new-input-label" style="margin-top: 25px;"><b>ETD</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
641
                                      </div>
60b62c053   Kuldeep Arora   redesign of direc...
642
643
644
                                      <div class="pull-left" style="width: calc(100% - 110px);">  
                                        <div style="width: 50%; float: left;">
                                          Date
084c4873b   Kuldeep Arora   validation for re...
645
                                           <input type="text" style="width: 90%;" ng-model="order.departingDate" class="form-control"  placeholder="" datepicker/>
60b62c053   Kuldeep Arora   redesign of direc...
646
647
648
                                         </div>
                                         <div style="width: 50%; float: left;">
                                          Time 
084c4873b   Kuldeep Arora   validation for re...
649
                                            <select class="form-control" ng-model="order.etdTime" style="width: 100%;">
60b62c053   Kuldeep Arora   redesign of direc...
650
651
652
653
                                               <option ng-repeat="list in etdTimeList">{{list.time}}</option>
                                           </select>
                                              
                                        </div>
6284a85b9   Jaideep Singh   fuel orders page ...
654
655
                                      </div>
                                      <div class="clearfix"></div>
39e7ed85d   Kuldeep Arora   minor changes
656
                                   </div>
60b62c053   Kuldeep Arora   redesign of direc...
657
658
                                
                                <div class="col-md-6" style="margin-top: 22px;"> 
6284a85b9   Jaideep Singh   fuel orders page ...
659
                                      <div class="pull-left" style="width: 110px;">
60b62c053   Kuldeep Arora   redesign of direc...
660
661
                                         <label class="new-input-label"><b>Total</b></label>
                                         <span style="margin-top: 6px; margin-right: 3px; float: right;">$</span>
6284a85b9   Jaideep Singh   fuel orders page ...
662
                                      </div>
60b62c053   Kuldeep Arora   redesign of direc...
663
664
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <input type="text" class="form-control" disabled ng-model="order.total | number : 4" placeholder="" ng-value="{{order.volume * order.invoiced}}">
6284a85b9   Jaideep Singh   fuel orders page ...
665
                                      </div>
60b62c053   Kuldeep Arora   redesign of direc...
666
667
668
                              </div>
                            </div>
                                <div class="clearfix"></div><br>
6284a85b9   Jaideep Singh   fuel orders page ...
669

60b62c053   Kuldeep Arora   redesign of direc...
670
671
672
673
  
                              <div class="col-xs-12">
  
                                   <div class="col-md-6">
6284a85b9   Jaideep Singh   fuel orders page ...
674
                                      <div class="pull-left" style="width: 110px;">
60b62c053   Kuldeep Arora   redesign of direc...
675
                                         <label class="new-input-label"><b>Fuel on</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
676
677
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
60b62c053   Kuldeep Arora   redesign of direc...
678
                                        <select class="form-control" ng-model="order.fuelOn"  style="width: 100%;">
20f645d6f   Kuldeep Arora   fuelorder
679
                                              <option value="" disabled selected hidden>Arrival</option>
60b62c053   Kuldeep Arora   redesign of direc...
680
681
682
                                              <option value="Arrival">Arrival</option>
                                              <option value="Departure">Departure</option>
                                          </select>
6284a85b9   Jaideep Singh   fuel orders page ...
683
684
685
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
60b62c053   Kuldeep Arora   redesign of direc...
686
                                   
8d682e773   Mr. Hot Foods   changes in fuel o...
687
688
689
                                    <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>FBO Cost</b></label>
e33b4556c   Kuldeep Arora   bugs resolved
690
                                         <span style="margin-top: 6px; margin-right: 3px; float: right;">$</span>
8d682e773   Mr. Hot Foods   changes in fuel o...
691
692
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
e33b4556c   Kuldeep Arora   bugs resolved
693
                                         <input type="text"  disabled ng-model="order.fboCost" class="form-control"  placeholder="0.0000" valid-number />
8d682e773   Mr. Hot Foods   changes in fuel o...
694
695
696
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
60b62c053   Kuldeep Arora   redesign of direc...
697
698
                             </div>
                                <div class="clearfix"></div><br>
6284a85b9   Jaideep Singh   fuel orders page ...
699

60b62c053   Kuldeep Arora   redesign of direc...
700
701
702
703
704
705
                             <div class="col-xs-12">
                                <div class="col-md-6">
                                   <div class="pull-left" style="width: 110px;">
                                           <label class="new-input-label"><b>Source</b></label>
                                        </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
6c795a9f9   Kuldeep Arora   tenant/caa status...
706
707
708
                                         <div style="font-weight: normal;" ng-if="baseTenant && !contractFuelVendor">Tenant/Base Customer</br></div>
                                         <div style="font-weight: normal;" ng-if="contractFuelVendor && !baseTenant">CAA Member</div>
                                         <div style="font-weight: normal;" ng-if="contractFuelVendor && baseTenant">Tenant/CAA</div>
0173d74ad   Kuldeep Arora   source autopopula...
709
                                         <!-- <select class="form-control" ng-model="order.source"  style="width: 100%;">
60b62c053   Kuldeep Arora   redesign of direc...
710
711
712
713
                                              <option value="" disabled selected hidden>Select Source</option>
                                              <option value="Tenant">Tenant</option>
                                              <option value="CAA">CAA</option>
                                              <option value="Tenant/CAA">Tenant/CAA</option>
0173d74ad   Kuldeep Arora   source autopopula...
714
                                          </select> -->
60b62c053   Kuldeep Arora   redesign of direc...
715
716
                                      </div>
                                      <div class="clearfix"></div>
6284a85b9   Jaideep Singh   fuel orders page ...
717
                                </div>
60b62c053   Kuldeep Arora   redesign of direc...
718
719
720
721
722
723
724
725
726
727
728
                             </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>Certificate Type</b></label>
                                      </div>
                                       <div class="pull-left" style="width: calc(100% - 110px);">
0173d74ad   Kuldeep Arora   source autopopula...
729
                                            <select class="form-control" disabled ng-model="order.certificateType"  style="width: 100%;">
60b62c053   Kuldeep Arora   redesign of direc...
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
                                             <option value="" disabled selected hidden>Select...</option>
                                             <option value="corporate">Part 91 (Corporate)</option>
                                             <option value="charter">Part 135 (Charter)</option>
                                             <option value="scheduled">Part 121 (Scheduled)</option>
                                             <option value="military">Military</option>
                                             <option value="government">Government</option>
                                          </select>
                                       </div>
                                    <div class="clearfix"></div>
                                    </div>
                                     <div class="col-md-6">
                                        <div class="pull-left" style="width: 110px;">
                                           <label class="new-input-label"><b>Status</b></label>
                                        </div>
                                        <div class="pull-left" style="width: calc(100% - 110px);">
                                           <select  class="form-control" ng-model="order.status"  style="width: 100%;">
084c4873b   Kuldeep Arora   validation for re...
746
                                              <option value=""  disabled selected hidden>pending</option>
d1e8d9afb   Kuldeep Arora   fuel order & home...
747
                                              <option value="pending">pending</option> 
60b62c053   Kuldeep Arora   redesign of direc...
748
749
                                              <option value="invoiced">invoiced</option>
                                              <option value="paid">paid</option>
d1e8d9afb   Kuldeep Arora   fuel order & home...
750
751
                                              <!-- <option value="cancelled">cancelled</option>
                                              <option value="archived">archived</option> -->
60b62c053   Kuldeep Arora   redesign of direc...
752
753
754
755
756
757
                                           </select>
                                        </div>
                                        <div class="clearfix"></div>
                                  </div>
                            </div>
                            <div class="clearfix"></div><br>
6284a85b9   Jaideep Singh   fuel orders page ...
758

6284a85b9   Jaideep Singh   fuel orders page ...
759
760
                             </div>
                          </div>
6284a85b9   Jaideep Singh   fuel orders page ...
761
762
763
764
                       </div>
                    </div>
                 </div>
              </div>
6284a85b9   Jaideep Singh   fuel orders page ...
765
              <div class="modal-footer" style="border-top: 0;">
60b62c053   Kuldeep Arora   redesign of direc...
766
767
768
769
770
771
                 <button type="button" class="btn btn-default" ng-click="cancelData()" data-dismiss="modal">Cancel</button>
                 <button type="button" class="btn btn-primary step step-1" data-step="1" ng-disabled="fuelOrderForm.$invalid" ng-click="addFuelData()">Save</button>
              </div>
           </div>
        </div>
     </div>
6284a85b9   Jaideep Singh   fuel orders page ...
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
  </form>
  
  
   <form class="modal multi-step" id="demo-modal-5" name="fuelOrderUpdateForm">
      <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;">
                             <div class="widget-header">
                                <i class="icon-pencil"></i>
                                <i class="fa fa-tasks" aria-hidden="true"></i>
                                <h3>Update Fuel Order</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-xs-12">
  
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
7e0d0bdd5   Kuldeep Arora   update fuel order UI
795
                                         <label class="new-input-label" style="margin-top: 25px;"><b>ETA</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
796
                                      </div>
7e0d0bdd5   Kuldeep Arora   update fuel order UI
797
798
799
800
801
                                      <div class="pull-left" style="width: calc(100% - 110px);">  
                                        <div style="width: 50%; float: left;">
                                          Date
                                           <input type="text" style="width: 90%;" ng-model="editdata.upliftDateString" class="form-control"  placeholder="" datepicker/>
                                         </div>
7e0d0bdd5   Kuldeep Arora   update fuel order UI
802
                                         <div style="width: 50%; float: left;">
ffe62a0ef   Kuldeep Arora   time field displa...
803
804
                                          Time 
                                            <select class="form-control" ng-model="editdata.etaTime" style="width: 90%;">
7e0d0bdd5   Kuldeep Arora   update fuel order UI
805
806
                                               <option ng-repeat="li in etaTimeList">{{li.time}}</option>
                                           </select>
731e27f5e   Kuldeep Arora   fuel order ui
807
                                              
7e0d0bdd5   Kuldeep Arora   update fuel order UI
808
                                        </div>
6284a85b9   Jaideep Singh   fuel orders page ...
809
810
811
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
7e0d0bdd5   Kuldeep Arora   update fuel order UI
812
                                   <div class="col-md-6" style="margin-top: 25px;">
6284a85b9   Jaideep Singh   fuel orders page ...
813
                                      <div class="pull-left" style="width: 110px;">
8d682e773   Mr. Hot Foods   changes in fuel o...
814
                                         <label class="new-input-label"><b>Volume</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
815
816
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
8d682e773   Mr. Hot Foods   changes in fuel o...
817
                                         <input type="text" ng-model="editdata.requestedVolume" ng-keyup="updateTotal(editdata.requestedVolume,'v')" class="form-control"  placeholder="">
6284a85b9   Jaideep Singh   fuel orders page ...
818
819
820
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
7e0d0bdd5   Kuldeep Arora   update fuel order UI
821
822
823
824
825
826
827
828
829
830
831
832
833
834
                                </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>ETD</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">  
                                        <div style="width: 50%; float: left;">
                                           <input type="text" style="width: 90%"  ng-model="editdata.departingDateString" class="form-control"  placeholder="" datepicker/>
                                       </div> 
                                       <div style="width: 50%; float: left;">
ffe62a0ef   Kuldeep Arora   time field displa...
835
                                          <select class="form-control" ng-model="editdata.etdTime" style="width: 90%;">
7e0d0bdd5   Kuldeep Arora   update fuel order UI
836
837
838
839
840
841
842
843
844
845
                                               <option ng-repeat="list in etdTimeList">{{list.time}}</option>
                                           </select>
                                        </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>Fuel on</b></label>
                                      </div>
731e27f5e   Kuldeep Arora   fuel order ui
846
847
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                        <select class="form-control" ng-model="editdata.fuelOn"  style="width: 100%;">
20f645d6f   Kuldeep Arora   fuelorder
848
                                              <option value="" disabled selected hidden>Arrival</option>
731e27f5e   Kuldeep Arora   fuel order ui
849
850
                                              <option value="Arrival">Arrival</option>
                                              <option value="Departure">Departure</option>
731e27f5e   Kuldeep Arora   fuel order ui
851
                                          </select>
7e0d0bdd5   Kuldeep Arora   update fuel order UI
852
853
854
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
6284a85b9   Jaideep Singh   fuel orders page ...
855
856
857
858
859
860
861
862
863
864
                                </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>Company</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
7e0d0bdd5   Kuldeep Arora   update fuel order UI
865
                                          {{editdata.companyName}} 
6284a85b9   Jaideep Singh   fuel orders page ...
866
867
868
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
8d682e773   Mr. Hot Foods   changes in fuel o...
869
                                   <div class="col-md-6">
6284a85b9   Jaideep Singh   fuel orders page ...
870
                                      <div class="pull-left" style="width: 110px;">
8d682e773   Mr. Hot Foods   changes in fuel o...
871
                                         <label class="new-input-label"><b>Invoiced</b></label>
2075411ed   Kuldeep Arora   create fuel order...
872
                                          <span style="margin-top: 6px; margin-right: 3px; float: right;">$</span>
6284a85b9   Jaideep Singh   fuel orders page ...
873
874
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
8d682e773   Mr. Hot Foods   changes in fuel o...
875
                                         <input type="text" ng-model="editdata.invoiced" ng-keyup="updateTotal(editdata.invoiced,'i')" class="form-control"  placeholder="">
6284a85b9   Jaideep Singh   fuel orders page ...
876
877
878
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
8d682e773   Mr. Hot Foods   changes in fuel o...
879
                                  
6284a85b9   Jaideep Singh   fuel orders page ...
880
881
882
883
884
885
                                    </div>
                                <div class="clearfix"></div>
                                <br/>
                               
                                
                               <div class="col-xs-12">
8d682e773   Mr. Hot Foods   changes in fuel o...
886
                                    <div class="col-md-6">
6284a85b9   Jaideep Singh   fuel orders page ...
887
                                      <div class="pull-left" style="width: 110px;">
8d682e773   Mr. Hot Foods   changes in fuel o...
888
                                         <label class="new-input-label"><b>Tail #</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
889
890
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
8d682e773   Mr. Hot Foods   changes in fuel o...
891
                                          {{editdata.aircraftName}}
6284a85b9   Jaideep Singh   fuel orders page ...
892
893
894
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
8d682e773   Mr. Hot Foods   changes in fuel o...
895
                                    <div class="col-md-6">
6284a85b9   Jaideep Singh   fuel orders page ...
896
                                      <div class="pull-left" style="width: 110px;">
8d682e773   Mr. Hot Foods   changes in fuel o...
897
                                         <label class="new-input-label"><b>Total</b></label>
2075411ed   Kuldeep Arora   create fuel order...
898
                                          <span style="margin-top: 6px; margin-right: 3px; float: right;">$</span>
6284a85b9   Jaideep Singh   fuel orders page ...
899
900
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
7e0d0bdd5   Kuldeep Arora   update fuel order UI
901
                                         <input type="text" class="form-control" disabled ng-model="editdata.total | number : 4" placeholder="" ng-value="{{editdata.requestedVolume * editdata.invoiced}}">
6284a85b9   Jaideep Singh   fuel orders page ...
902
903
904
905
906
907
908
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div>
                                <br/>
                                <div class="col-xs-12">
8d682e773   Mr. Hot Foods   changes in fuel o...
909
910
                                  
                                     <div class="col-md-6">
6284a85b9   Jaideep Singh   fuel orders page ...
911
                                      <div class="pull-left" style="width: 110px;">
8d682e773   Mr. Hot Foods   changes in fuel o...
912
                                         <label class="new-input-label"><b>Source</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
913
914
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
f5c86d6b8   Kuldeep Arora   minor update
915
                                         <select class="form-control" ng-model="editdata.source"  style="width: 100%;">
731e27f5e   Kuldeep Arora   fuel order ui
916
                                              <option value="" disabled selected hidden>Select Source</option>
f5c86d6b8   Kuldeep Arora   minor update
917
918
919
                                              <option value="Tenant">Tenant</option>
                                              <option value="CAA">CAA</option>
                                              <option value="Tenant/CAA">Tenant/CAA</option>
5fe941ac6   Kuldeep Arora   update fuel
920
                                          </select>
6284a85b9   Jaideep Singh   fuel orders page ...
921
922
923
924
925
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                    <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
7e0d0bdd5   Kuldeep Arora   update fuel order UI
926
                                         <label class="new-input-label"><b>Product</b></label>
6284a85b9   Jaideep Singh   fuel orders page ...
927
928
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
7e0d0bdd5   Kuldeep Arora   update fuel order UI
929
                                         {{editdata.productName}}
6284a85b9   Jaideep Singh   fuel orders page ...
930
931
932
933
934
935
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div>
                                <br/>
6284a85b9   Jaideep Singh   fuel orders page ...
936

7e0d0bdd5   Kuldeep Arora   update fuel order UI
937
                                 <div class="col-xs-12">
6284a85b9   Jaideep Singh   fuel orders page ...
938
939
940
941
942
943
                                   
                                  <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Status</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
f5c86d6b8   Kuldeep Arora   minor update
944
                                        <select class="form-control" ng-model="editdata.status"  style="width: 100%;">
731e27f5e   Kuldeep Arora   fuel order ui
945
                                            <option value="" disabled selected hidden>Select Status</option>
f5c86d6b8   Kuldeep Arora   minor update
946
947
948
949
950
                                            <option value="pending">pending</option>
                                            <option value="invoiced">invoiced</option>
                                            <option value="paid">paid</option>
                                            <option value="cancelled">cancelled</option>
                                            <option value="archived">archived</option>
5fe941ac6   Kuldeep Arora   update fuel
951
                                         </select>
6284a85b9   Jaideep Singh   fuel orders page ...
952
953
954
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
7e0d0bdd5   Kuldeep Arora   update fuel order UI
955
956
957
958
959
960
961
962
963
964
965
966
967
968
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Certificate Type</b></label>
                                      </div>
                                   <div class="pull-left" style="width: calc(100% - 110px);">
                                        <select class="form-control" ng-model="editdata.certificateType"  style="width: 100%;" required>
                                         <option value="" disabled selected hidden>Select...</option>
                                         <option value="corporate">Part 91 (Corporate)</option>
                                         <option value="charter">Part 135 (Charter)</option>
                                         <option value="scheduled">Part 121 (Scheduled)</option>
                                         <option value="military">Military</option>
                                         <option value="government">Government</option>
                                      </select>
                                   </div>
6284a85b9   Jaideep Singh   fuel orders page ...
969
970
971
972
                                </div>
                                <div class="clearfix"></div>
                                <br/>
                                <div class="col-xs-12">
6284a85b9   Jaideep Singh   fuel orders page ...
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
                                </div>
                                <div class="clearfix"></div>
                                <br/>
                                <div class="col-xs-12">
  
                                </div>
                                <div class="clearfix"></div>
                              
                             </div>
                          </div>
                          <div class="clearfix"></div>
                       </div>
                    </div>
                 </div>
              </div>
             
              <div class="modal-footer" style="border-top: 0;">
                  <button type="button" class="btn btn-default" ng-click="canceleditdata()" data-dismiss="modal">Cancel</button>
8d682e773   Mr. Hot Foods   changes in fuel o...
991
                  <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="updateData()">Save</button>
6284a85b9   Jaideep Singh   fuel orders page ...
992
993
994
995
996
             </div>
          </div>
      </div>
  </div>
  </form>
dd378d69f   Mr. Hot Foods   changes in flight...
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
  <form class="modal multi-step" id="demo-modal-6" name="uploadAttachmentForm">
      <div class="modal-dialog modal-xs">
          <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;">
                             <div class="widget-header">
                                <i class="icon-pencil"></i>
                                <i class="fa fa-tasks" aria-hidden="true"></i>
                                <h3>Upload Attachment</h3>
                                <div class="clearfix"></div>
                             </div>
                             <div class="widget-content" style="padding-left: 0; padding-right: 0; border-bottom: 0;">
                        <div class="col-xs-6">
                              <div class="col-xs-6">
  
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <label class="new-input-label"><b>Upload</b></label>
64e7e5f50   Mr. Hot Foods   view upload delet...
1018
1019
                                         <br>
                                         <br>
dd378d69f   Mr. Hot Foods   changes in flight...
1020
1021
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
64e7e5f50   Mr. Hot Foods   view upload delet...
1022
                                         <input type="file" accept=".pdf" file-model = "uploadFile.attachment">
dd378d69f   Mr. Hot Foods   changes in flight...
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
                                         <!--<md-datepicker ng-model="myDate" md-placeholder="Enter date"></md-datepicker>-->
                                      </div>
                                      <div class="clearfix"></div>
                                   </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;">
                  <button type="button" class="btn btn-default" ng-click="cancelUploadAttachment()" data-dismiss="modal">Cancel</button>
                  <button type="button" class="btn btn-primary step step-1" data-step="1" ng-click="saveUploadAttachment(uploadFile.attachment)">Upload</button>
             </div>
          </div>
      </div>
  </div>
  </form>
c277275bb   Mr. Hot Foods   login changes
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
  <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;">Are you sure you want to delete the attachment?</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="deleteAttachment()">Yes</button>
           <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelDeleteAttachment()">No</button>
        </div>
     </div>
  </div>
6284a85b9   Jaideep Singh   fuel orders page ...
1066
1067
1068
1069
  
  
  <div class="myLoader" ng-show="showLoader">
     <img src="../img/hourglass.gif" width="50px;">
4bb02bb84   Rishav   new integration w...
1070
  </div>
6284a85b9   Jaideep Singh   fuel orders page ...
1071
1072
1073
1074
1075
1076
  <script src="js/multi-step-modal.js"></script>
  <script>
  sendEvent = function(sel, step) {
      $(sel).trigger('next.m.' + step);
  }
  </script>
7e0d0bdd5   Kuldeep Arora   update fuel order UI
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
  
  <script>
    angular.module("KendoDemos", [ "kendo.directives" ])
        .controller("MyCtrl", function($scope){
            $scope.getType = function(x) {
                return typeof x;
            };
            $scope.isDate = function(x) {
                return x instanceof Date;
            };
        })
  </script>