| 24595 |
tejbeer |
1 |
|
|
|
2 |
|
|
|
3 |
#if(!$punchInOut)
|
|
|
4 |
|
|
|
5 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Store Attendance</h4>
|
|
|
6 |
|
|
|
7 |
<div id="create-punch-out-container">
|
|
|
8 |
<div class="row">
|
|
|
9 |
<div class="col-lg-2">
|
|
|
10 |
#if(!$punchInOut)
|
|
|
11 |
<button class="btn btn-primary" id="" onclick="createPunchInOut('IN')" type="button">Punch IN</button>
|
|
|
12 |
#end
|
|
|
13 |
</div>
|
|
|
14 |
|
|
|
15 |
</div>
|
|
|
16 |
|
|
|
17 |
</div>
|
|
|
18 |
|
|
|
19 |
#else
|
|
|
20 |
|
|
|
21 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Promoter Attendance</h4>
|
|
|
22 |
|
|
|
23 |
<div id="promoter-punch-out-table">
|
|
|
24 |
<div class="row">
|
|
|
25 |
<div class="col-lg-12">
|
|
|
26 |
<table class="table table-striped table-advance table-hover">
|
|
|
27 |
<tbody>
|
|
|
28 |
<tr>
|
|
|
29 |
<th>Name</th>
|
|
|
30 |
<th>Brand Name</th>
|
|
|
31 |
<th>In Time</th>
|
|
|
32 |
<th>OutTime</th>
|
|
|
33 |
</tr>
|
|
|
34 |
|
|
|
35 |
#if(!$userIdAndBrandPromoterMap.isEmpty())
|
|
|
36 |
#foreach( $promoterId in $promoterIdAndPromoterMap.keySet())
|
|
|
37 |
|
|
|
38 |
<tr>
|
|
|
39 |
#if(!$listPromoterAttendance.get($promoterId).getInTimestamp())
|
|
|
40 |
<td>$promoterIdAndPromoterMap.get($promoterId).getName()</td>
|
|
|
41 |
<td>$promoterIdAndPromoterMap.get($promoterId).getBrand()</td>
|
|
|
42 |
#if($listPromoterAttendance.get($promoterId).getInTimestamp())
|
|
|
43 |
<td>$listPromoterAttendance.get($promoterId).getInTimestamp().format($dateTimeFormatter)</td>
|
|
|
44 |
#if($listPromoterAttendance.get($promoterId).getOutTimestamp())
|
|
|
45 |
<td>$listPromoterAttendance.get($promoterId).getOutTimestamp().format($dateTimeFormatter)</td>
|
|
|
46 |
#else
|
|
|
47 |
<td><button class="btn btn-primary" id="" onclick="createPunchInOutForPromoter('OUT',$promoterId)" type="button">Punch OUT</button></td>
|
|
|
48 |
#end
|
|
|
49 |
#else
|
|
|
50 |
<td> <button class="btn btn-primary" id="" onclick="createPunchInOutForPromoter('IN',$promoterId)" type="button">Punch IN</button></td>
|
|
|
51 |
<td><button class="btn btn-primary" id="" onclick="createPunchInOutForPromoter('OUT',$promoterId)" type="button" disabled>Punch OUT</button></td>
|
|
|
52 |
#end
|
|
|
53 |
|
|
|
54 |
#end
|
|
|
55 |
|
|
|
56 |
</tr>
|
|
|
57 |
#end
|
|
|
58 |
#else
|
|
|
59 |
<tr>
|
|
|
60 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
61 |
</tr>
|
|
|
62 |
#end
|
|
|
63 |
|
|
|
64 |
</tbody>
|
|
|
65 |
</table>
|
|
|
66 |
</div>
|
|
|
67 |
</div>
|
|
|
68 |
</div>
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
</div>
|
|
|
73 |
#end
|
|
|
74 |
|
|
|
75 |
|