Blame view

app/partials/customers/customers.html 29.8 KB
feacde5ff   Rishav   setup acuefuel in...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <style>
     .subnavbar .mainnav > li:nth-child(3) > a{
     color: #ff9900;
     }
  </style>
  <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">
                       <ul class="nav nav-tabs">
                          <li class="active">
4bb02bb84   Rishav   new integration w...
15
16
17
18
19
20
21
22
23
24
25
26
27
                             <a ui-sref="app.customers">Company View 
                                <i class="fa fa-caret-down" aria-hidden="true"></i>
                             </a>
                          </li>
                          <li>
                             <a ui-sref="app.ContactView">Contact View 
                                <i class="fa fa-caret-down" aria-hidden="true"></i>
                             </a>
                          </li>
                          <li>
                             <a ui-sref="app.FuelVendors">Fuel Vendors 
                                <i class="fa fa-caret-down" aria-hidden="true"></i>
                             </a>
feacde5ff   Rishav   setup acuefuel in...
28
                          </li>
feacde5ff   Rishav   setup acuefuel in...
29
                          <li style="margin: 0px 10px 4px 40px;"><input type="text" style="height:31px;"class="form-control" name="name" id="name" placeholder="Search In Table"></li>
4bb02bb84   Rishav   new integration w...
30
31
                          <li><button type="button" class="btn btn-default btn-sm">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>
feacde5ff   Rishav   setup acuefuel in...
32
                       </ul>
4bb02bb84   Rishav   new integration w...
33
34
                       <br>  
                       <div class="tab-content customer-table" style="margin:0px">
feacde5ff   Rishav   setup acuefuel in...
35
                          <div class="tab-pane active" id="companyView">
2c476c756   Anchit Jindal   added new code
36
                             <table class="table table-striped">
feacde5ff   Rishav   setup acuefuel in...
37
38
39
                                <thead>
                                   <tr>
                                      <th>
4bb02bb84   Rishav   new integration w...
40
41
                                         <input type="text" class="form-control" name="name" id="name">
                                         <label class="font-company">Company Name <i class="fa fa-sort" aria-hidden="true"></i></label>
feacde5ff   Rishav   setup acuefuel in...
42
43
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
44
45
                                         <input type="text" class="form-control" name="name" id="name">
                                         <label class="font-company">Fleet <i class="fa fa-sort" aria-hidden="true"></i></label>
feacde5ff   Rishav   setup acuefuel in...
46
47
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
48
49
                                         <input type="text" class="form-control" name="name" id="name">
                                         <label class="font-company">Main Phone <i class="fa fa-sort" aria-hidden="true"></i></label>
feacde5ff   Rishav   setup acuefuel in...
50
51
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
52
53
                                         <input type="text" class="form-control" name="name" id="name">
                                         <label class="font-company">Primary Contact <i class="fa fa-sort" aria-hidden="true"></i></label>
feacde5ff   Rishav   setup acuefuel in...
54
55
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
56
57
                                         <input type="text" class="form-control" name="name" id="name">
                                         <label class="font-company">Base <i class="fa fa-sort" aria-hidden="true"></i></label>
feacde5ff   Rishav   setup acuefuel in...
58
59
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
60
61
62
63
                                         <select class="form-control">
                                            <option value="showAll" selected>Show All</option>
                                         </select>
                                         <label class="font-company">Status <i class="fa fa-sort" aria-hidden="true"></i></label>
feacde5ff   Rishav   setup acuefuel in...
64
65
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
66
67
68
69
                                         <select class="form-control">
                                            <option value="showAll" selected>Show All</option>
                                         </select>
                                         <label class="font-company">Margin Setting <i class="fa fa-sort" aria-hidden="true"></i></label>
feacde5ff   Rishav   setup acuefuel in...
70
71
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
72
73
                                         <input type="text" class="form-control"  name="name" id="name">
                                         <label class="font-company">All In <i class="fa fa-sort" aria-hidden="true"></i></label>
feacde5ff   Rishav   setup acuefuel in...
74
                                      </th>
4bb02bb84   Rishav   new integration w...
75
                                      <th> &nbsp; </th>
feacde5ff   Rishav   setup acuefuel in...
76
77
                                </thead>
                                <tbody>
55e075d7e   Rishav   add contact, add ...
78
79
80
81
                                   <tr ng-repeat="customer in companyList">
                                      <td class="font-company">
                                        <a style="color: #333; text-decoration: none;" href="#!/viewCompany/{{customer.id}}">{{customer.companyName}}</a>
                                      </td>
4bb02bb84   Rishav   new integration w...
82
83
84
                                      <td class="font-company">{{customer.Fleet}}</td>
                                      <td class="font-company">{{customer.phone}}</td>
                                      <td class="font-company">{{customer.contact}}</td>
55e075d7e   Rishav   add contact, add ...
85
                                      <td class="font-company">{{customer.baseIcao}}</td>
feacde5ff   Rishav   setup acuefuel in...
86
                                      <td class="font-company">
55e075d7e   Rishav   add contact, add ...
87
88
                                         <button type="button" ng-if="customer.activate == true" class="btn btn-success btn-xs">Active</button>
                                         <button type="button" ng-if="customer.activate == false" class="btn btn-warning btn-xs">InActive</button>
4bb02bb84   Rishav   new integration w...
89
                                      </td>
feacde5ff   Rishav   setup acuefuel in...
90
                                      </td>
feacde5ff   Rishav   setup acuefuel in...
91
92
93
94
95
96
                                      <td class="font-company">
                                         <select class="form-control" style="height:31px;">
                                            <option>Margin1</option>
                                            <option>Margin2</option>
                                         </select>
                                      </td>
