Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
32203 amit.gupta 1
<div class="modal-header">
2
    <button type="button" class="close" id="cancel-model" data-dismiss="modal">&times;</button>
3
    <h4 class="modal-title">Terms & Conditions</h4>
4
</div>
5
<div class="modal-body" style="height:500px;overflow:auto">
6
    <div style="margin-top: 15px;" class="offer-margin-table">
7
 
8
        <div class="row">
9
            <div class="col-lg-12">
10
                <div style="font-size:20px; font-weight:bold"
11
                     class="pull-left">$vmUtils.html($offer.getDescription())</div>
12
            </div>
13
        </div>
14
        <div class="row" style="max-height:600px;overflow-y:auto">
15
            #if($offer.isBaseCriteria())
16
                <div class="col-lg-12">
17
                    <p class="pull-left">
18
                        <b>Base Criteria - </b>
19
                        $vmUtils.html($offer.getItemCriteriaString())
20
                    </p>
21
                </div>
22
            #end
23
            <div class="col-lg-12">
24
                <table class="table table-bordered table-sm">
25
                    <thead>
26
                    <tr>
27
                        <th>Models</th>
28
                        <th>Target</th>
29
                        <th>Payout</th>
30
                    </tr>
31
                    </thead>
32
                    <tbody>
33
                        #foreach($itemCriteriaPayout in $offer.getTargetSlabs().get(0).getItemCriteriaPayouts())
34
                            #foreach($payoutSlab in $itemCriteriaPayout.getPayoutSlabs())
35
                            <tr>
36
                                #if($velocityCount==1)
37
                                    <td rowspan="$itemCriteriaPayout.getPayoutSlabs().size()">
33713 tejus.loha 38
                                        $itemCriteriaPayout.getItemCriteriaString()<br>
39
                                        #if($itemCriteriaPayout.getStartDate()||$itemCriteriaPayout.getEndDate())
40
                                            <span style="font-weight: bold;">Payout Date - </span><span>$itemCriteriaPayout.getStartDate().format($dateFormatter) to $itemCriteriaPayout.getEndDate().format($dateFormatter)</span>
41
                                        #end
32203 amit.gupta 42
                                    </td>
43
                                #end
44
                                #if($offer.getPayoutType().name().equals("QUANTITY"))
45
                                    <td>$payoutSlab.getOnwardsAmount() pcs Onwards</td>
46
                                #else
47
                                    <td>Rs.<span class="currency">$payoutSlab.getOnwardsAmount()</span> Onwards</td>
48
                                #end
49
                                #if($itemCriteriaPayout.getAmountType().name().equals("PERCENTAGE"))
50
                                    <td>$payoutSlab.getPayoutAmount()%</td>
51
                                #elseif($itemCriteriaPayout.getAmountType().name().equals("FIXED"))
52
                                    <td>Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span> per pc</td>
53
                                #else
54
                                    <td>Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span></td>
55
                                #end
56
                            </tr>
57
                            #end
58
                        #end
59
                    </tbody>
60
                </table>
33713 tejus.loha 61
                <br>
32203 amit.gupta 62
            </div>
63
        </div>
64
    </div>
65
 
66
 
67
    <div class="row">
68
        <div class="col-lg-12">
69
            <ul id="descriptionMenu" style="text-align:left">
70
                #if($offer.getOfferNotes() && !$offer.getOfferNotes().equals(""))
71
                    <li>
72
                        Note -  $vmUtils.html($offer.getOfferNotes())
73
                    </li>
74
                #end
75
 
76
            </ul>
77
 
78
            <div class="termContainer ck-content">
79
 
34045 amit.gupta 80
                $offer.getTerms()
32203 amit.gupta 81
 
82
            </div>
83
 
84
 
85
        </div>
86
    </div>
87
 
88
</div>
89
<div class="modal-footer">
90
    <button type="button" data-dismiss="modal" class="btn btn-default cancel-description">Dismiss</button>
91
</div>