Subversion Repositories SmartDukaan

Rev

Rev 33713 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="modal-header">
    <button type="button" class="close" id="cancel-model" data-dismiss="modal">&times;</button>
    <h4 class="modal-title">Terms & Conditions</h4>
</div>
<div class="modal-body" style="height:500px;overflow:auto">
    <div style="margin-top: 15px;" class="offer-margin-table">

        <div class="row">
            <div class="col-lg-12">
                <div style="font-size:20px; font-weight:bold"
                     class="pull-left">$vmUtils.html($offer.getDescription())</div>
            </div>
        </div>
        <div class="row" style="max-height:600px;overflow-y:auto">
            #if($offer.isBaseCriteria())
                <div class="col-lg-12">
                    <p class="pull-left">
                        <b>Base Criteria - </b>
                        $vmUtils.html($offer.getItemCriteriaString())
                    </p>
                </div>
            #end
            <div class="col-lg-12">
                <table class="table table-bordered table-sm">
                    <thead>
                    <tr>
                        <th>Models</th>
                        <th>Target</th>
                        <th>Payout</th>
                    </tr>
                    </thead>
                    <tbody>
                        #foreach($itemCriteriaPayout in $offer.getTargetSlabs().get(0).getItemCriteriaPayouts())
                            #foreach($payoutSlab in $itemCriteriaPayout.getPayoutSlabs())
                            <tr>
                                #if($velocityCount==1)
                                    <td rowspan="$itemCriteriaPayout.getPayoutSlabs().size()">
                                        $itemCriteriaPayout.getItemCriteriaString()
                                    </td>
                                #end
                                #if($offer.getPayoutType().name().equals("QUANTITY"))
                                    <td>$payoutSlab.getOnwardsAmount() pcs Onwards</td>
                                #else
                                    <td>Rs.<span class="currency">$payoutSlab.getOnwardsAmount()</span> Onwards</td>
                                #end
                                #if($itemCriteriaPayout.getAmountType().name().equals("PERCENTAGE"))
                                    <td>$payoutSlab.getPayoutAmount()%</td>
                                #elseif($itemCriteriaPayout.getAmountType().name().equals("FIXED"))
                                    <td>Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span> per pc</td>
                                #else
                                    <td>Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span></td>
                                #end
                            </tr>
                            #end
                        #end
                    </tbody>
                </table>
            </div>
        </div>
    </div>


    <div class="row">
        <div class="col-lg-12">
            <ul id="descriptionMenu" style="text-align:left">
                #if($offer.getOfferNotes() && !$offer.getOfferNotes().equals(""))
                    <li>
                        Note -  $vmUtils.html($offer.getOfferNotes())
                    </li>
                #end

            </ul>

            <div class="termContainer ck-content">

                $vmUtils.html($offer.getTerms())

            </div>


        </div>
    </div>

</div>
<div class="modal-footer">
    <button type="button" data-dismiss="modal" class="btn btn-default cancel-description">Dismiss</button>
</div>