Blame view

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

feacde5ff   Rishav   setup acuefuel in...
2
  <style>
8fc0ea8f4   Kuldeep Arora   update menu items
3
     .subnavbar .mainnav > li:nth-child(3) > a{
6f19fff16   Kuldeep Arora   Rebranding-FBOins...
4
     color: #c44646;
feacde5ff   Rishav   setup acuefuel in...
5
     }
259cb85cd   Swarn Singh   confilct fixed
6
7
8
     .extraClasToMerge{
        color: #fff;
     }
feacde5ff   Rishav   setup acuefuel in...
9
  </style>
d121d5539   Kuldeep Arora   UI Changes
10

32286a73a   Swarn Singh   tier issue resolved
11
12
13
  <div class="myLoader" ng-show="showLoader">
    <img src="../img/hourglass.gif" width="50px;">
  </div>
c622f8e75   Swarn Singh   drog-drop and upd...
14
15
  
  <div class="col-xs-12 col-md-6">
d121d5539   Kuldeep Arora   UI Changes
16

feacde5ff   Rishav   setup acuefuel in...
17
18
           <div class="widget stacked">
              <div class="widget-header">
4bb02bb84   Rishav   new integration w...
19
                 <i class="fa fa-pencil"></i>
d121d5539   Kuldeep Arora   UI Changes
20
                 <h3>Price Manager Active</h3>
f62f8940f   Kuldeep Arora   UI changes
21
                 <select ng-show="isShowEmail" 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()">
d121d5539   Kuldeep Arora   UI Changes
22
23
24
25
26
27
                    <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>
feacde5ff   Rishav   setup acuefuel in...
28
29
30
              </div>
              <!-- /widget-header -->
              <div class="widget-content">
d121d5539   Kuldeep Arora   UI Changes
31
                 <h4>Deployed Fuel Prices</h4>
302b19c4e   Kuldeep Arora   updates
32
                 <table class="table vertical-center">
feacde5ff   Rishav   setup acuefuel in...
33
34
35
36
                    <thead>
                       <tr>
                          <th> Product</th>
                          <th> Cost</th>
d121d5539   Kuldeep Arora   UI Changes
37
                          <th> Margin</th>
feacde5ff   Rishav   setup acuefuel in...
38
                          <th> PAP(Total)</th>
d121d5539   Kuldeep Arora   UI Changes
39
                          <th style="color: #F90;"> Expires</th>
feacde5ff   Rishav   setup acuefuel in...
40
41
42
                       </tr>
                    </thead>
                    <tbody>
302b19c4e   Kuldeep Arora   updates
43
                       <tr ng-repeat="fuelPricing in newFuelPricing | orderBy : 'namejetrest' | filter:{ status: true }">
882908c84   Swarn Singh   fuel pricing modu...
44
                          <td>
71c760e0c   Jaideep Singh   update Fuel Manag...
45
46
47
48
                             <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...
49
50
                          </td>
                          <td>
b16f486c3   Kuldeep Arora   minor
51
                            <span>{{fuelPricing.fuelPricing.cost | number : 4}}</span>
d121d5539   Kuldeep Arora   UI Changes
52
                            </td>
882908c84   Swarn Singh   fuel pricing modu...
53
                          <td>
b16f486c3   Kuldeep Arora   minor
54
                            <span>{{fuelPricing.fuelPricing.papMargin | number : 4}}</span>
d121d5539   Kuldeep Arora   UI Changes
55
                             </td>
882908c84   Swarn Singh   fuel pricing modu...
56
                          <td>
d121d5539   Kuldeep Arora   UI Changes
57
                             <span style="line-height: 31px; color: #1ab394;">$ {{fuelPricing.fuelPricing.cost -- fuelPricing.fuelPricing.papMargin  | number : 4 }}</span>
882908c84   Swarn Singh   fuel pricing modu...
58
59
                          </td>
                          <td>
d121d5539   Kuldeep Arora   UI Changes
60
                            <span>{{fuelPricing.fuelPricing.expirationDate}}</span>
882908c84   Swarn Singh   fuel pricing modu...
61
                          </td>
feacde5ff   Rishav   setup acuefuel in...
62
63
64
                       </tr>
                    </tbody>
                 </table>
d121d5539   Kuldeep Arora   UI Changes
65
66
                
              </div>
feacde5ff   Rishav   setup acuefuel in...
67
68
              <!-- /widget-content -->
           </div>
d121d5539   Kuldeep Arora   UI Changes
69
           <!-- /widget --> 
c622f8e75   Swarn Singh   drog-drop and upd...
70

