Blame view

app/partials/updateFuelManager/updateFuelManager.html 31 KB
325c8ff31   Swarn Singh   date issue fixed
1

feacde5ff   Rishav   setup acuefuel in...
2
3
4
5
6
  <style>
     .subnavbar .mainnav > li:nth-child(2) > a{
     color: #ff9900;
     }
  </style>
32286a73a   Swarn Singh   tier issue resolved
7
8
9
  <div class="myLoader" ng-show="showLoader">
    <img src="../img/hourglass.gif" width="50px;">
  </div>
03cf7c388   Swarn Singh   minor changes due...
10
  <div style="width: 96%; margin-left: 2%;">
feacde5ff   Rishav   setup acuefuel in...
11
     <div class="row">
71c760e0c   Jaideep Singh   update Fuel Manag...
12
13
     
     <div class="col-md-6">
feacde5ff   Rishav   setup acuefuel in...
14
15
           <div class="widget stacked">
              <div class="widget-header">
4bb02bb84   Rishav   new integration w...
16
                 <i class="fa fa-pencil"></i>
71c760e0c   Jaideep Singh   update Fuel Manag...
17
                 <h3>Price Manager Staging</h3>
feacde5ff   Rishav   setup acuefuel in...
18
19
20
              </div>
              <!-- /widget-header -->
              <div class="widget-content">
71c760e0c   Jaideep Singh   update Fuel Manag...
21
22
                 <h6 style="color:#F90">Queue Pricing for Deployment in the Price Manager below</h6>
                 <form>
882908c84   Swarn Singh   fuel pricing modu...
23
                 <table class="table">
feacde5ff   Rishav   setup acuefuel in...
24
25
26
27
                    <thead>
                       <tr>
                          <th> Product</th>
                          <th> Cost</th>
71c760e0c   Jaideep Singh   update Fuel Manag...
28
29
30
                          <th> PAP(Margin)</th>
                          <th> Deploy Date</th>
                          <th style="color: #F90;">Price Expires</th>
feacde5ff   Rishav   setup acuefuel in...
31
                          <th> PAP(Total)</th>
feacde5ff   Rishav   setup acuefuel in...
32
33
34
                       </tr>
                    </thead>
                    <tbody>
32ea0c476   Swarn Singh   working on fuel m...
35
                       <tr ng-repeat="fuelPricing in newFuelPricing">
882908c84   Swarn Singh   fuel pricing modu...
36
                          <td>
71c760e0c   Jaideep Singh   update Fuel Manag...
37
38
39
40
                             <span style="color: #2196f3" ng-show="fuelPricing.jeta">{{fuelPricing.name}}</span>
                             <span  ng-show="fuelPricing.jeta">{{fuelPricing.namejetrest}}</span>
                             <span style="color: 39c" ng-show="fuelPricing.avgas">{{fuelPricing.name}}</span>
                             <span  ng-show="fuelPricing.avgas">{{fuelPricing.nameavgasrest}}</span>
882908c84   Swarn Singh   fuel pricing modu...
41
42
                          </td>
                          <td>
71c760e0c   Jaideep Singh   update Fuel Manag...
43
44
45
46
                             <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.cost" style="height:31px; width: 50px; padding: 6px 6px;">
                          </td>
                           <td>
                             <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.papMargin" style="height:31px; width: 80px; padding: 6px 6px;">
882908c84   Swarn Singh   fuel pricing modu...
47
48
                          </td>
                          <td>
71c760e0c   Jaideep Singh   update Fuel Manag...
49
                             <input type="text" class="form-control" ng-disabled="fuelPricing.futureFuelPricing.cost == undefined || fuelPricing.futureFuelPricing.cost == null || fuelPricing.futureFuelPricing.cost == ''" datepicker ng-model="fuelPricing.futureFuelPricing.deployDate" style="height:31px; width: 80px; padding: 6px 6px;">
882908c84   Swarn Singh   fuel pricing modu...
50
51
                          </td>
                          <td>
71c760e0c   Jaideep Singh   update Fuel Manag...
52
                             <input type="text" class="form-control" datepicker  ng-disabled="fuelPricing.futureFuelPricing.cost == undefined || fuelPricing.futureFuelPricing.cost == null || fuelPricing.futureFuelPricing.cost == ''" ng-model="fuelPricing.futureFuelPricing.nextExpiration" style="height:31px; width: 80px; padding: 6px 6px;">
