Subversion Repositories SmartDukaan

Rev

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

Rev 36277 Rev 36315
Line 153... Line 153...
153
 
153
 
154
 
154
 
155
    <table id="rbm-call-target-table" class="table table-bordered table-striped">
155
    <table id="rbm-call-target-table" class="table table-bordered table-striped">
156
        <thead>
156
        <thead>
157
        <tr>
157
        <tr>
158
            <th colspan="2">RBM Name</th>
158
            <th>RBM Name</th>
159
            <th style="background-color: #ffc107; color: black;">Rating</th>
-
 
160
            <th style="background-color: #17a2b8; color: white;">Agent Status</th>
159
            <th style="background-color: #17a2b8; color: white;">Agent Status</th>
161
            <th style="background-color: #17a2b8; color: white;">Time in Status</th>
160
            <th style="background-color: #17a2b8; color: white;">Time in Status</th>
162
            <th style="background-color: #007bff; color: white;"><i class="fa fa-clock"></i> Login</th>
161
            <th style="background-color: #007bff; color: white;"><i class="fa fa-clock"></i> Login</th>
163
            <th style="background-color: #28a745; color: white;"><i class="fa fa-phone"></i> On Call</th>
162
            <th style="background-color: #28a745; color: white;"><i class="fa fa-phone"></i> On Call</th>
164
            <th style="background-color: #dc3545; color: white;"><i class="fa fa-user-clock"></i> Idle</th>
163
            <th style="background-color: #dc3545; color: white;"><i class="fa fa-user-clock"></i> Idle</th>
Line 227... Line 226...
227
 
226
 
228
            #set($adjustedTotalTarget = $totalTodayTarget + $totalMovedToFuture)
227
            #set($adjustedTotalTarget = $totalTodayTarget + $totalMovedToFuture)
229
            #set($adjustedTotalAchieved = $totalValueAchieved + $totalMovedToFuture)
228
            #set($adjustedTotalAchieved = $totalValueAchieved + $totalMovedToFuture)
230
 
229
 
231
        <tr>
230
        <tr>
232
            <td colspan="2"><strong>TOTAL</strong></td>
231
            <td><strong>TOTAL</strong></td>
233
            <td>-</td>
-
 
234
            <td>-</td>
232
            <td>-</td>
235
            <td>-</td>
233
            <td>-</td>
236
            <td>-</td>
234
            <td>-</td>
237
            <td>-</td>
235
            <td>-</td>
238
            <td>-</td>
236
            <td>-</td>
Line 265... Line 263...
265
            #foreach($model in $rbmCallTargetModels)
263
            #foreach($model in $rbmCallTargetModels)
266
                #set($rowTarget = $model.getTodayTargetOfCall() + $model.getMovedToFuture())
264
                #set($rowTarget = $model.getTodayTargetOfCall() + $model.getMovedToFuture())
267
                #set($rowAchieved = $model.getValueTargetAchieved() + $model.getMovedToFuture())
265
                #set($rowAchieved = $model.getValueTargetAchieved() + $model.getMovedToFuture())
268
                #set($agentStatus = $agentStatusByAuthId.get($model.getAuthId()))
266
                #set($agentStatus = $agentStatusByAuthId.get($model.getAuthId()))
269
            <tr>
267
            <tr>
270
                <td>
-
 
271
                    #set($rank = $rbmCombinedRankMap.get($model.getRbmName()))
-
 
272
                    #if($rank == 1)
-
 
273
                        <img src="../../../resources/images/king.png" style="width: 35px;">
-
 
274
                    #elseif($rank == 2)
-
 
275
                        <img src="../../../resources/images/trophy-cup.png" style="width: 30px;">
-
 
276
                    #elseif($rank == 3)
-
 
277
                        <img src="../../../resources/images/bronze-medal.png" style="width: 30px;">
-
 
278
                    #elseif($rank == 4)
-
 
279
                        <img src="../../../resources/images/star-badge.png" style="width: 30px;">
-
 
280
                    #elseif($rank && $rank > 4)
-
 
281
                        <img src="../../../resources/images/clock.png" style="width: 22px;">
-
 
282
                    #else
-
 
283
                        <img src="../../../resources/images/clock.png" style="width: 22px;">
-
 
284
                    #end
-
 
285
                </td>
-
 
286
                <td>$model.getRbmName()</td>
268
                <td>$model.getRbmName()</td>
287
                <td>
-
 
288
                    #set($ratingData = $rbmNameToRatingMap.get($model.getRbmName()))
-
 
289
                    #set($rank = $rbmCombinedRankMap.get($model.getRbmName()))
-
 
290
                    #if($ratingData && $ratingData.getRating())
-
 
291
                        #set($rating = $ratingData.getRating())
-
 
292
                        <div style="line-height: 1.2;">
-
 
293
                            #if($rating && $rating > 0 && $rating <= 1)
-
 
294
                                <b style="color: goldenrod; font-size: 12px;">&#9733;</b>
-
 
295
                            #elseif($rating && $rating > 1 && $rating <= 2)
-
 
296
                                <b style="color: goldenrod; font-size: 12px;">&#9733;&#9733;</b>
-
 
297
                            #elseif($rating && $rating > 2 && $rating <= 3)
-
 
298
                                <b style="color: goldenrod; font-size: 12px;">&#9733;&#9733;&#9733;</b>
-
 
299
                            #elseif($rating && $rating > 3 && $rating <= 4)
-
 
300
                                <b style="color: goldenrod; font-size: 12px;">&#9733;&#9733;&#9733;&#9733;</b>
-
 
301
                            #elseif($rating && $rating > 4 && $rating <= 5)
-
 
302
                                <b style="color: goldenrod; font-size: 12px;">&#9733;&#9733;&#9733;&#9733;&#9733;</b>
-
 
303
                            #end
-
 
304
                            <br>
-
 
305
                            <span style="font-size: 10px; color: #555;">#$rank | $ratingData.getPartnerCount() rated</span>
-
 
306
                        </div>
-
 
307
                    #else
-
 
308
                        -
-
 
309
                    #end
-
 
310
                </td>
-
 
311
                <td class="agent-status-cell" data-authid="$model.getAuthId()">
269
                <td class="agent-status-cell" data-authid="$model.getAuthId()">
312
                    #if($isToday)
270
                    #if($isToday)
313
                        #if($agentStatus && $agentStatus.getAgentStatus())
271
                        #if($agentStatus && $agentStatus.getAgentStatus())
314
                            #if($agentStatus.getAgentStatus() == "On Call")
272
                            #if($agentStatus.getAgentStatus() == "On Call")
315
                                <span class="badge"
273
                                <span class="badge"