| Line 85... |
Line 85... |
| 85 |
|
85 |
|
| 86 |
<table class="table table-border table-condensed table-bordered table-striped" id="userDetailTable" style="width:100%">
|
86 |
<table class="table table-border table-condensed table-bordered table-striped" id="userDetailTable" style="width:100%">
|
| 87 |
<thead>
|
87 |
<thead>
|
| 88 |
<tr >
|
88 |
<tr >
|
| 89 |
<th>#</th>
|
89 |
<th>#</th>
|
| - |
|
90 |
<th>Agenda</th>
|
| 90 |
<th>Agenda/Partner Name</th>
|
91 |
<th>Partner Name</th>
|
| 91 |
<th>Description</th>
|
92 |
<th>Description</th>
|
| 92 |
<th>Status</th>
|
93 |
<th>Status</th>
|
| 93 |
<th>Address</th>
|
94 |
<th>Address</th>
|
| 94 |
<th>Check In Time</th>
|
95 |
<th>Check In Time</th>
|
| 95 |
<th>Check Out Time</th>
|
96 |
<th>Check Out Time</th>
|
| Line 101... |
Line 102... |
| 101 |
</thead>
|
102 |
</thead>
|
| 102 |
<tbody>
|
103 |
<tbody>
|
| 103 |
#if($punchIn)
|
104 |
#if($punchIn)
|
| 104 |
<tr style="background:#d5f5e3;">
|
105 |
<tr style="background:#d5f5e3;">
|
| 105 |
<td>--</td>
|
106 |
<td>--</td>
|
| - |
|
107 |
<td>--</td>
|
| 106 |
<td><strong>PUNCH IN</strong></td>
|
108 |
<td><strong>PUNCH IN</strong></td>
|
| 107 |
<td>$!punchIn.getTaskDescription()</td>
|
109 |
<td>$!punchIn.getTaskDescription()</td>
|
| 108 |
<td><span class="label label-info">PUNCHIN</span> #if($punchIn.getAttachment() && $punchIn.getAttachment() != "")<a href="javascript:void(0);" class="view-attachment-link" data-attachment="$punchIn.getAttachment()" data-checkin-latlng="$!punchIn.getCheckInLatLng()" data-visit-location="$!punchIn.getVisitLocation()" data-tracking-id="$punchIn.getId()" title="View Attachment"><i class="fa fa-paperclip" style="color:#27ae60; margin-left:5px;"></i></a>#end</td>
|
110 |
<td><span class="label label-info">PUNCHIN</span> #if($punchIn.getAttachment() && $punchIn.getAttachment() != "")<a href="javascript:void(0);" class="view-attachment-link" data-attachment="$punchIn.getAttachment()" data-checkin-latlng="$!punchIn.getCheckInLatLng()" data-visit-location="$!punchIn.getVisitLocation()" data-tracking-id="$punchIn.getId()" title="View Attachment"><i class="fa fa-paperclip" style="color:#27ae60; margin-left:5px;"></i></a>#end</td>
|
| 109 |
<td>$!punchIn.getAddress()</td>
|
111 |
<td>$!punchIn.getAddress()</td>
|
| 110 |
<td>$!punchIn.getCheckInTime()</td>
|
112 |
<td>$!punchIn.getCheckInTime()</td>
|
| Line 115... |
Line 117... |
| 115 |
<td>$!punchIn.getEstimatedTime()</td>
|
117 |
<td>$!punchIn.getEstimatedTime()</td>
|
| 116 |
</tr>
|
118 |
</tr>
|
| 117 |
#end
|
119 |
#end
|
| 118 |
#set($idx = 1)
|
120 |
#set($idx = 1)
|
| 119 |
#foreach($v in $visits)
|
121 |
#foreach($v in $visits)
|
| - |
|
122 |
#set($tn = "$!v.getTaskName()")
|
| - |
|
123 |
#if($tn.contains("|"))
|
| - |
|
124 |
#set($pipeIdx = $tn.indexOf("|"))
|
| - |
|
125 |
#set($afterPipe = $pipeIdx + 1)
|
| - |
|
126 |
#set($agendaPart = $tn.substring(0, $pipeIdx).trim())
|
| - |
|
127 |
#set($partnerPart = $tn.substring($afterPipe).trim())
|
| - |
|
128 |
#else
|
| - |
|
129 |
#set($agendaPart = "--")
|
| - |
|
130 |
#set($partnerPart = $tn)
|
| - |
|
131 |
#end
|
| 120 |
<tr>
|
132 |
<tr>
|
| 121 |
<td>$idx</td>
|
133 |
<td>$idx</td>
|
| 122 |
<td>$!v.getTaskName()</td>
|
134 |
<td>$agendaPart</td>
|
| - |
|
135 |
<td>$partnerPart</td>
|
| 123 |
<td>#if($v.getTaskDescription() && $v.getTaskDescription() != "")#if($v.getTaskDescription().length() > 50)<span class="desc-short">$v.getTaskDescription().substring(0, 50)... <a href="javascript:void(0);" class="read-more-link" style="color:#3498db;">read more</a></span><span class="desc-full" style="display:none;">$v.getTaskDescription() <a href="javascript:void(0);" class="read-less-link" style="color:#3498db;">read less</a></span>#else$v.getTaskDescription()#end#else--#end</td>
|
136 |
<td>#if($v.getTaskDescription() && $v.getTaskDescription() != "")#if($v.getTaskDescription().length() > 50)<span class="desc-short">$v.getTaskDescription().substring(0, 50)... <a href="javascript:void(0);" class="read-more-link" style="color:#3498db;">read more</a></span><span class="desc-full" style="display:none;">$v.getTaskDescription() <a href="javascript:void(0);" class="read-less-link" style="color:#3498db;">read less</a></span>#else$v.getTaskDescription()#end#else--#end</td>
|
| 124 |
<td>
|
137 |
<td>
|
| 125 |
#if($v.getAttachment() && $v.getAttachment() != "")
|
138 |
#if($v.getAttachment() && $v.getAttachment() != "")
|
| 126 |
<img src="/download-attachment?documentId=$v.getAttachment()" class="view-attachment-link" alt="IMAGE" width="50" data-attachment="$v.getAttachment()">
|
139 |
<img src="/download-attachment?documentId=$v.getAttachment()" class="view-attachment-link" alt="IMAGE" width="50" data-attachment="$v.getAttachment()">
|
| 127 |
#end
|
140 |
#end
|
| Line 157... |
Line 170... |
| 157 |
#set($idx = $idx + 1)
|
170 |
#set($idx = $idx + 1)
|
| 158 |
#end
|
171 |
#end
|
| 159 |
#if($punchOut)
|
172 |
#if($punchOut)
|
| 160 |
<tr style="background:#fadbd8;">
|
173 |
<tr style="background:#fadbd8;">
|
| 161 |
<td>--</td>
|
174 |
<td>--</td>
|
| - |
|
175 |
<td>--</td>
|
| 162 |
<td><strong>PUNCH OUT</strong></td>
|
176 |
<td><strong>PUNCH OUT</strong></td>
|
| 163 |
<td>$!punchOut.getTaskDescription()</td>
|
177 |
<td>$!punchOut.getTaskDescription()</td>
|
| 164 |
<td><span class="label label-danger">PUNCHOUT</span> #if($punchOut.getAttachment() && $punchOut.getAttachment() != "")<a href="javascript:void(0);" class="view-attachment-link" data-attachment="$punchOut.getAttachment()" data-checkin-latlng="$!punchOut.getCheckInLatLng()" data-visit-location="$!punchOut.getVisitLocation()" data-tracking-id="$punchOut.getId()" title="View Attachment"><i class="fa fa-paperclip" style="color:#27ae60; margin-left:5px;"></i></a>#end</td>
|
178 |
<td><span class="label label-danger">PUNCHOUT</span> #if($punchOut.getAttachment() && $punchOut.getAttachment() != "")<a href="javascript:void(0);" class="view-attachment-link" data-attachment="$punchOut.getAttachment()" data-checkin-latlng="$!punchOut.getCheckInLatLng()" data-visit-location="$!punchOut.getVisitLocation()" data-tracking-id="$punchOut.getId()" title="View Attachment"><i class="fa fa-paperclip" style="color:#27ae60; margin-left:5px;"></i></a>#end</td>
|
| 165 |
<td>$!punchOut.getAddress()</td>
|
179 |
<td>$!punchOut.getAddress()</td>
|
| 166 |
<td>$!punchOut.getCheckInTime()</td>
|
180 |
<td>$!punchOut.getCheckInTime()</td>
|
| Line 172... |
Line 186... |
| 172 |
</tr>
|
186 |
</tr>
|
| 173 |
#end
|
187 |
#end
|
| 174 |
</tbody>
|
188 |
</tbody>
|
| 175 |
<tfoot>
|
189 |
<tfoot>
|
| 176 |
<tr style="background:#f2f3f4; font-weight:bold;">
|
190 |
<tr style="background:#f2f3f4; font-weight:bold;">
|
| 177 |
<td colspan="5" style="text-align:right;">Totals</td>
|
191 |
<td colspan="6" style="text-align:right;">Totals</td>
|
| 178 |
<td>--</td>
|
192 |
<td>--</td>
|
| 179 |
<td>--</td>
|
193 |
<td>--</td>
|
| 180 |
<td>$totalTimeSpentStr</td>
|
194 |
<td>$totalTimeSpentStr</td>
|
| 181 |
<td>$totalTransitStr</td>
|
195 |
<td>$totalTransitStr</td>
|
| 182 |
<td>$totalDistanceStr km | Visits: $visitCount | Leads: $leadCount</td>
|
196 |
<td>$totalDistanceStr km | Visits: $visitCount | Leads: $leadCount</td>
|