Blame view

app/partials/customers/customers.html 37.4 KB
feacde5ff   Rishav   setup acuefuel in...
1
2
3
4
  <style>
     .subnavbar .mainnav > li:nth-child(3) > a{
     color: #ff9900;
     }
3a9f4472b   Rishav   Implement contact...
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;
     }
feacde5ff   Rishav   setup acuefuel in...
71
  </style>
05bfa28a2   Mr. Hot Foods   remove save butto...
72
73
74
  <div class="myLoader" ng-show="showLoader">
    <img src="../img/hourglass.gif" width="50px;">
  </div>
3a9f4472b   Rishav   Implement contact...
75

feacde5ff   Rishav   setup acuefuel in...
76
77
78
79
80
81
82
83
84
  <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...
85
86
87
88
89
90
91
92
93
94
95
96
97
                             <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...
98
                          </li>
52fea957f   Anchit Jindal   csv and search co...
99
100
                          <li style="margin: 0px 10px 4px 40px;"><input type="text" style="height:31px;"class="form-control" ng-model="searchText" placeholder="Search In Table"></li>
                          <li><button type="button" class="btn btn-default btn-sm" ng-click="displayCompanyList.filter({}); searchText=null">Clear Search And Filters</button></li>
4bb02bb84   Rishav   new integration w...
101
                          <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...
102
                       </ul>
4bb02bb84   Rishav   new integration w...
103
104
                       <br>  
                       <div class="tab-content customer-table" style="margin:0px">
feacde5ff   Rishav   setup acuefuel in...
105
                          <div class="tab-pane active" id="companyView">
eefc1c74d   Swarn Singh   minor updates
106
                            <table ng-table="displayCompanyList" class="table table-striped table-condensed" show-filter="true">
52fea957f   Anchit Jindal   csv and search co...
107
108
                             <tr ng-repeat="row in $data | filter:searchText"" style="cursor: pointer;">
                               <td data-title="'Company Name'" filter="{companyName: 'text'}" sortable="'companyName'" ui-sref="app.viewCompany({id : row.id})">
eefc1c74d   Swarn Singh   minor updates
109
110
                                {{row.companyName}}
                               </td>
52fea957f   Anchit Jindal   csv and search co...
111
                               <td data-title="'Fleet'" filter="{companyAircraftSize: 'text'}" sortable="'companyAircraftSize'" ui-sref="app.viewCompany({id : row.id})">
eefc1c74d   Swarn Singh   minor updates
112
113
                                {{row.companyAircraftSize}}
                               </td>
52fea957f   Anchit Jindal   csv and search co...
114
                               <td data-title="'Main Phone'" filter="{newContactNumber: 'text'}" sortable="'newContactNumber'" ui-sref="app.viewCompany({id : row.id})">
b97bc56e0   Swarn Singh   table search and ...
115
                                {{row.newContactNumber}}
eefc1c74d   Swarn Singh   minor updates
116
                               </td>
52fea957f   Anchit Jindal   csv and search co...
117
                               <td data-title="'Primary Contact'" filter="{primaryContactName: 'text'}" sortable="'primaryContactName'" ui-sref="app.viewCompany({id : row.id})">
b97bc56e0   Swarn Singh   table search and ...
118
                                {{row.primaryContactName}}
eefc1c74d   Swarn Singh   minor updates
119
                               </td>
52fea957f   Anchit Jindal   csv and search co...
120
                               <td data-title="'Base'" filter="{baseIcao: 'text'}" sortable="'baseIcao'" ui-sref="app.viewCompany({id : row.id})">
eefc1c74d   Swarn Singh   minor updates
121
122
                                {{row.baseIcao}}
                               </td>
52fea957f   Anchit Jindal   csv and search co...
123
                               <td data-title="'Status'" filter="{activate: 'select'}" filter-data="statusFilter" sortable="'activate'" ui-sref="app.viewCompany({id : row.id})">
eefc1c74d   Swarn Singh   minor updates
124
125
126
                                <button type="button" ng-if="row.activate == true" class="btn btn-success btn-xs">Active</button>
                                <button type="button" ng-if="row.activate == false" class="btn btn-warning btn-xs">InActive</button>
                               </td>
c95befcd3   Swarn Singh   table issue, filt...
127
                               <td data-title="'Margin Setting'" filter="{masterMargin: 'select'}" filter-data="marginFilterOptions" sortable="'masterMargin'">
a7a7cfeca   Rishav Singla   fuel vendor page ...
128
                                <select class="form-control" ng-change="editMargin(row)" style="height:31px;" ng-model="row.masterMargin" ng-selected="" ng-options="margin.id as margin.marginName for margin in jetMarginList" required></select>
eefc1c74d   Swarn Singh   minor updates
129
                               </td>
