| 36656 |
vikas |
1 |
<table class="table table-bordered table-condensed table-striped" style="width:100%; margin-bottom:0;">
|
|
|
2 |
<thead>
|
|
|
3 |
<tr style="background:#1abc9c; color:white;">
|
|
|
4 |
<th>Date</th>
|
|
|
5 |
<th>Status</th>
|
|
|
6 |
<th>Check In</th>
|
|
|
7 |
<th>Check Out</th>
|
|
|
8 |
<th>Time Spent</th>
|
|
|
9 |
<th>Address</th>
|
|
|
10 |
<th>Description</th>
|
|
|
11 |
<th>Attachment</th>
|
|
|
12 |
</tr>
|
|
|
13 |
</thead>
|
|
|
14 |
<tbody>
|
|
|
15 |
#if($history.isEmpty())
|
|
|
16 |
<tr><td colspan="8" class="text-center">No history found</td></tr>
|
|
|
17 |
#end
|
|
|
18 |
#foreach($h in $history)
|
|
|
19 |
<tr>
|
|
|
20 |
<td>$!h.getTaskDate()</td>
|
|
|
21 |
<td>
|
|
|
22 |
#if($h.getMarkType() == "CHECKIN-CHECKOUT" || $h.getMarkType() == "CHECKOUT")
|
|
|
23 |
<span class="label label-success">$h.getMarkType()</span>
|
|
|
24 |
#elseif($h.getMarkType() == "PENDING" || $h.getMarkType() == "CHECKIN")
|
|
|
25 |
<span class="label label-warning">$h.getMarkType()</span>
|
|
|
26 |
#elseif($h.getMarkType() == "DEFERRED")
|
|
|
27 |
<span class="label label-danger">$h.getMarkType()</span>
|
|
|
28 |
#else
|
|
|
29 |
<span class="label label-default">$!h.getMarkType()</span>
|
|
|
30 |
#end
|
|
|
31 |
</td>
|
|
|
32 |
<td>$!h.getCheckInTime()</td>
|
|
|
33 |
<td>$!h.getCheckOutTime()</td>
|
|
|
34 |
<td>$!h.getTimeSpent()</td>
|
|
|
35 |
<td>$!h.getAddress()</td>
|
|
|
36 |
<td>$!h.getTaskDescription()</td>
|
|
|
37 |
<td>#if($h.getAttachment() && $h.getAttachment() != "")<a href="https://partners.smartdukaan.com/document/$h.getAttachment()" target="_blank"><i class="fa fa-paperclip"></i> View</a>#else--#end</td>
|
|
|
38 |
</tr>
|
|
|
39 |
#end
|
|
|
40 |
</tbody>
|
|
|
41 |
</table>
|