Rev 36656 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<table class="table table-bordered table-condensed table-striped" style="width:100%; margin-bottom:0;"><thead><tr style="background:#1abc9c; color:white;"><th>Date</th><th>Status</th><th>Check In</th><th>Check Out</th><th>Time Spent</th><th>Address</th><th>Description</th><th>Attachment</th></tr></thead><tbody>#if($history.isEmpty())<tr><td colspan="8" class="text-center">No history found</td></tr>#end#foreach($h in $history)<tr><td>$!h.getTaskDate()</td><td>#if($h.getMarkType() == "CHECKIN-CHECKOUT" || $h.getMarkType() == "CHECKIN_CHECKOUT" || $h.getMarkType() == "CHECKOUT")<span class="label label-success">$h.getMarkType()</span>#elseif($h.getMarkType() == "PENDING" || $h.getMarkType() == "CHECKIN")<span class="label label-warning">$h.getMarkType()</span>#elseif($h.getMarkType() == "DEFERRED")<span class="label label-danger">$h.getMarkType()</span>#else<span class="label label-default">$!h.getMarkType()</span>#end</td><td>$!h.getCheckInTime()</td><td>$!h.getCheckOutTime()</td><td>$!h.getTimeSpent()</td><td>$!h.getAddress()</td><td>$!h.getTaskDescription()</td><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></tr>#end</tbody></table>