882908c84   Swarn Singh   fuel pricing modu...
53
54
                          </td>
                          <td>
03cf7c388   Swarn Singh   minor changes due...
55
                             <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.futureFuelPricing.cost -- fuelPricing.futureFuelPricing.papMargin  | number : 2}}</span>
882908c84   Swarn Singh   fuel pricing modu...
56
                          </td>
feacde5ff   Rishav   setup acuefuel in...
57
58
59
60
61
                       </tr>
                    </tbody>
                 </table>
                 <div class="row" style="margin-left: 0px;">
                    <div class="col-md-12" style= "text-align: right;">
22787c669   Mr. Hot Foods   minor change in f...
62
63
                      <div style="float: left;">
                        <button type="button" class="btn btn-primary btn-xs" ng-click="updateFutureFuelPricingClick()" style= "text-align: center;  font-size:12px">Save & Deploy Immediately</button>
71c760e0c   Jaideep Singh   update Fuel Manag...
64
                    
22787c669   Mr. Hot Foods   minor change in f...
65
66
67
68
69
70
                       <button type="reset" class="btn btn-default btn-xs">Reset All</button>
                      </div>
                      <div style="float: right;">
                        <button type="button" class="btn btn-success btn-xs" ng-click="updateFutureFuelPricingClick()" style="margin-right:3%">Save & Stage for Deploy</button>
                      </div>
                       <div style="clear: both;"></div>
feacde5ff   Rishav   setup acuefuel in...
71
72
                    </div>
                 </div>
71c760e0c   Jaideep Singh   update Fuel Manag...
73
74
               </form>
             </div>
feacde5ff   Rishav   setup acuefuel in...
75
76
77
              <!-- /widget-content -->
           </div>
           <!-- /widget -->  
71c760e0c   Jaideep Singh   update Fuel Manag...
78
     </div>
4bb02bb84   Rishav   new integration w...
79

71c760e0c   Jaideep Singh   update Fuel Manag...
80
        <div class="col-md-6">
feacde5ff   Rishav   setup acuefuel in...
81
82
           <div class="widget stacked">
              <div class="widget-header">
4bb02bb84   Rishav   new integration w...
83
                 <i class="fa fa-pencil"></i>
71c760e0c   Jaideep Singh   update Fuel Manag...
84
85
                 <h3 style="font-style: italic"><b style="color: #2196f3; font-style: normal">JET-A</b> Customer Margin Template</h3>
                 
feacde5ff   Rishav   setup acuefuel in...
86
87
              </div>
              <!-- /widget-header -->
a9e3a7365   Swarn Singh   fix issues on vie...
88
              <div class="widget-content" style="padding-top: 10px;">
e8983332d   Swarn Singh   margin accordian ...
89
90
91
                 <section id="accordions">
                    <div class="newCustomAccordian">
                       <!-- tab 1 -->
1097c2ce1   Swarn Singh   margin module add...
92
93
94
95
96
                       <div ng-repeat="jets in aTypeJets">
                          <div class="customAccordianHeader" id="{{jets.id}}">
                             <span>{{jets.marginName}}</span>
                             <select class="form-control" disabled="true" ng-model="jets.pricingStructure">
                                <option value="" disabled selected>Pricing Structure</option>
71c760e0c   Jaideep Singh   update Fuel Manag...
97
                                <option value="minus">Retail/PAP-(minus)</option>
1097c2ce1   Swarn Singh   margin module add...
98
                                <option value="plus">Cost+(plus)</option>
1097c2ce1   Swarn Singh   margin module add...
99
100
101
102
                             </select>
                             <span style="margin-right: 0;">$</span>
                             <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue">
                             <div class="pull-right">
e95d89b77   Swarn Singh   integrate editor ...
103
                                <button class="btn btn-success" style="display: none; background-image: none; background-color: #f3f3f3; color: #333; border:0;" ng-click="closeAccordian(jets)">Close</button>
1097c2ce1   Swarn Singh   margin module add...
104
105
                                <button class="btn btn-success" style="display: none;" ng-click="saveJetAccordian(jets)">Save</button>
                                <button class="btn btn-danger" style="display: none;" ng-click="deleteJetAccordian(jets.id)">Delete</button>