d121d5539   Kuldeep Arora   UI Changes
71
     
c622f8e75   Swarn Singh   drog-drop and upd...
72
73
74
           <div class="widget stacked">
              <div class="widget-header">
                 <i class="fa fa-pencil"></i>
d121d5539   Kuldeep Arora   UI Changes
75
                 <h3>Price Manager Staging</h3>
c622f8e75   Swarn Singh   drog-drop and upd...
76
77
78
              </div>
              <!-- /widget-header -->
              <div class="widget-content">
d121d5539   Kuldeep Arora   UI Changes
79
80
                 <h6 style="color:#F90">Queue Pricing for Deployment in the Price Manager below</h6>
                 <form>
302b19c4e   Kuldeep Arora   updates
81
                 <table class="table vertical-center">
c622f8e75   Swarn Singh   drog-drop and upd...
82
83
84
85
                    <thead>
                       <tr>
                          <th> Product</th>
                          <th> Cost</th>
d121d5539   Kuldeep Arora   UI Changes
86
87
88
                          <th> PAP(Margin)</th>
                          <th> Effective Date</th>
                          <th style="color: #F90;">Price Expires</th>
c622f8e75   Swarn Singh   drog-drop and upd...
89
                          <th> PAP(Total)</th>
c622f8e75   Swarn Singh   drog-drop and upd...
90
91
92
                       </tr>
                    </thead>
                    <tbody>
302b19c4e   Kuldeep Arora   updates
93
                       <tr ng-repeat="fuelPricing in newFuelPricing | orderBy : 'namejetrest' | filter:{ status: true }">
c622f8e75   Swarn Singh   drog-drop and upd...
94
95
96
97
98
99
100
                          <td>
                             <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>
                          </td>
                          <td>
cf8827d2e   Kuldeep Arora   decimal points fixed
101
                             <input type="text" class="form-control" ng-keyup="disableButtons(fuelPricing.futureFuelPricing.cost)" ng-model="fuelPricing.futureFuelPricing.cost" style="height:31px; width: 60px; padding: 6px 6px; font-size:12px;"  placeholder="0.0000" valid-number />
d121d5539   Kuldeep Arora   UI Changes
102
103
                          </td>
                           <td>
cf8827d2e   Kuldeep Arora   decimal points fixed
104
                             <input type="text" class="form-control" ng-model="fuelPricing.futureFuelPricing.papMargin" style="height:31px; width: 80px; padding: 6px 6px; font-size:12px;" placeholder="0.0000" valid-number />
d121d5539   Kuldeep Arora   UI Changes
105
                          </td>
c622f8e75   Swarn Singh   drog-drop and upd...
106
                          <td>
d121d5539   Kuldeep Arora   UI Changes
107
108
                             <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; font-size:12px;">
                          </td>
c622f8e75   Swarn Singh   drog-drop and upd...
109
                          <td>
d121d5539   Kuldeep Arora   UI Changes
110
                             <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; font-size:12px;">
c622f8e75   Swarn Singh   drog-drop and upd...
111
112
                          </td>
                          <td>
d121d5539   Kuldeep Arora   UI Changes
113
                             <span style="line-height: 31px; color: #1ab394; font-size:12px;">$ {{fuelPricing.futureFuelPricing.cost -- fuelPricing.futureFuelPricing.papMargin  | number : 4}}</span>
c622f8e75   Swarn Singh   drog-drop and upd...
114
115
116
117
                          </td>
                       </tr>
                    </tbody>
                 </table>
d121d5539   Kuldeep Arora   UI Changes
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
                 <div class="row" style="margin-left: 0px;">
                    <div class="col-md-12" style= "text-align: right; padding-left: 0;">
                      <div style="float: left;">
                        <button type="button" class="btn btn-primary btn-xs" ng-click="updateFutureFuelPricingImmediatelyClick()" ng-disabled="noPrices" style= "text-align: center;  font-size:12px">Save & Deploy Immediately</button>
                    
                       <button type="button" ng-click="resetFutureFuelPricingClick()" 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()" ng-disabled="noPrices" style="margin-right:3%">Save & Stage for Deploy</button>
                      </div>
                       <div style="clear: both;"></div>
                    </div>
                 </div>
               </form>
             </div>
c622f8e75   Swarn Singh   drog-drop and upd...
133
134
135
              <!-- /widget-content -->
           </div>
           <!-- /widget -->  
d121d5539   Kuldeep Arora   UI Changes
136
   
c622f8e75   Swarn Singh   drog-drop and upd...
137
  </div>
d121d5539   Kuldeep Arora   UI Changes
138