4bb02bb84   Rishav   new integration w...
97
98
99
100
                                      <td class="font-company">{{customer.allIn}}</td>
                                      <td>
                                         <button type="button" class="btn btn-info btn-xs">Setup Fuel</button>
                                      </td>
feacde5ff   Rishav   setup acuefuel in...
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
                                   </tr>
                                </tbody>
                             </table>
                             <div class="row" style="margin-left: 0px;">
                                <div class="col-md-2">
                                   <button type="button" class="btn btn-warning">Export Customers</button>
                                </div>
                                <div class="col-md-10">
                                   <div class="row" style="margin-left: 0px;">
                                      <div class="col-md-6">
                                      </div>
                                      <div class="col-md-2">
                                         <select class="form-control">
                                            <option>20 Records Per Page</option>
                                            <option>50 Records Per Page</option>
                                            <option>100 Records Per Page</option>
                                         </select>
                                      </div>
                                      <div class="col-md-4">
                                         <ul class="pagination" style="margin:0px">
                                            <li><a href="javascript:;">«</a></li>
                                            <li class="active"><a href="#">1</a></li>
                                            <li><a href="javascript:;">2</a></li>
                                            <li><a href="javascript:;">3</a></li>
                                            <li><a href="javascript:;">4</a></li>
                                            <li><a href="javascript:;">5</a></li>
                                            <li><a href="javascript:;">»</a></li>
                                         </ul>
                                      </div>
                                   </div>
                                </div>
                             </div>
                          </div>
feacde5ff   Rishav   setup acuefuel in...
134
135
136
137
138
139
140
141
142
143
144
145
146
                       </div>
                    </div>
                 </div>
                 <!-- /widget-content -->
              </div>
              <!-- /widget -->
           </div>
           <!-- /span8 -->
        </div>
        <!-- /row -->
     </div>
     <!-- /container -->
  </div>
4bb02bb84   Rishav   new integration w...
147
  <!-- /main -->
55e075d7e   Rishav   add contact, add ...
148
  <form class="modal multi-step" id="demo-modal-3" name="companyForm">
4bb02bb84   Rishav   new integration w...
149
150
151
152
153
154
155
156
157
158
159
160
161
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
      <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
                                      <input id="toggle-one2" checked type="checkbox" data-size="mini" data-width="55" data-toggle="toggle" data-on="On" data-off="Off">
                                   </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;">
                                         <input type="text" ng-model="data.companyName" class="form-control" id="Address" placeholder="">
                                      </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" id="Address" 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-8">
                                      <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>
                                <div class="clearfix"></div>
                                <br/>
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
                                         <b>Master Margin</b>
                                      </div>
                                      <div class="pull-left">
                                         <select required class="form-control" style="max-width: 250px;" ng-model="data.masterMargin">
                                            <option value="" disabled selected hidden>Select </option>
b1f6160d4   Rishav   add contact and a...
213
214
215
216
                                            <option value="margin1">Margin1</option>
                                            <option value="margin2">Margin2</option>
                                            <option value="vendorsonly">Vendors Only</option>
                                            <option value="margintenants">Margin Tenants</option>
4bb02bb84   Rishav   new integration w...
217
218
219
220
221
222
223
224
225
226
227
                                         </select>
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   
                                   <div class="col-md-3 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>
b1f6160d4   Rishav   add contact and a...
228
229
230
231
232
                                         <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>
4bb02bb84   Rishav   new integration w...
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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
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
                                      </select>
                                   </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" 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>Address2</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <input type="text" ng-model="data.addressTwo" 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>City</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <input type="text" ng-model="data.city" class="form-control" id="Address" 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" id="Address" 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" 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>Country</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <input type="text" ng-model="data.country" 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>Internal Note</b></label>
                                      </div>
                                      <div class="pull-left" style="width: calc(100% - 110px);">
                                         <textarea  name="message" ng-model="data.internalNote" rows="4" cols="34"></textarea>
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <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> -->
                             </div>
                          </div>
                          <div class="clearfix"></div>
                       </div>
                    </div>
                 </div>
              </div>
              <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> -->
55e075d7e   Rishav   add contact, add ...
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
                                        <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>
                                              </tr>
                                          </thead>
                                          <tbody>
                                              <tr ng-repeat="aircraftData in aircraftDetails track by $index">
                                                  <!-- <td>
                                                      <input type="checkbox" ng-model="aircraftData.selected"/>
                                                  </td> -->
                                                  <td style="width: 20%">
                                                      <input type="text" class="form-control" ng-model="aircraftData.tail" required/>
                                                  </td>
                                                  <td style="width: 20%">
                                                      <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)">
                                                        <option ng-repeat="make in aircraftMakeList">{{make}}</option>
                                                      </select>
                                                  </td>
                                                  <td style="width: 20%">
                                                      <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>
                                                  <td style="width: 20%">
                                                      <select class="form-control" ng-model="aircraftData.size">
                                                        <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option>
                                                      </select>
                                                  </td>
                                              </tr>
                                            </tbody>
                                        </table>
4bb02bb84   Rishav   new integration w...
430
431
432
433
434
435
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                </div>
                                <div class="clearfix"></div>
                                <div class="col-xs-12" style="margin-bottom: 50px;margin-top: 10px;">
55e075d7e   Rishav   add contact, add ...
436
                                   <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button>
4bb02bb84   Rishav   new integration w...
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
                                </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" 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>
  
  <script src="js/multi-step-modal.js"></script>
  <script>
  sendEvent = function(sel, step) {
      $(sel).trigger('next.m.' + step);
  }
2c476c756   Anchit Jindal   added new code
471
  </script>