| Line 233... |
Line 233... |
| 233 |
<div class="col-lg-12">
|
233 |
<div class="col-lg-12">
|
| 234 |
<h5><strong>Edit Targets</strong></h5>
|
234 |
<h5><strong>Edit Targets</strong></h5>
|
| 235 |
<div id="edit-targets-section" data-offerid="$offer.getId()">
|
235 |
<div id="edit-targets-section" data-offerid="$offer.getId()">
|
| 236 |
#if($offer.getTargetSlabs() && $offer.getTargetSlabs().size() > 0)
|
236 |
#if($offer.getTargetSlabs() && $offer.getTargetSlabs().size() > 0)
|
| 237 |
#set($targetIndex = 0)
|
237 |
#set($targetIndex = 0)
|
| 238 |
#foreach($itemCriteriaPayout in $offer.getTargetSlabs().get(0).getItemCriteriaPayouts())
|
238 |
#foreach($payoutSlab in $offer.getTargetSlabs().get(0).getItemCriteriaPayouts().get(0).getPayoutSlabs())
|
| 239 |
#foreach($payoutSlab in $itemCriteriaPayout.getPayoutSlabs())
|
- |
|
| 240 |
#set($targetIndex = $targetIndex + 1)
|
239 |
#set($targetIndex = $targetIndex + 1)
|
| 241 |
<div class="form-group form-inline" style="margin-bottom:5px;">
|
240 |
<div class="form-group form-inline" style="margin-bottom:5px;">
|
| 242 |
<label style="width:80px;">Target $targetIndex</label>
|
241 |
<label style="width:80px;">Target $targetIndex</label>
|
| 243 |
<input type="number" class="form-control edit-target-value" value="$payoutSlab.getOnwardsAmount()" style="width:180px;">
|
242 |
<input type="number" class="form-control edit-target-value" value="$payoutSlab.getOnwardsAmount()" style="width:180px;">
|
| 244 |
</div>
|
243 |
</div>
|
| 245 |
#end
|
- |
|
| 246 |
#end
|
244 |
#end
|
| 247 |
<button class="btn btn-primary btn-sm update-offer-targets" type="button" style="margin-top:5px;">Update Targets</button>
|
245 |
<button class="btn btn-primary btn-sm update-offer-targets" type="button" style="margin-top:5px;">Update Targets</button>
|
| 248 |
#else
|
246 |
#else
|
| 249 |
<p style="color:#999;">No target slabs found for this offer.</p>
|
247 |
<p style="color:#999;">No target slabs found for this offer.</p>
|
| 250 |
#end
|
248 |
#end
|