03cf7c388   Swarn Singh   minor changes due...
106
                                <button type="button" class="btn btn-primary" ng-click="emailPricingForMargin(jets.id)" style= "font-weight: normal; text-align: center;  font-size:12px">Email Pricing for this Margin</button>
71c760e0c   Jaideep Singh   update Fuel Manag...
107
                                <button class="btn btn-default" ng-click="toggleJestAccordian(jets.id, $index)" style= "text-align: center;  font-size:12px">Edit</button>
1097c2ce1   Swarn Singh   margin module add...
108
109
110
111
                             </div>
                             <div class="clearfix"></div>
                          </div>
                          <div class="customAccordianTabBody {{jets.id}}" style="display: none;">
8707ba5fd   Swarn Singh   fuel manager done
112
                             <div class="tierListWrap" ng-repeat="tier in aTypeJets[$index].tierList">
05c2f6fb3   Swarn Singh   margin module and...
113
114
115
116
117
118
119
120
121
122
123
124
125
126
                                <div class="tierListHead" style="height: 36px;">
                                   <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal.
                                   </span>
                                   <i class="fa fa-pencil-square-o pull-right" ng-click="showEditTier = ! showEditTier" ng-hide="showEditTier" style="margin-top: 5px; cursor: pointer;" aria-hidden="true"></i>
                                   
                                   <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier">
                                   <span ng-show="showEditTier">-</span> 
                                   <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.maxTierBreak" ng-show="showEditTier"> <b ng-show="showEditTier">gal.</b>
                                   <div class="clearfix"></div>
                                </div>
                                <div class="tierListBody" style="height: 35px;">
                                   <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span> 
  
                                   <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> &nbsp; 
68c767613   Swarn Singh   fixed ramp fee an...
127
                                   <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span>
05c2f6fb3   Swarn Singh   margin module and...
128

32286a73a   Swarn Singh   tier issue resolved
129
                                   <button class="addTierBtn" ng-click="editTier(tier, $parent.$index)" ng-show="showEditTier">Save</button>
05c2f6fb3   Swarn Singh   margin module and...
130

32286a73a   Swarn Singh   tier issue resolved
131
                                   <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i>
05c2f6fb3   Swarn Singh   margin module and...
132
133
134
135
136
137
  
                                   <div class="clearfix"></div>
                                </div>
                             </div>
                             <div class="tierListWrap" style="width: 160px;">
                                <div class="tierListHead" style="border-right: 1px solid #ddd;">
8707ba5fd   Swarn Singh   fuel manager done
138
                                   <input type="text" placeholder="min" ng-model="trData[$index].minTierBreak">
05c2f6fb3   Swarn Singh   margin module and...
139
                                   <span>-</span> 
8707ba5fd   Swarn Singh   fuel manager done
140
                                   <input type="text" placeholder="max" ng-model="trData[$index].maxTierBreak"> <b>gal.</b>
05c2f6fb3   Swarn Singh   margin module and...
141
142
143
144
                                   <div class="clearfix"></div>
                                </div>
                                <div class="tierListBody" style="border-right: 1px solid #ddd;">
                                   <span style="color: #449d44;">$</span>
8707ba5fd   Swarn Singh   fuel manager done
145
146
                                   <input type="text" placeholder="margin" ng-model="trData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;">
                                   <button class="addTierBtn" ng-click="addNewTier(jets.id, trData, $index)">Add Tier</button>
05c2f6fb3   Swarn Singh   margin module and...
147
148
149
150
151
152
153
154
155
156
157
158
                                   <div class="clearfix"></div>
                                </div>
                             </div>
                             <!-- <div class="tierListWrap" style="width: 32px;">
                                <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;">
                                   &nbsp;
                                </div>
                                <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;">
                                   <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i>
                                </div>
                             </div> -->
                             <div class="clearfix"></div>
e95d89b77   Swarn Singh   integrate editor ...
159
160
161
                             <!-- <textarea class="form-control resizeTextarea" ng-model="jets.message" placeholder="Message..."></textarea> -->
                             <br/>
                             <div ckeditor="options" ng-model="jets.message" ready="onReady()"></div>
feacde5ff   Rishav   setup acuefuel in...
162
                          </div>
feacde5ff   Rishav   setup acuefuel in...
163
                       </div>
feacde5ff   Rishav   setup acuefuel in...
164
                    </div>