c622f8e75   Swarn Singh   drog-drop and upd...
139
140
  <div class="col-xs-12 col-md-6">
     
feacde5ff   Rishav   setup acuefuel in...
141
142
           <div class="widget stacked">
              <div class="widget-header">
4bb02bb84   Rishav   new integration w...
143
                 <i class="fa fa-pencil"></i>
71c760e0c   Jaideep Singh   update Fuel Manag...
144
145
                 <h3 style="font-style: italic"><b style="color: #2196f3; font-style: normal">JET-A</b> Customer Margin Template</h3>
                 
feacde5ff   Rishav   setup acuefuel in...
146
147
              </div>
              <!-- /widget-header -->
a9e3a7365   Swarn Singh   fix issues on vie...
148
              <div class="widget-content" style="padding-top: 10px;">
e8983332d   Swarn Singh   margin accordian ...
149
150
151
                 <section id="accordions">
                    <div class="newCustomAccordian">
                       <!-- tab 1 -->
1097c2ce1   Swarn Singh   margin module add...
152
153
154
                       <div ng-repeat="jets in aTypeJets">
                          <div class="customAccordianHeader" id="{{jets.id}}">
                             <span>{{jets.marginName}}</span>
302b19c4e   Kuldeep Arora   updates
155
                             <select class="form-control" disabled="true" ng-model="jets.pricingStructure" ng-change="selectChanged($index)">
1097c2ce1   Swarn Singh   margin module add...
156
                                <option value="" disabled selected>Pricing Structure</option>
d121d5539   Kuldeep Arora   UI Changes
157
158
                                <option value="minus">Retail/PAP - (minus)</option>
                                <option value="plus">Cost + (plus)</option>
d32bc94d9   Kuldeep Arora   minor changes
159
                                <option value="equal">Direct = (equal)</option>
1097c2ce1   Swarn Singh   margin module add...
160
161
                             </select>
                             <span style="margin-right: 0;">$</span>
a7c71ad58   Kuldeep Arora   price manager aut...
162
                             <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue" ng-blur="force4decimals(jets.marginValue)" placeholder="0.0000"  valid-number />
1097c2ce1   Swarn Singh   margin module add...
163
                             <div class="pull-right">
e95d89b77   Swarn Singh   integrate editor ...
164
                                <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...
165
166
                                <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>
f62f8940f   Kuldeep Arora   UI changes
167
                                <button type="button" ng-show="isShowEmail" class="btn btn-primary" ng-click="emailPricingForJetAMargin(jets.id)" style= "font-weight: normal; text-align: center;  font-size:12px">Email Pricing for this Margin</button>
71c760e0c   Jaideep Singh   update Fuel Manag...
168
                                <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...
169
170
171
172
                             </div>
                             <div class="clearfix"></div>
                          </div>
                          <div class="customAccordianTabBody {{jets.id}}" style="display: none;">
8707ba5fd   Swarn Singh   fuel manager done
173
                             <div class="tierListWrap" ng-repeat="tier in aTypeJets[$index].tierList">
05c2f6fb3   Swarn Singh   margin module and...
174
175
176
177
178
179
180
181
182
183
184
185
186
187
                                <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...
188
                                   <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span>
05c2f6fb3   Swarn Singh   margin module and...
189

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

32286a73a   Swarn Singh   tier issue resolved
192
                                   <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...
193
194
195
196
197
198
  
                                   <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
199
                                   <input type="text" placeholder="min" ng-model="trData[$index].minTierBreak">
05c2f6fb3   Swarn Singh   margin module and...
200
                                   <span>-</span> 
8707ba5fd   Swarn Singh   fuel manager done
201
                                   <input type="text" placeholder="max" ng-model="trData[$index].maxTierBreak"> <b>gal.</b>
05c2f6fb3   Swarn Singh   margin module and...
202
203
204
205
                                   <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
206
207
                                   <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...
208
209
210
211
212
213
214
215
216
217
218
219
                                   <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 ...
220
221
222
                             <!-- <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...
223
                          </div>
feacde5ff   Rishav   setup acuefuel in...
224
                       </div>
feacde5ff   Rishav   setup acuefuel in...
225
                    </div>
71c760e0c   Jaideep Singh   update Fuel Manag...
226
227
228
                     <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 ...
229
                 </section>
a9e3a7365   Swarn Singh   fix issues on vie...
230
                 <!-- <div class="row">&nbsp;</div>
e8983332d   Swarn Singh   margin accordian ...
231
232
233
234
235
236
                 <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...
237
                    </div>
a9e3a7365   Swarn Singh   fix issues on vie...
238
                 </div> -->