52fea957f   Anchit Jindal   csv and search co...
130
                               <td data-title="'All In'" filter="{marginAllIn: 'text'}" sortable="'marginAllIn'" ui-sref="app.viewCompany({id : row.id})">
ccab6d2eb   Anchit Jindal   minor changes imp...
131
                                {{row.marginAllIn}}
eefc1c74d   Swarn Singh   minor updates
132
133
134
135
136
137
                               </td>
                               <td data-title="''">
                                <button type="button" class="btn btn-info btn-xs" ng-click="setFuel()">Setup Fuel</button>
                               </td>
                             </tr>
                           </table>
52fea957f   Anchit Jindal   csv and search co...
138
                           <button type="button" ng-click="exportCompany()" class="btn btn-warning exportBtn">Export CSV</button>
8f7dbe97c   Swarn Singh   fuel order comple...
139

eefc1c74d   Swarn Singh   minor updates
140
                          <!-- 
2c476c756   Anchit Jindal   added new code
141
                             <table class="table table-striped">
feacde5ff   Rishav   setup acuefuel in...
142
143
144
                                <thead>
                                   <tr>
                                      <th>
4bb02bb84   Rishav   new integration w...
145
146
                                         <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...
147
148
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
149
150
                                         <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...
151
152
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
153
154
                                         <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...
155
156
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
157
158
                                         <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...
159
160
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
161
162
                                         <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...
163
164
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
165
166
167
168
                                         <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...
169
170
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
171
172
173
174
                                         <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...
175
176
                                      </th>
                                      <th>
4bb02bb84   Rishav   new integration w...
177
178
                                         <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...
179
                                      </th>
4bb02bb84   Rishav   new integration w...
180
                                      <th> &nbsp; </th>
feacde5ff   Rishav   setup acuefuel in...
181
182
                                </thead>
                                <tbody>
d24318592   Rishav   changes and new i...
183
                                   <tr ng-repeat="customer in companyList" style="cursor: pointer;" ui-sref="app.viewCompany({id : customer.id})">
55e075d7e   Rishav   add contact, add ...
184
                                      <td class="font-company">
d24318592   Rishav   changes and new i...
185
                                        {{customer.companyName}}
55e075d7e   Rishav   add contact, add ...
186
                                      </td>
3a9f4472b   Rishav   Implement contact...
187
                                      <td class="font-company">{{customer.companyAircraftSize}}</td>
67044e31e   Rishav Singla   modify changes an...
188
189
                                      <td class="font-company">{{customer.companyCustomContacts[0].contactNumber}}</td>
                                      <td class="font-company">{{customer.companyPrimaryContacts[0].firstName}} {{customer.companyPrimaryContacts[0].lastName}}</td>
55e075d7e   Rishav   add contact, add ...
190
                                      <td class="font-company">{{customer.baseIcao}}</td>
feacde5ff   Rishav   setup acuefuel in...
191
                                      <td class="font-company">
55e075d7e   Rishav   add contact, add ...
192
193
                                         <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...
194
                                      </td>
feacde5ff   Rishav   setup acuefuel in...
195
                                      <td class="font-company">
09bbf9f70   Rishav   customer view issue
196
                                        <select class="form-control" ng-click="editMargin(customer)" style="height:31px;" ng-model="customer.masterMargin" ng-options="margin.id as margin.marginName for margin in marginList" required></select>
feacde5ff   Rishav   setup acuefuel in...
197
                                      </td>
4bb02bb84   Rishav   new integration w...
198
199
                                      <td class="font-company">{{customer.allIn}}</td>
                                      <td>
67044e31e   Rishav Singla   modify changes an...
200
                                         <button type="button" class="btn btn-info btn-xs" ng-click="setFuel()">Setup Fuel</button>
4bb02bb84   Rishav   new integration w...
201
                                      </td>
feacde5ff   Rishav   setup acuefuel in...
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
                                   </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>
eefc1c74d   Swarn Singh   minor updates
234
                           --></div>
feacde5ff   Rishav   setup acuefuel in...
235
236
237
238
239
240
241
242
243
244
245
246
247
                       </div>
                    </div>
                 </div>
                 <!-- /widget-content -->
              </div>
              <!-- /widget -->
           </div>
           <!-- /span8 -->
        </div>
        <!-- /row -->
     </div>
     <!-- /container -->
  </div>
4bb02bb84   Rishav   new integration w...
248
  <!-- /main -->
55e075d7e   Rishav   add contact, add ...
249
  <form class="modal multi-step" id="demo-modal-3" name="companyForm">
4bb02bb84   Rishav   new integration w...
250
251
252
253
254
255
256
257
258
259
260
261
262
      <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
74c8ae4bb   Rishav   remove old toogle...
263
                                      <toggle ng-model="data.activate" size="customToogle"></toggle>
4bb02bb84   Rishav   new integration w...
264
265
266
267
268
269
270
271
                                   </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">