71c760e0c   Jaideep Singh   update Fuel Manag...
165
166
167
                     <div class="pull-right">
                        <button type="submit" class="btn btn-success btn-sm" ng-click="addNewMarginBtn()" style="margin-top: 4px; margin-right: 10px;"><i class="fa fa-plus" aria-hidden="true"></i> Add New Margin</button>
                    </div>
e8983332d   Swarn Singh   margin accordian ...
168
                 </section>
a9e3a7365   Swarn Singh   fix issues on vie...
169
                 <!-- <div class="row">&nbsp;</div>
e8983332d   Swarn Singh   margin accordian ...
170
171
172
173
174
175
                 <div class="row">
                    <div class="form-group">
                       <div class="col-lg-12 text-right">
                          <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button>&nbsp;&nbsp;
                          <button type="reset" class="btn btn-default">Cancel</button>
                       </div>
feacde5ff   Rishav   setup acuefuel in...
176
                    </div>
a9e3a7365   Swarn Singh   fix issues on vie...
177
                 </div> -->
feacde5ff   Rishav   setup acuefuel in...
178
179
180
181
182
183
184
185
186
187
              </div>
              <!-- /widget-content -->
           </div>
           <!-- /widget -->
        </div>
        <!-- /span6 -->
     </div>
     <!-- /span12 -->
  </div>
  <!-- /row -->
2f9fd878f   Swarn Singh   minor ui change
188
  <div style="width: 96%; margin-left: 2%;">
4bb02bb84   Rishav   new integration w...
189
  <div class="row">
71c760e0c   Jaideep Singh   update Fuel Manag...
190
       <div class="col-md-6">
4bb02bb84   Rishav   new integration w...
191
192
193
           <div class="widget stacked">
              <div class="widget-header">
                 <i class="fa fa-pencil"></i>
71c760e0c   Jaideep Singh   update Fuel Manag...
194
195
196
197
198
199
200
201
                 <h3>Price Manager</h3>
                 <select style="float: right; margin: 7px 10px; width: 150px; height: 26px; padding: 0 0;" class="btn btn-primary" class="form-control" ng-model="sendEmail.pricing" ng-change="confirmMail()">
                    <option value="" disabled selected="selected">Email All Pricing</option>
                    <option value="JET-A">Email JET-A pricing only</option>
                    <option value="AVGAS">Email AVGAS pricing only</option>
                    <option disabled>_______________________________</option>
                    <option value="all">Distribute All</option>
                 </select>
4bb02bb84   Rishav   new integration w...
202
203
204
              </div>
              <!-- /widget-header -->
              <div class="widget-content">
71c760e0c   Jaideep Singh   update Fuel Manag...
205
                 <h4>Update Fuel Price Here</h4>
8707ba5fd   Swarn Singh   fuel manager done
206
                 <table class="table">
4bb02bb84   Rishav   new integration w...
207
208
209
210
                    <thead>
                       <tr>
                          <th> Product</th>
                          <th> Cost</th>
71c760e0c   Jaideep Singh   update Fuel Manag...
211
                          <th> Margin</th>
8707ba5fd   Swarn Singh   fuel manager done
212
                          <th> PAP(Total)</th>
71c760e0c   Jaideep Singh   update Fuel Manag...
213
                          <th style="color: #F90;"> Expires</th>
4bb02bb84   Rishav   new integration w...
214
215
216
                       </tr>
                    </thead>
                    <tbody>
32ea0c476   Swarn Singh   working on fuel m...
217
                       <tr ng-repeat="fuelPricing in newFuelPricing">
8707ba5fd   Swarn Singh   fuel manager done
218
                          <td>
71c760e0c   Jaideep Singh   update Fuel Manag...
219
220
221
222
                             <span style="color: #2196f3" ng-show="fuelPricing.jeta">{{fuelPricing.name}}</span>
                             <span  ng-show="fuelPricing.jeta">{{fuelPricing.namejetrest}}</span>
                             <span style="color: 39c" ng-show="fuelPricing.avgas">{{fuelPricing.name}}</span>
                             <span  ng-show="fuelPricing.avgas">{{fuelPricing.nameavgasrest}}</span>
8707ba5fd   Swarn Singh   fuel manager done
223
224
                          </td>
                          <td>
71c760e0c   Jaideep Singh   update Fuel Manag...
225
226
                            <span>{{fuelPricing.fuelPricing.cost}}</span>
                            </td>
8707ba5fd   Swarn Singh   fuel manager done
227
                          <td>