feacde5ff   Rishav   setup acuefuel in...
239
240
241
242
              </div>
              <!-- /widget-content -->
           </div>
           <!-- /widget -->
c622f8e75   Swarn Singh   drog-drop and upd...
243

79e5208c9   Swarn Singh   fixed some minor ...
244

4bb02bb84   Rishav   new integration w...
245
246
247
           <div class="widget stacked">
              <div class="widget-header">
                 <i class="fa fa-pencil"></i>
8707ba5fd   Swarn Singh   fuel manager done
248
                 <h3><b style="color: 39c;">AVGAS 100LL </b> <i>Customer Margin Template</i></h3>
71c760e0c   Jaideep Singh   update Fuel Manag...
249
                 
4bb02bb84   Rishav   new integration w...
250
251
              </div>
              <!-- /widget-header -->
a9e3a7365   Swarn Singh   fix issues on vie...
252
              <div class="widget-content" style="padding-top: 10px;">
8707ba5fd   Swarn Singh   fuel manager done
253
254
255
256
257
258
259
260
                 <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>
d121d5539   Kuldeep Arora   UI Changes
261
262
263
                                <option value="minus">Retail - (minus)</option>
                                <option value="plus">Cost + (plus)</option>
                                <option value="equal">Direct = (equal)</option>
8707ba5fd   Swarn Singh   fuel manager done
264
265
                             </select>
                             <span style="margin-right: 0;">$</span>
a7c71ad58   Kuldeep Arora   price manager aut...
266
                             <input type="text" disabled="true" class="form-control" ng-model="jets.marginValue" ng-blur="force4decimals(jets.marginValue)" placeholder="0.0000" valid-number />
8707ba5fd   Swarn Singh   fuel manager done
267
                             <div class="pull-right">
e95d89b77   Swarn Singh   integrate editor ...
268
                                <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
269
270
                                <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>
f62f8940f   Kuldeep Arora   UI changes
271
                                 <button type="button" ng-show="isShowEmail" class="btn btn-primary" ng-click="emailPricingForAVGASMargin(jets.id)" style= "font-weight: normal; text-align: center;  font-size:12px">Email Pricing for this Margin</button>
71c760e0c   Jaideep Singh   update Fuel Manag...
272
                                <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...
273
                             </div>
8707ba5fd   Swarn Singh   fuel manager done
274
                             <div class="clearfix"></div>
4bb02bb84   Rishav   new integration w...
275
                          </div>
8707ba5fd   Swarn Singh   fuel manager done
276
277
278
279
280
281
282
283
284
285
286
                          <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...
287
                                </div>
8707ba5fd   Swarn Singh   fuel manager done
288
289
290
291
                                <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...
292
                                   <span class="pull-right maxTierSpan" ng-hide="showEditTier">(${{tier.marginTotal | number : 2}})</span>
8707ba5fd   Swarn Singh   fuel manager done
293

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

32286a73a   Swarn Singh   tier issue resolved
296
                                   <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
297
298
  
                                   <div class="clearfix"></div>
4bb02bb84   Rishav   new integration w...
299
                                </div>
8707ba5fd   Swarn Singh   fuel manager done
300
301
302
303
304
305
306
                             </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...
307
                                </div>
8707ba5fd   Swarn Singh   fuel manager done
308
309
310
311
312
                                <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...
313
314
                                </div>
                             </div>
8707ba5fd   Swarn Singh   fuel manager done
315
316
317
318
319
320
321
322
323
                             <!-- <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 ...
324
325
                             <br/>
                             <div ckeditor="options" ng-model="jets.message" ready="onReady()"></div>
4bb02bb84   Rishav   new integration w...
326
327
328
                          </div>
                       </div>
                    </div>
71c760e0c   Jaideep Singh   update Fuel Manag...
329
330
331
                    <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
332
                 </section>
a9e3a7365   Swarn Singh   fix issues on vie...
333
                 <!-- <div class="row">&nbsp;</div>
8707ba5fd   Swarn Singh   fuel manager done
334
335
336
337
338
339
                 <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...
340
                    </div>
a9e3a7365   Swarn Singh   fix issues on vie...
341
                 </div> -->
4bb02bb84   Rishav   new integration w...
342
343
344
345
              </div>
              <!-- /widget-content -->
           </div>
           <!-- /widget -->
c622f8e75   Swarn Singh   drog-drop and upd...
346
347
     
        
1097c2ce1   Swarn Singh   margin module add...
348

c622f8e75   Swarn Singh   drog-drop and upd...
349
350
  </div>
  <div class="clearfix"></div>
