Subversion Repositories SmartDukaan

Rev

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

Rev 36793 Rev 36806
Line 8... Line 8...
8
 
8
 
9
<div class="col-lg-12">
9
<div class="col-lg-12">
10
    <table class="table table-border table-condensed table-bordered table-hover" id="beatReportTable" style="width:100%">
10
    <table class="table table-border table-condensed table-bordered table-hover" id="beatReportTable" style="width:100%">
11
        <thead>
11
        <thead>
12
        <tr>
12
        <tr>
-
 
13
            <th>Status</th>
13
            <th>User Name</th>
14
            <th>User Name</th>
14
            <th>Beat</th>
15
            <th>Beat</th>
15
            <th>Day</th>
16
            <th>Day</th>
16
            <th>Planned</th>
17
            <th>Planned</th>
17
            <th>Punch In/Out</th>
18
            <th>Punch In/Out</th>
Line 23... Line 24...
23
        </tr>
24
        </tr>
24
        </thead>
25
        </thead>
25
        <tbody>
26
        <tbody>
26
        #set($rowIndex = 0)
27
        #set($rowIndex = 0)
27
        #foreach($row in $reportRows)
28
        #foreach($row in $reportRows)
-
 
29
            #set($status = $row.get("status"))
-
 
30
            #if($status == "ON_TRACK")
-
 
31
                #set($rowBg = "#eafaf1")
-
 
32
                #set($badgeBg = "#27ae60")
-
 
33
                #set($badgeText = "On track")
-
 
34
            #elseif($status == "AGENDA_PENDING")
-
 
35
                #set($rowBg = "#fff8e1")
-
 
36
                #set($badgeBg = "#f1c40f")
-
 
37
                #set($badgeText = "Agenda not filled")
-
 
38
            #else
-
 
39
                #set($rowBg = "#fdecea")
-
 
40
                #set($badgeBg = "#e74c3c")
-
 
41
                #set($badgeText = "No beat")
-
 
42
            #end
-
 
43
        <tr style="background:$rowBg;">
-
 
44
            <td style="white-space:nowrap;"><span
-
 
45
                    style="display:inline-block;padding:3px 8px;border-radius:3px;background:$badgeBg;color:#fff;font-size:11px;font-weight:600;">$badgeText</span>
28
            <tr>
46
            </td>
29
                <td><a href="javascript:void(0);" class="beat-user-detail-link" data-userid="$row.get('userId')" style="color:#2c3e50; font-weight:bold; text-decoration:underline; cursor:pointer;">$row.get("username")</a></td>
47
                <td><a href="javascript:void(0);" class="beat-user-detail-link" data-userid="$row.get('userId')" style="color:#2c3e50; font-weight:bold; text-decoration:underline; cursor:pointer;">$row.get("username")</a></td>
30
                #set($userBeats = $row.get("beats"))
48
                #set($userBeats = $row.get("beats"))
31
                #if($userBeats && $userBeats.size() > 0)
49
                #if($userBeats && $userBeats.size() > 0)
32
                    <td>
50
                    <td>
33
                        #foreach($b in $userBeats)
51
                        #foreach($b in $userBeats)