71c760e0c   Jaideep Singh   update Fuel Manag...
228
229
                            <span>{{fuelPricing.fuelPricing.papMargin}}</span>
                             </td>
8707ba5fd   Swarn Singh   fuel manager done
230
                          <td>
71c760e0c   Jaideep Singh   update Fuel Manag...
231
                             <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.fuelPricing.cost -- fuelPricing.fuelPricing.papMargin  | number : 2 }}</span>
8707ba5fd   Swarn Singh   fuel manager done
232
233
                          </td>
                          <td>
71c760e0c   Jaideep Singh   update Fuel Manag...
234
                            <span>{{fuelPricing.fuelPricing.expirationDate}}</span>
8707ba5fd   Swarn Singh   fuel manager done
235
                          </td>
4bb02bb84   Rishav   new integration w...
236
237
238
239
240
                       </tr>
                    </tbody>
                 </table>
                 <div class="row" style="margin-left: 0px;">
                    <div class="col-md-12" style= "text-align: right;">
71c760e0c   Jaideep Singh   update Fuel Manag...
241
                       <button type="button" class="btn btn-success btn-xs" ng-click="updateFuelPricingClick()" style="font-size:14px; margin-right:3%">Save</button>
4bb02bb84   Rishav   new integration w...
242
243
244
245
246
247
                    </div>
                 </div>
              </div>
              <!-- /widget-content -->
           </div>
           <!-- /widget -->  
71c760e0c   Jaideep Singh   update Fuel Manag...
248
249
250
        </div>
      
     <div class="col-md-6">
4bb02bb84   Rishav   new integration w...
251
252
253
           <div class="widget stacked">
              <div class="widget-header">
                 <i class="fa fa-pencil"></i>
8707ba5fd   Swarn Singh   fuel manager done
254
                 <h3><b style="color: 39c;">AVGAS 100LL </b> <i>Customer Margin Template</i></h3>
71c760e0c   Jaideep Singh   update Fuel Manag...
255
                 
4bb02bb84   Rishav   new integration w...
256
257
              </div>
              <!-- /widget-header -->
a9e3a7365   Swarn Singh   fix issues on vie...
258
              <div class="widget-content" style="padding-top: 10px;">
8707ba5fd   Swarn Singh   fuel manager done
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
                 <section id="accordions">
                    <div class="newCustomAccordian">
                       <!-- tab 1 -->
                       <div ng-repeat="jets in vTypeJets">
                          <div class="customAccordianHeader" id="{{jets.id}}">
                             <span>{{jets.marginName}}</span>
                             <select class="form-control" disabled="true" ng-model="jets.pricingStructure">
                                <option value="" disabled selected>Pricing Structure</option>
                                <option value="minus">Retail-(minus)</option>
                                <option value="plus">Cost+(plus)</option>
                                <option value="equal">Direct=(equal)</option>
                             </select>
                             <span style="margin-right: 0;">$</span>
                             <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue">
                             <div class="pull-right">
e95d89b77   Swarn Singh   integrate editor ...
274
                                <button class="btn btn-success" style="display: none; background-image: none; background-color: #f3f3f3; color: #333; border:0;" ng-click="closeAccordianVtype(jets)">Close</button>
8707ba5fd   Swarn Singh   fuel manager done
275
276
                                <button class="btn btn-success" style="display: none;" ng-click="saveVtypeJetAccordian(jets)">Save</button>
                                <button class="btn btn-danger" style="display: none;" ng-click="deleteVtypeJetAccordian(jets.id)">Delete</button>
ebcdbb65b   Jaideep Singh   update Fuel Manag...
277
                                 <button type="button" class="btn btn-primary" ng-click="emailPricingForMargin()" style= "font-weight: normal; text-align: center;  font-size:12px">Email Pricing for this Margin</button>
71c760e0c   Jaideep Singh   update Fuel Manag...
278
                                <button class="btn btn-default" ng-click="toggleVtypeJestAccordian(jets.id, $index)" style= "text-align: center;  font-size:12px">Edit</button>
4bb02bb84   Rishav   new integration w...
279
                             </div>
8707ba5fd   Swarn Singh   fuel manager done
280
                             <div class="clearfix"></div>
4bb02bb84   Rishav   new integration w...
281
                          </div>