49676befb   Anchit Jindal   new changes applied
272
                                         <label class="new-input-label"><b>Company Name *</b></label>
4bb02bb84   Rishav   new integration w...
273
274
                                      </div>
                                      <div class="pull-left" style="margin-left: 15px;">
32286a73a   Swarn Singh   tier issue resolved
275
276
                                         <input type="text" ng-model="data.companyName" class="form-control companyNameInput" ng-keyup="removeValidation()" placeholder="" required>
                                         <label class="customErrorMessage" ng-show="showCompanyError">This field is required.</label>
4bb02bb84   Rishav   new integration w...
277
278
279
280
281
282
                                      </div>
                                      <div class="clearfix"></div>
                                   </div>
                                   <div class="col-md-4">
                                      
                                      <div class="pull-right">
32286a73a   Swarn Singh   tier issue resolved
283
                                         <input type="text" ng-model="data.baseIcao" style="width: 100px;" class="form-control"  placeholder="">
4bb02bb84   Rishav   new integration w...
284
285
286
287
288
289
290
291
292
                                      </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">
a7a7cfeca   Rishav Singla   fuel vendor page ...
293
                                   <div class="col-md-7">
4bb02bb84   Rishav   new integration w...
294
295
296
297
298
299
300
301
302
303
                                      <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>
a7a7cfeca   Rishav Singla   fuel vendor page ...
304
305
306
307
308
309
310
311
312
313
314
315
316
317
                                   <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>
4bb02bb84   Rishav   new integration w...
318
319
320
321
322
323
                                </div>
                                <div class="clearfix"></div>
                                <br/>
                                <div class="col-xs-12">
                                   <div class="col-md-6">
                                      <div class="pull-left" style="width: 110px;">
49676befb   Anchit Jindal   new changes applied
324
                                         <b>JET A Margin *</b>
4bb02bb84   Rishav   new integration w...
325
326
                                      </div>
                                      <div class="pull-left">
a7a7cfeca   Rishav Singla   fuel vendor page ...
327
328
329
330
                                        <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>
3a9f4472b   Rishav   Implement contact...
331

a7a7cfeca   Rishav Singla   fuel vendor page ...
332
                                        <div class="clearfix"></div>
4bb02bb84   Rishav   new integration w...
333
                                      </div>
a7a7cfeca   Rishav Singla   fuel vendor page ...
334
                                    </div>
4bb02bb84   Rishav   new integration w...
335
336
                                   
                                   <div class="col-md-3 Airport" style="text-align: right;">
a7a7cfeca   Rishav Singla   fuel vendor page ...
337
                                      <b>AVGAS 100LL Margin</b>
4bb02bb84   Rishav   new integration w...
338
339
                                   </div>
                                   <div class="col-md-3 Airport">
49676befb   Anchit Jindal   new changes applied
340
                                      <select class="form-control" ng-model="data.avgasMargin" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList">
a7a7cfeca   Rishav Singla   fuel vendor page ...
341
                                      <option value="" disabled>Select...</option>
4bb02bb84   Rishav   new integration w...
342
343
                                      </select>
                                   </div>
a7a7cfeca   Rishav Singla   fuel vendor page ...
344
                                   <div class="clearfix"></div>
4bb02bb84   Rishav   new integration w...
345
346
347
348
349
350
351
352
353
                                </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);">
32286a73a   Swarn Singh   tier issue resolved
354
                                         <input type="text" class="form-control" ng-model="data.addressOne"  placeholder="">
4bb02bb84   Rishav   new integration w...
355
356
357
358
359
360
361
362
363
364
365
366
                                      </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);">
32286a73a   Swarn Singh   tier issue resolved
367
                                         <input type="text" ng-model="data.addressTwo" class="form-control"  placeholder="">
4bb02bb84   Rishav   new integration w...
368
369
370
371
372
373
374
375
376
377
378
379
380
                                      </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);">
32286a73a   Swarn Singh   tier issue resolved
381
                                         <input type="text" ng-model="data.city" class="form-control"  placeholder="">
4bb02bb84   Rishav   new integration w...
382
383
384
385
386
387
388
389
                                      </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);">
32286a73a   Swarn Singh   tier issue resolved
390
                                         <input type="text" ng-model="data.state" class="form-control"  placeholder="">
4bb02bb84   Rishav   new integration w...
391
392
393
394
395
396
397
398
                                      </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);">
32286a73a   Swarn Singh   tier issue resolved
399
                                         <input type="tel" ng-model="data.zipcode" class="form-control"  placeholder="">
4bb02bb84   Rishav   new integration w...
400
401
402
403
404
405
406
407
408
409
410
411
412
                                      </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);">
32286a73a   Swarn Singh   tier issue resolved
413
                                         <input type="text" ng-model="data.country" class="form-control"  placeholder="">
