| 23835 |
ashik.ali |
1 |
<style>
|
|
|
2 |
.table-striped > tbody > tr:nth-child(odd) > td{
|
|
|
3 |
background: white;
|
|
|
4 |
background-color: white;
|
|
|
5 |
}
|
|
|
6 |
.table-striped > tbody > tr:nth-child(even) > td{
|
|
|
7 |
background: white;
|
|
|
8 |
background-color:white;
|
|
|
9 |
}
|
| 24159 |
tejbeer |
10 |
|
| 23835 |
ashik.ali |
11 |
.btn:hover{
|
|
|
12 |
color: grey;
|
|
|
13 |
text-decoration: none;
|
|
|
14 |
}
|
|
|
15 |
.btn-primary:hover{
|
|
|
16 |
color: grey;
|
|
|
17 |
text-decoration: none;
|
|
|
18 |
}
|
|
|
19 |
.vendor-details{
|
|
|
20 |
cursor:pointer;
|
|
|
21 |
}
|
|
|
22 |
</style>
|
|
|
23 |
|
| 24159 |
tejbeer |
24 |
<section class="wrapper">
|
|
|
25 |
|
| 23835 |
ashik.ali |
26 |
<div class="row">
|
|
|
27 |
<div class="col-lg-12">
|
|
|
28 |
<h3 class="page-header"><i class="icon_document_alt"></i>PUNCH IN/OUT</h3>
|
|
|
29 |
<ol class="breadcrumb">
|
|
|
30 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
31 |
<li><i class="icon_document_alt"></i>PUNCH IN/OUT</li>
|
|
|
32 |
</ol>
|
|
|
33 |
</div>
|
|
|
34 |
</div>
|
| 24159 |
tejbeer |
35 |
<div class="col-lg-6">
|
| 23835 |
ashik.ali |
36 |
<div id="create-punch-in-out-container">
|
|
|
37 |
<div class="row">
|
|
|
38 |
<div class="col-lg-2">
|
|
|
39 |
#if(!$punchInOut)
|
|
|
40 |
<button class="btn btn-primary" id="" onclick="createPunchInOut('IN')" type="button">Punch IN</button>
|
|
|
41 |
#else
|
|
|
42 |
#if(!$punchInOut.getPunchOutTimestamp())
|
|
|
43 |
<button class="btn btn-primary" id="" onclick="createPunchInOut('OUT')" type="button">Punch OUT</button>
|
|
|
44 |
#end
|
|
|
45 |
#end
|
|
|
46 |
</div>
|
|
|
47 |
|
|
|
48 |
</div>
|
|
|
49 |
</div>
|
|
|
50 |
|
| 24159 |
tejbeer |
51 |
|
| 23835 |
ashik.ali |
52 |
<div id="punch-in-outs-table">
|
|
|
53 |
<div class="row">
|
|
|
54 |
<div class="col-lg-12">
|
|
|
55 |
<table class="table table-striped table-advance table-hover">
|
|
|
56 |
<tbody>
|
|
|
57 |
<tr>
|
|
|
58 |
<th>Create Date</th>
|
|
|
59 |
<th>Punched In</th>
|
|
|
60 |
<th>Punched Out</th>
|
|
|
61 |
</tr>
|
|
|
62 |
#if(!$punchInOuts.isEmpty())
|
|
|
63 |
#foreach( $punchInOut in $punchInOuts )
|
|
|
64 |
<tr>
|
|
|
65 |
<td>$punchInOut.getFormattedCreateDate()</td>
|
|
|
66 |
#if($punchInOut.getPunchInTimestamp())
|
|
|
67 |
<td>$punchInOut.getFormattedPunchInTimestamp()</td>
|
|
|
68 |
#else
|
|
|
69 |
<td></td>
|
|
|
70 |
#end
|
|
|
71 |
#if($punchInOut.getPunchOutTimestamp())
|
|
|
72 |
<td>$punchInOut.getFormattedPunchOutTimestamp()</td>
|
|
|
73 |
#else
|
|
|
74 |
<td></td>
|
|
|
75 |
#end
|
|
|
76 |
</tr>
|
|
|
77 |
#end
|
|
|
78 |
#else
|
|
|
79 |
<tr>
|
|
|
80 |
<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
81 |
</tr>
|
|
|
82 |
#end
|
|
|
83 |
</tbody>
|
|
|
84 |
</table>
|
|
|
85 |
</div>
|
|
|
86 |
</div>
|
|
|
87 |
</div>
|
|
|
88 |
#if(!$punchInOuts.isEmpty())
|
|
|
89 |
<div class="row" id="punch-in-outs-paginated">
|
|
|
90 |
<div class="col-lg-9">
|
|
|
91 |
<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
|
|
|
92 |
</div>
|
| 24159 |
tejbeer |
93 |
<div class="col-lg-4" style="text-align:right;">
|
| 23835 |
ashik.ali |
94 |
<div class="btn-group" style="width:40%">
|
|
|
95 |
<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
|
|
|
96 |
</div>
|
|
|
97 |
<div class="btn-group" style="width:40%">
|
|
|
98 |
#if($end >= $size)
|
|
|
99 |
<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
|
|
|
100 |
#else
|
|
|
101 |
<button class="btn btn-primary next" style="width:100%">Next</button>
|
|
|
102 |
#end
|
|
|
103 |
</div>
|
|
|
104 |
</div>
|
|
|
105 |
</div>
|
|
|
106 |
#end
|
| 24159 |
tejbeer |
107 |
</div>
|
|
|
108 |
|
|
|
109 |
<div class="col-lg-6">
|
| 24160 |
tejbeer |
110 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Promoter Attendance</h4>
|
| 24159 |
tejbeer |
111 |
|
|
|
112 |
<div id="promoter-punchin-out-table">
|
|
|
113 |
<div class="row">
|
|
|
114 |
<div class="col-lg-12">
|
|
|
115 |
<table class="table table-striped table-advance table-hover">
|
|
|
116 |
<tbody>
|
|
|
117 |
<tr>
|
|
|
118 |
<th>Name</th>
|
|
|
119 |
<th>Brand Name</th>
|
|
|
120 |
<th>In Time</th>
|
|
|
121 |
<th>OutTime</th>
|
|
|
122 |
</tr>
|
|
|
123 |
|
|
|
124 |
#if(!$userIdAndBrandPromoterMap.isEmpty())
|
|
|
125 |
#foreach( $promoterId in $promoterIdAndPromoterMap.keySet())
|
|
|
126 |
|
|
|
127 |
<tr>
|
|
|
128 |
|
|
|
129 |
<td>$promoterIdAndPromoterMap.get($promoterId).getName()</td>
|
|
|
130 |
<td>$promoterIdAndPromoterMap.get($promoterId).getBrand()</td>
|
|
|
131 |
#if($listPromoterAttendance.get($promoterId).getInTimestamp())
|
|
|
132 |
<td>$listPromoterAttendance.get($promoterId).getInTimestamp().format($dateTimeFormatter)</td>
|
|
|
133 |
#if($listPromoterAttendance.get($promoterId).getOutTimestamp())
|
|
|
134 |
<td>$listPromoterAttendance.get($promoterId).getOutTimestamp().format($dateTimeFormatter)</td>
|
|
|
135 |
#else
|
|
|
136 |
<td><button class="btn btn-primary" id="" onclick="createPunchInOutForPromoter('OUT',$promoterId)" type="button">Punch OUT</button></td>
|
|
|
137 |
#end
|
|
|
138 |
#else
|
|
|
139 |
<td> <button class="btn btn-primary" id="" onclick="createPunchInOutForPromoter('IN',$promoterId)" type="button">Punch IN</button></td>
|
|
|
140 |
<td><button class="btn btn-primary" id="" onclick="createPunchInOutForPromoter('OUT',$promoterId)" type="button" disabled>Punch OUT</button></td>
|
|
|
141 |
#end
|
|
|
142 |
|
|
|
143 |
|
|
|
144 |
</tr>
|
|
|
145 |
#end
|
|
|
146 |
#else
|
|
|
147 |
<tr>
|
|
|
148 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
149 |
</tr>
|
|
|
150 |
#end
|
|
|
151 |
|
|
|
152 |
</tbody>
|
|
|
153 |
</table>
|
|
|
154 |
</div>
|
|
|
155 |
</div>
|
|
|
156 |
</div>
|
|
|
157 |
</div>
|
| 23835 |
ashik.ali |
158 |
</section>
|