8707ba5fd   Swarn Singh   fuel manager done
282
283
284
285
286
287
288
289
290
291
292
                          <div class="customAccordianTabBody {{jets.id}}" style="display: none;">
                             <div class="tierListWrap" ng-repeat="tier in vTypeJets[$index].tierList">
                                <div class="tierListHead" style="height: 36px;">
                                   <span class="pull-left tierHeadingSpan" ng-hide="showEditTier">{{tier.minTierBreak}}-{{tier.maxTierBreak}} gal.
                                   </span>
                                   <i class="fa fa-pencil-square-o pull-right" ng-click="showEditTier = ! showEditTier" ng-hide="showEditTier" style="margin-top: 5px; cursor: pointer;" aria-hidden="true"></i>
                                   
                                   <input type="text" placeholder="min" style="width: 36px;" ng-model="tier.minTierBreak" ng-show="showEditTier">
                                   <span ng-show="showEditTier">-</span> 
                                   <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.maxTierBreak" ng-show="showEditTier"> <b ng-show="showEditTier">gal.</b>
                                   <div class="clearfix"></div>
4bb02bb84   Rishav   new integration w...
293
                                </div>
8707ba5fd   Swarn Singh   fuel manager done
294
295
296
297
                                <div class="tierListBody" style="height: 35px;">
                                   <span class="pull-left minTierSpan" ng-hide="showEditTier">-${{tier.margin}}</span> 
  
                                   <input type="text" placeholder="max" style="width: 36px;" ng-model="tier.margin" ng-show="showEditTier"> &nbsp; 
68c767613   Swarn Singh   fixed ramp fee an...
298
                                   <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span>
8707ba5fd   Swarn Singh   fuel manager done
299

32286a73a   Swarn Singh   tier issue resolved
300
                                   <button class="addTierBtn" ng-click="editVtypeTier(tier, $parent.$index)" ng-show="showEditTier">Save</button>
8707ba5fd   Swarn Singh   fuel manager done
301

32286a73a   Swarn Singh   tier issue resolved
302
                                   <i class="fa fa-trash-o deleteTierIcon" ng-click="deleteVtypeTier(tier.id, jets.id, $parent.$index)" aria-hidden="true" ng-show="showEditTier"></i>
8707ba5fd   Swarn Singh   fuel manager done
303
304
  
                                   <div class="clearfix"></div>
4bb02bb84   Rishav   new integration w...
305
                                </div>
8707ba5fd   Swarn Singh   fuel manager done
306
307
308
309
310
311
312
                             </div>
                             <div class="tierListWrap" style="width: 160px;">
                                <div class="tierListHead" style="border-right: 1px solid #ddd;">
                                   <input type="text" placeholder="min" ng-model="vtrData[$index].minTierBreak">
                                   <span>-</span> 
                                   <input type="text" placeholder="max" ng-model="vtrData[$index].maxTierBreak"> <b>gal.</b>
                                   <div class="clearfix"></div>
4bb02bb84   Rishav   new integration w...
313
                                </div>
8707ba5fd   Swarn Singh   fuel manager done
314
315
316
317
318
                                <div class="tierListBody" style="border-right: 1px solid #ddd;">
                                   <span style="color: #449d44;">$</span>
                                   <input type="text" placeholder="margin" ng-model="vtrData[$index].margin" class="tierTextBox" style="width: 70px; height: 24px;">
                                   <button class="addTierBtn" ng-click="addNewVtypeTier(jets.id, vtrData, $index)">Add Tier</button>
                                   <div class="clearfix"></div>
4bb02bb84   Rishav   new integration w...
319
320
                                </div>
                             </div>
8707ba5fd   Swarn Singh   fuel manager done
321
322
323
324
325
326
327
328
329
                             <!-- <div class="tierListWrap" style="width: 32px;">
                                <div class="tierListHead" style="height: 36px; border-right: 1px solid #ddd;">
                                   &nbsp;
                                </div>
                                <div class="tierListBody" style="height: 35px; border-right: 1px solid #ddd;">
                                   <i class="fa fa-trash-o deleteTierIcon" aria-hidden="true"></i>
                                </div>
                             </div> -->
                             <div class="clearfix"></div>
e95d89b77   Swarn Singh   integrate editor ...
330
331
                             <br/>
                             <div ckeditor="options" ng-model="jets.message" ready="onReady()"></div>
4bb02bb84   Rishav   new integration w...
332
333
334
                          </div>
                       </div>
                    </div>