4bb02bb84   Rishav   new integration w...
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
                                      </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 ...
504
505
506
507
508
509
510
511
                                        <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>
a7a7cfeca   Rishav Singla   fuel vendor page ...
512
513
                                                  <th>JET A Margin</th>
                                                  <th>AVGS 100LL Margin</th>
55e075d7e   Rishav   add contact, add ...
514
515
516
517
518
519
520
                                              </tr>
                                          </thead>
                                          <tbody>
                                              <tr ng-repeat="aircraftData in aircraftDetails track by $index">
                                                  <!-- <td>
                                                      <input type="checkbox" ng-model="aircraftData.selected"/>
                                                  </td> -->
a7a7cfeca   Rishav Singla   fuel vendor page ...
521
                                                  <td style="width: 15%">
55e075d7e   Rishav   add contact, add ...
522
523
                                                      <input type="text" class="form-control" ng-model="aircraftData.tail" required/>
                                                  </td>
a7a7cfeca   Rishav Singla   fuel vendor page ...
524
                                                  <td style="width: 17%">
55e075d7e   Rishav   add contact, add ...
525
526
                                                      <select class="form-control" ng-model="aircraftData.make" ng-change="getModal(aircraftData.make, $index)">
                                                        <option ng-repeat="make in aircraftMakeList">{{make}}</option>
a7a7cfeca   Rishav Singla   fuel vendor page ...
527
                                                        <option value="" disabled>Select...</option>
55e075d7e   Rishav   add contact, add ...
528
529
                                                      </select>
                                                  </td>
a7a7cfeca   Rishav Singla   fuel vendor page ...
530
                                                  <td style="width: 17%">
55e075d7e   Rishav   add contact, add ...
531
532
                                                      <select class="form-control" ng-model="aircraftData.model" ng-change="getSize(aircraftData.model, $index)">
                                                          <option ng-repeat="model in aircraftData.aircraftModalList">{{model}}</option>
a7a7cfeca   Rishav Singla   fuel vendor page ...
533
                                                          <option value="" disabled>Select...</option>
55e075d7e   Rishav   add contact, add ...
534
535
                                                      </select>
                                                  </td>
a7a7cfeca   Rishav Singla   fuel vendor page ...
536
537
538
539
                                                  <td style="width: 17%">
                                                    <select class="form-control" ng-model="aircraftData.sizeId" ng-options="size.aircraftSize.id as size.aircraftSize.size for size in aircraftData.aircraftSizeList">
                                                      <option value="" disabled>Select...</option>
                                                    </select>
b6f0311a3   Rishav   get Company api i...
540
                                                      <!-- <select class="form-control" ng-model="aircraftData.size">
55e075d7e   Rishav   add contact, add ...
541
                                                        <option ng-repeat="size in aircraftData.aircraftSizeList">{{size}}</option>
b6f0311a3   Rishav   get Company api i...
542
                                                      </select> -->
55e075d7e   Rishav   add contact, add ...
543
                                                  </td>
a7a7cfeca   Rishav Singla   fuel vendor page ...
544
545
546
547
548
549
550
551
552
                                                  <td style="width: 17%">
                                                    <select class="form-control" ng-model="aircraftData.marginId" ng-options="margin.id as margin.marginName for margin in jetMarginList">
                                                      <option value="" disabled>Select...</option>
                                                    </select>
                                                  </td>
                                                  <td style="width: 17%">
                                                   <select class="form-control marginSelectBox" ng-model="aircraftData.avgasMarginId" ng-options="avgs.id as avgs.marginName for avgs in avgsMarginList">
                                                      <option value="" disabled>Select...</option>
                                                    </select>
3a9f4472b   Rishav   Implement contact...
553
                                                  </td>
55e075d7e   Rishav   add contact, add ...
554
555
556
                                              </tr>
                                            </tbody>
                                        </table>
4bb02bb84   Rishav   new integration w...
557
558
559
560
561
562
                                      </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 ...
563
                                   <button ng-click="addNew()" class="button1 turquoise pull-right"><span>+</span>Add Aircraft</button>
4bb02bb84   Rishav   new integration w...
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
                                </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;">
7152ff131   Rishav   model handle
583
                  <button type="button" class="btn btn-default" ng-click="reset2()" data-dismiss="modal">Cancel</button>
4bb02bb84   Rishav   new integration w...
584
585
586
587
588
589
590
591
                  <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>
d24318592   Rishav   changes and new i...
592
593
594
  <div class="myLoader" ng-show="showLoader">
     <img src="../img/hourglass.gif" width="50px;">
  </div>
4bb02bb84   Rishav   new integration w...
595
596
597
598
599
600
  <script src="js/multi-step-modal.js"></script>
  <script>
  sendEvent = function(sel, step) {
      $(sel).trigger('next.m.' + step);
  }
  </script>