1097c2ce1   Swarn Singh   margin module add...
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
  
  <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>
d121d5539   Kuldeep Arora   UI Changes
371
372
373
                    <option value="minus">Retail -(minus)</option>
                    <option value="plus">Cost +(plus)</option>
                    <option value="equal">Direct =(equal)</option>
1097c2ce1   Swarn Singh   margin module add...
374
375
                 </select>
                 <span style="margin-right: 0;">$</span>
a7c71ad58   Kuldeep Arora   price manager aut...
376
                 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newJet.marginValue" ng-blur="force4decimals(newJet.marginValue)" valid-number />
1097c2ce1   Swarn Singh   margin module add...
377
378
379
                 <div class="clearfix"></div>
              </div>
              <div class="customAccordianTabBody">
e95d89b77   Swarn Singh   integrate editor ...
380
                 <div ckeditor="options" ng-model="newJet.message" ready="onReady()"></div>
1097c2ce1   Swarn Singh   margin module add...
381
382
383
384
385
386
387
388
389
390
              </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
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
  <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>
d121d5539   Kuldeep Arora   UI Changes
410
411
412
                    <option value="minus">Retail -(minus)</option>
                    <option value="plus">Cost +(plus)</option>
                    <option value="equal">Direct =(equal)</option>
8707ba5fd   Swarn Singh   fuel manager done
413
414
                 </select>
                 <span style="margin-right: 0;">$</span>
a7c71ad58   Kuldeep Arora   price manager aut...
415
                 <input type="text" class="form-control" style="width: 120px;" placeholder="Margin Price" ng-model="newVtypeJet.marginValue" ng-blur="force4decimals(newVtypeJet.marginValue)" valid-number />
8707ba5fd   Swarn Singh   fuel manager done
416
417
418
                 <div class="clearfix"></div>
              </div>
              <div class="customAccordianTabBody">
e95d89b77   Swarn Singh   integrate editor ...
419
                 <div ckeditor="options" ng-model="newVtypeJet.message" ready="onReady()"></div>
8707ba5fd   Swarn Singh   fuel manager done
420
421
422
423
424
425
426
427
428
429
              </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...
430

882908c84   Swarn Singh   fuel pricing modu...
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
  <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...
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
  <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...
471

bfbbd8668   Kuldeep Arora   UI service
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
  <div class="customConfirmPopBackdrop" id="confirm3" 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="saveAndCloseForAVGASMarginConfirm()">Yes</button>
          <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelAndCloseForAVGASMarginConfirm()">Cancel</button>
       </div>
    </div>
  </div>
a9e3a7365   Swarn Singh   fix issues on vie...
492
493
494
495
496
497
498
499
500
  <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>
2f2d8a9ef   Mr. Hot Foods   updates in update...
501
                   <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier?</p>
a9e3a7365   Swarn Singh   fix issues on vie...
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
                </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>
2f2d8a9ef   Mr. Hot Foods   updates in update...
522
                   <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Tier?</p>
a9e3a7365   Swarn Singh   fix issues on vie...
523
524
525
526
527
528
529
530
531
532
                </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...
533
534
535
536
537
538
539
540
541
  <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>
2f2d8a9ef   Mr. Hot Foods   updates in update...
542
                   <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template?</p>
9732e9b36   Swarn Singh   updates in fuel m...
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
                </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>
2f2d8a9ef   Mr. Hot Foods   updates in update...
563
                   <p style="padding: 5px 10px; margin-bottom: 0;">Are you sure that you want to delete this Margin Template?</p>
9732e9b36   Swarn Singh   updates in fuel m...
564
565
566
567
568
569
570
571
572
573
                </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>
2f2d8a9ef   Mr. Hot Foods   updates in update...
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
  <div class="customConfirmPopBackdrop" id="resetPricing" 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 you want to reset and clear all of the staged pricing above and current pricing below?</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="confirmReset()">Yes</button>
          <button class="btn" style="padding: 4px 0; width: 80px;" ng-click="cancelReset()">No</button>
       </div>
    </div>
  </div>
feacde5ff   Rishav   setup acuefuel in...
594
595
596
  <!-- Le javascript
     ================================================== -->
  <!-- Placed at the end of the document so the pages load faster -->
4bb02bb84   Rishav   new integration w...
597
  <!-- <script>
feacde5ff   Rishav   setup acuefuel in...
598
599
600
601
     CKEDITOR.replace( 'editor2', {
        height: 250,
        extraPlugins: 'divarea'
     } );
4bb02bb84   Rishav   new integration w...
602
  </script> -->