71c760e0c   Jaideep Singh   update Fuel Manag...
335
336
337
                    <div class="pull-right">
                      <button type="submit" class="btn btn-success btn-sm" ng-click="addNewVtypePop()" style="margin-top: 4px; margin-right: 10px;"><i class="fa fa-plus" aria-hidden="true"></i> Add New Margin</button>
                   </div>
8707ba5fd   Swarn Singh   fuel manager done
338
                 </section>
a9e3a7365   Swarn Singh   fix issues on vie...
339
                 <!-- <div class="row">&nbsp;</div>
8707ba5fd   Swarn Singh   fuel manager done
340
341
342
343
344
345
                 <div class="row">
                    <div class="form-group">
                       <div class="col-lg-12 text-right">
                          <button type="submit" class="btn btn-success"><i class="icon-ok"></i> Save Form</button>&nbsp;&nbsp;
                          <button type="reset" class="btn btn-default">Cancel</button>
                       </div>
4bb02bb84   Rishav   new integration w...
346
                    </div>
a9e3a7365   Swarn Singh   fix issues on vie...
347
                 </div> -->
4bb02bb84   Rishav   new integration w...
348
349
350
351
352
353
354
355
356
              </div>
              <!-- /widget-content -->
           </div>
           <!-- /widget -->
     </div>
        <!-- /span6 -->
  </div>
  </div>
  </div>
feacde5ff   Rishav   setup acuefuel in...
357
  </div> <!-- /container -->
1097c2ce1   Swarn Singh   margin module add...
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
  
  
  <div class="addNewMargin" style="display: none;">
     <div class="customBackdrop">
        <div class="customModalInner" style="max-width: 700px;">
           <div class="customModelHead">
              <p class="pull-left">
                 <i class="fa fa-list-alt" aria-hidden="true"></i>
                 Add New JET-A Customer Margin
              </p>
              <p class="pull-right">
                 <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeMarginPopup()"></i>
              </p>
              <div class="clearfix"></div>
           </div>
           <div class="customModelBody">
              
              <div class="customAccordianHeader customActive">
                 <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newJet.marginName">
                 <select class="form-control" ng-model="newJet.pricingStructure">
                    <option value="" disabled selected>Pricing Structure</option>
                    <option value="minus">Retail-(minus)</option>
                    <option value="plus">Cost+(plus)</option>
                    <option value="equal">Direct=(equal)</option>
                 </select>
                 <span style="margin-right: 0;">$</span>
                 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newJet.marginValue">
                 <div class="clearfix"></div>
              </div>
              <div class="customAccordianTabBody">
e95d89b77   Swarn Singh   integrate editor ...
388
                 <div ckeditor="options" ng-model="newJet.message" ready="onReady()"></div>
1097c2ce1   Swarn Singh   margin module add...
389
390
391
392
393
394
395
396
397
398
              </div>
  
           </div>
           <div class="customModelFooter text-center">
              <input type="submit" value="Save" class="btn" ng-click="addNewATypeJet()">
              <button class="btn" ng-click="closeMarginPopup()">Cancel</button>
           </div>
        </div>
     </div>
  </div>
8707ba5fd   Swarn Singh   fuel manager done
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
  <div class="addNewVtype" style="display: none;">
     <div class="customBackdrop">
        <div class="customModalInner" style="max-width: 700px;">
           <div class="customModelHead">
              <p class="pull-left">
                 <i class="fa fa-list-alt" aria-hidden="true"></i>
                 Add New AVGAS 100LL Customer Margin Template
              </p>
              <p class="pull-right">
                 <i class="fa fa-times" aria-hidden="true" style="cursor: pointer;" ng-click="closeNewVtypePop()"></i>
              </p>
              <div class="clearfix"></div>
           </div>
           <div class="customModelBody">
              
              <div class="customAccordianHeader customActive">
                 <input type="text" class="form-control" style="width: 120px; margin-right: 10px;" placeholder="Margin Name" ng-model="newVtypeJet.marginName">
                 <select class="form-control" ng-model="newVtypeJet.pricingStructure">
                    <option value="" disabled selected>Pricing Structure</option>
                    <option value="minus">Retail-(minus)</option>
                    <option value="plus">Cost+(plus)</option>
                    <option value="equal">Direct=(equal)</option>
                 </select>
                 <span style="margin-right: 0;">$</span>
                 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newVtypeJet.marginValue">
                 <div class="clearfix"></div>
              </div>
              <div class="customAccordianTabBody">
