Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
29900 amit.gupta 1
<html lang="en">
2
<head>
3
    <style>
4
        html, body {
5
            margin: 5px;
6
            padding: 0;
7
            max-width: 360px;
8
            min-height: 150px;
9
            height: fit-content;
10
            width: fit-content;
11
        }
12
 
13
        body {
14
            display: flex;
15
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
16
            font-size: 90%;
17
            color: #333;
18
            justify-content: center;
19
        }
20
 
21
        .row {
22
            padding-top: 6px;
23
            height:fit-content;
24
        }
25
 
26
        table {
27
            position: relative;
28
            border: 1px solid #ddd;
29
            border-collapse: collapse;
30
            width: 100%;
31
        }
32
 
33
        td, th {
34
            white-space: nowrap;
35
            border: 1px solid #ddd;
36
            padding: 9px;
37
            text-align: center;
38
        }
39
 
40
        td.eligibility {
29919 amit.gupta 41
            font-size: 13px;
42
		    text-align: left;
29920 amit.gupta 43
    		white-space: normal;
29900 amit.gupta 44
        }
45
 
46
        th {
47
            background-color: #eee;
48
            position: sticky;
49
            top: -1px;
50
            z-index: 2;
51
        }
52
 
53
        /*   th:first-of-type {
54
           left: 0;
55
           z-index: 3;
56
           }*/
57
 
58
        /*   tbody tr td:first-of-type {
59
           background-color: #eee;
60
           position: sticky;
61
           left: -1px;
62
           text-align: left;
63
           }*/
64
    </style>
65
</head>
66
<body>
67
 
68
<div class="row">
69
    #if($offer.isBaseCriteria())
70
        <div class="col-lg-12">
71
            <p class="pull-left">
72
                <b>Base Criteria - </b>
32198 amit.gupta 73
                $esc.html($offer.getItemCriteriaString())
29900 amit.gupta 74
            </p>
75
        </div>
76
    #end
77
    #foreach($itemCriteriaPayout in $offer.getTargetSlabs().get(0).getItemCriteriaPayouts())
78
        <div class="col-lg-12">
79
            <table class="table table-bordered table-sm">
80
                <thead>
81
                <tr>
82
                    <th>Target</th>
83
                    <th>Payout</th>
84
                </tr>
85
                </thead>
86
                <tbody>
87
                    #foreach($payoutSlab in $itemCriteriaPayout.getPayoutSlabs())
88
                    <tr #if($payoutSlab.isSelected()) style="font-weight:bold" #end>
89
                        #if($offer.getPayoutType().name().equals("QUANTITY"))
90
                            <td>$payoutSlab.getOnwardsAmount() pcs Onwards</td>
91
                        #else
92
                            <td>Rs.<span class="currency">$payoutSlab.getOnwardsAmount()</span> Onwards</td>
93
                        #end
94
                        #if($itemCriteriaPayout.getAmountType().name().equals("PERCENTAGE"))
95
                            <td>$payoutSlab.getPayoutAmount()%</td>
96
                        #elseif($itemCriteriaPayout.getAmountType().name().equals("FIXED"))
32198 amit.gupta 97
                            <td>Rs.<span class="currency">$decimalFormatter.format($payoutSlab.getPayoutAmount())</span>
98
                                per pc
99
                            </td>
29900 amit.gupta 100
                        #else
32198 amit.gupta 101
                            <td>Rs.<span class="currency">$decimalFormatter.format($payoutSlab.getPayoutAmount())</span>
102
                            </td>
29900 amit.gupta 103
                        #end
104
                    </tr>
105
                    #end
106
                <tr>
32200 amit.gupta 107
                    <td class="eligibility" colspan="2">
108
                        On $vmUtils.html($itemCriteriaPayout.getItemCriteriaString())</td>
29900 amit.gupta 109
                </tr>
110
                </tbody>
111
            </table>
112
        </div>
113
    #end
114
</div>
115
 
116
</body>
117
</html>