Subversion Repositories SmartDukaan

Rev

Rev 36234 | Rev 36313 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36234 Rev 36307
Line 74... Line 74...
74
            </div>
74
            </div>
75
        #end
75
        #end
76
    </div>
76
    </div>
77
</div>
77
</div>
78
        ##    #parse("today_target.vm")
78
        ##    #parse("today_target.vm")
-
 
79
 
-
 
80
        ## ============ RBM Performance Dashboard ============
-
 
81
        #if($performanceDashboard && !$performanceDashboard.isEmpty())
-
 
82
        <style>
-
 
83
            #performance-dashboard-table th {
-
 
84
                font-size: 13px;
-
 
85
                text-align: center;
-
 
86
                padding: 0.4rem;
-
 
87
                vertical-align: middle;
-
 
88
            }
-
 
89
 
-
 
90
            #performance-dashboard-table td {
-
 
91
                font-size: 13px;
-
 
92
                text-align: center;
-
 
93
                padding: 0.2rem;
-
 
94
                vertical-align: middle;
-
 
95
            }
-
 
96
        </style>
-
 
97
        <div class="container-fluid mb-3">
-
 
98
            <h3 class="mb-2">RBM Performance Dashboard (MTD)</h3>
-
 
99
            <div class="table-responsive">
-
 
100
                <table class="table table-bordered table-striped" id="performance-dashboard-table"
-
 
101
                       style="font-size: 13px;">
-
 
102
                    <thead>
-
 
103
                    <tr style="background-color: rgb(52,58,64); color: white; text-align: center;">
-
 
104
                        <th style="width: 40px;">Rank</th>
-
 
105
                        <th>RBM Name</th>
-
 
106
                        <th style="width: 80px;">Partners</th>
-
 
107
                        <th style="background-color: rgb(0,123,255); color: white;">Login Hours<br><small>(15%)</small>
-
 
108
                        </th>
-
 
109
                        <th style="background-color: rgb(40,167,69); color: white;">Talk Time<br><small>(15%)</small>
-
 
110
                        </th>
-
 
111
                        <th style="background-color: rgb(23,162,184); color: white;">DRR Achv<br><small>(20%)</small>
-
 
112
                        </th>
-
 
113
                        <th style="background-color: rgb(253,126,20); color: white;">15 Days
-
 
114
                            Ageing<br><small>(15%)</small></th>
-
 
115
                        <th style="background-color: rgb(111,66,193); color: white;">&gt;1L
-
 
116
                            Partners<br><small>(15%)</small></th>
-
 
117
                        <th style="background-color: rgb(255,193,7); color: black;">Partner
-
 
118
                            Rating<br><small>(20%)</small></th>
-
 
119
                        <th style="background-color: rgb(220,53,69); color: white; width: 80px;">Score</th>
-
 
120
                    </tr>
-
 
121
                    </thead>
-
 
122
                    <tbody>
-
 
123
                        #foreach($dm in $performanceDashboard)
-
 
124
                            #if($dm.getRank() == 1)
-
 
125
                                #set($rowStyle = "text-align:center; background-color: rgb(255,248,225);")
-
 
126
                                #set($scoreColor = "color: rgb(40,167,69);")
-
 
127
                            #elseif($dm.getRank() == 2)
-
 
128
                                #set($rowStyle = "text-align:center; background-color: rgb(245,245,245);")
-
 
129
                                #set($scoreColor = "color: rgb(23,162,184);")
-
 
130
                            #elseif($dm.getRank() == 3)
-
 
131
                                #set($rowStyle = "text-align:center; background-color: rgb(255,243,224);")
-
 
132
                                #set($scoreColor = "color: rgb(23,162,184);")
-
 
133
                            #else
-
 
134
                                #set($rowStyle = "text-align:center;")
-
 
135
                                #set($scoreColor = "color: rgb(51,51,51);")
-
 
136
                            #end
-
 
137
                        <tr style="$rowStyle">
-
 
138
                            <td>
-
 
139
                                #if($dm.getRank() == 1)
-
 
140
                                    <img src="../../../resources/images/king.png" style="width: 28px;" title="Rank 1">
-
 
141
                                #elseif($dm.getRank() == 2)
-
 
142
                                    <img src="../../../resources/images/trophy-cup.png" style="width: 24px;"
-
 
143
                                         title="Rank 2">
-
 
144
                                #elseif($dm.getRank() == 3)
-
 
145
                                    <img src="../../../resources/images/bronze-medal.png" style="width: 24px;"
-
 
146
                                         title="Rank 3">
-
 
147
                                #else
-
 
148
                                    $dm.getRank()
-
 
149
                                #end
-
 
150
                            </td>
-
 
151
                            <td style="text-align: left;">$dm.getRbmName()</td>
-
 
152
                            <td>$dm.getPartnerCount()</td>
-
 
153
                            <td>$dm.getLoginHoursDisplay()</td>
-
 
154
                            <td>$dm.getTalkTimeDisplay()</td>
-
 
155
                            <td>$dm.getDrrAchvDisplay()</td>
-
 
156
                            <td><span class="lakh">$dm.getAgingUnitsSold()</span></td>
-
 
157
                            <td>$dm.getAbove1LPartnerCount()</td>
-
 
158
                            <td>
-
 
159
                                #if($dm.getPartnerRating() > 4)
-
 
160
                                    <span style="color: rgb(40,167,69);">$dm.getRatingDisplay() &#9733;</span>
-
 
161
                                #elseif($dm.getPartnerRating() > 3)
-
 
162
                                    <span style="color: rgb(255,193,7);">$dm.getRatingDisplay() &#9733;</span>
-
 
163
                                #elseif($dm.getPartnerRating() > 2)
-
 
164
                                    <span style="color: rgb(253,126,20);">$dm.getRatingDisplay() &#9733;</span>
-
 
165
                                #elseif($dm.getPartnerRating() > 0)
-
 
166
                                    <span style="color: rgb(220,53,69);">$dm.getRatingDisplay() &#9733;</span>
-
 
167
                                #else
-
 
168
                                    -
-
 
169
                                #end
-
 
170
                            </td>
-
 
171
                            <td style="font-size: 14px; $scoreColor">
-
 
172
                                $dm.getScoreDisplay()
-
 
173
                            </td>
-
 
174
                        </tr>
-
 
175
                        #end
-
 
176
                    </tbody>
-
 
177
                </table>
-
 
178
            </div>
-
 
179
        </div>
-
 
180
        #end
-
 
181
        ## ============ End RBM Performance Dashboard ============
-
 
182
 
79
    <div id="rbm-call-target-container">
183
    <div id="rbm-call-target-container">
80
        #parse("rbm_call_target.vm")
184
        #parse("rbm_call_target.vm")
81
    </div>
185
    </div>
82
#end
186
#end
83
 
187