e95d89b77   Swarn Singh   integrate editor ...
427
                 <div ckeditor="options" ng-model="newVtypeJet.message" ready="onReady()"></div>
8707ba5fd   Swarn Singh   fuel manager done
428
429
430
431
432
433
434
435
436
437
              </div>
  
           </div>
           <div class="customModelFooter text-center">
              <input type="submit" value="Save" class="btn" ng-click="addNewVTypeJet()">
              <button class="btn" ng-click="closeNewVtypePop()">Cancel</button>
           </div>
        </div>
     </div>
  </div>
1097c2ce1   Swarn Singh   margin module add...
438

882908c84   Swarn Singh   fuel pricing modu...
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
  <div class="customConfirmPopBackdrop" id="confirm1" style="display: none;">
    <div class="customModalInner">
       <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
          <table>
             <tr>
                <td>
                   <img src="img/info.png" style="width: 50px;">
                </td>
                <td>
                   <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing to everyone in your contact list?</p>
                </td>
             </tr>
          </table>
       </div>
       <div class="customModelFooter text-right" style="border-radius: 0 0 5px 5px;">
          <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="saveAndCloseConfirm()">Yes</button>
          <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseConfirm()">Cancel</button>
       </div>
    </div>
  </div>
ebcdbb65b   Jaideep Singh   update Fuel Manag...
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
  <div class="customConfirmPopBackdrop" id="confirm2" style="display: none;">
    <div class="customModalInner">
       <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
          <table>
             <tr>
                <td>
                   <img src="img/info.png" style="width: 50px;">
                </td>
                <td>
                   <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to email pricing for this margin?</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="saveAndCloseForMarginConfirm()">Yes</button>
          <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseForMarginConfirm()">Cancel</button>
       </div>
    </div>
  </div>
882908c84   Swarn Singh   fuel pricing modu...
479

a9e3a7365   Swarn Singh   fix issues on vie...
480
481
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
  <div class="customConfirmPopBackdrop" id="deleteTierConfirm" style="display: none;">
    <div class="customModalInner">
       <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
          <table>
             <tr>
                <td>
                   <img src="img/info.png" style="width: 50px;">
                </td>
                <td>
                   <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</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="confirmDeleteTier()">Yes</button>
          <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelTierDelete()">Cancel</button>
       </div>
    </div>
  </div>
  
  <div class="customConfirmPopBackdrop" id="deleteVtypeTierConfirm" style="display: none;">
    <div class="customModalInner">
       <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
          <table>
             <tr>
                <td>
                   <img src="img/info.png" style="width: 50px;">
                </td>
                <td>
                   <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier ?</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="confirmDeleteVtypeTier()">Yes</button>
          <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeTierDelete()">Cancel</button>
       </div>
    </div>
  </div>
9732e9b36   Swarn Singh   updates in fuel m...
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
  <div class="customConfirmPopBackdrop" id="deleteMargin" style="display: none;">
    <div class="customModalInner">
       <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
          <table>
             <tr>
                <td>
                   <img src="img/info.png" style="width: 50px;">
                </td>
                <td>
                   <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</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="confirmDeleteMargin()">Yes</button>
          <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelMarginDelete()">Cancel</button>
       </div>
    </div>
  </div>
  
  <div class="customConfirmPopBackdrop" id="deleteVtypeMargin" style="display: none;">
    <div class="customModalInner">
       <div class="customModelBody" style="border-radius: 5px 5px 0 0;">
          <table>
             <tr>
                <td>
                   <img src="img/info.png" style="width: 50px;">
                </td>
                <td>
                   <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template ?</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="confirmDeletVtypeMargin()">Yes</button>
          <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelVtypeMarginDelete()">Cancel</button>
       </div>
    </div>
  </div>
feacde5ff   Rishav   setup acuefuel in...
562
563
564
  <!-- Le javascript
     ================================================== -->
  <!-- Placed at the end of the document so the pages load faster -->
4bb02bb84   Rishav   new integration w...
565
  <!-- <script>
feacde5ff   Rishav   setup acuefuel in...
566
567
568
569
     CKEDITOR.replace( 'editor2', {
        height: 250,
        extraPlugins: 'divarea'
     } );
4bb02bb84   Rishav   new integration w...
570
  </script> -->