| 36838 |
ranu |
1 |
<section class="wrapper">
|
|
|
2 |
<div class="row">
|
|
|
3 |
<div class="col-lg-12">
|
|
|
4 |
<h3 class="page-header"><i class="icon_document_alt"></i> Beat Report</h3>
|
|
|
5 |
<ol class="breadcrumb">
|
|
|
6 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
7 |
<li><i class="icon_document_alt"></i>Beat Report</li>
|
|
|
8 |
<li>Location Approval</li>
|
|
|
9 |
</ol>
|
|
|
10 |
</div>
|
|
|
11 |
</div>
|
|
|
12 |
|
|
|
13 |
<ul class="nav nav-tabs" style="margin-bottom:15px;">
|
|
|
14 |
<li><a href="javascript:void(0);" class="beat-report"><i class="fa fa-list"></i> Beat Status</a></li>
|
|
|
15 |
<li class="active"><a href="javascript:void(0);" class="beat-report-approval"><i class="fa fa-map-marker"></i>
|
|
|
16 |
Location Approval</a></li>
|
|
|
17 |
</ul>
|
|
|
18 |
|
|
|
19 |
<div class="row col-lg-12">
|
|
|
20 |
<div class="col-lg-2">
|
|
|
21 |
<label>Category</label>
|
|
|
22 |
<select id="bra-category" class="form-control">
|
|
|
23 |
<option value="$categoryId">Sales</option>
|
|
|
24 |
</select>
|
|
|
25 |
</div>
|
|
|
26 |
<div class="col-lg-2">
|
|
|
27 |
<label>Level</label>
|
|
|
28 |
<select id="bra-level" class="form-control">
|
|
|
29 |
<option value="">All Levels</option>
|
|
|
30 |
#foreach($lvl in $escalationTypes)
|
|
|
31 |
<option value="$lvl">$lvl</option>
|
|
|
32 |
#end
|
|
|
33 |
</select>
|
|
|
34 |
</div>
|
|
|
35 |
<div class="col-lg-2">
|
|
|
36 |
<label>From</label>
|
|
|
37 |
<input type="date" id="bra-from" class="form-control" value="$fromDate">
|
|
|
38 |
</div>
|
|
|
39 |
<div class="col-lg-2">
|
|
|
40 |
<label>To</label>
|
|
|
41 |
<input type="date" id="bra-to" class="form-control" value="$toDate">
|
|
|
42 |
</div>
|
|
|
43 |
<div class="col-lg-2" style="padding-top:24px;">
|
|
|
44 |
<button type="button" class="btn btn-info" id="bra-fetch"><i class="fa fa-search"></i> Load</button>
|
|
|
45 |
</div>
|
|
|
46 |
<div class="col-lg-12" style="margin-top:8px;">
|
|
|
47 |
<small style="color:#666;">
|
|
|
48 |
Shows only off-site check-ins (>50 m between user's actual lat/lng and the visit target's
|
|
|
49 |
lat/lng) that haven't been approved yet.
|
|
|
50 |
Limited to your downline.
|
|
|
51 |
</small>
|
|
|
52 |
</div>
|
|
|
53 |
</div>
|
|
|
54 |
|
|
|
55 |
<br>
|
|
|
56 |
<div class="row col-lg-12" style="margin-bottom:8px;">
|
|
|
57 |
<div class="col-lg-12" style="text-align:right;">
|
|
|
58 |
<button type="button" class="btn btn-success" id="bra-approve-selected" disabled>
|
|
|
59 |
<i class="fa fa-check"></i> Approve selected (<span id="bra-sel-count">0</span>)
|
|
|
60 |
</button>
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
|
|
63 |
|
|
|
64 |
<div class="row col-lg-12">
|
|
|
65 |
<table id="bra-table" class="table table-striped table-bordered" style="width:100%">
|
|
|
66 |
<thead>
|
|
|
67 |
<tr>
|
|
|
68 |
<th style="width:30px;"><input type="checkbox" id="bra-select-all"></th>
|
|
|
69 |
<th>User</th>
|
|
|
70 |
<th>Date / Time</th>
|
|
|
71 |
<th>Type</th>
|
|
|
72 |
<th>Target</th>
|
|
|
73 |
<th>Expected (visit location)</th>
|
|
|
74 |
<th>Actual (check-in)</th>
|
|
|
75 |
<th>Distance</th>
|
|
|
76 |
<th>Attachment</th>
|
|
|
77 |
<th>Action</th>
|
|
|
78 |
</tr>
|
|
|
79 |
</thead>
|
|
|
80 |
<tbody></tbody>
|
|
|
81 |
</table>
|
|
|
82 |
</div>
|
|
|
83 |
|
|
|
84 |
<div class="modal fade" id="bra-attach-modal" tabindex="-1" role="dialog">
|
|
|
85 |
<div class="modal-dialog modal-lg" role="document">
|
|
|
86 |
<div class="modal-content">
|
|
|
87 |
<div class="modal-header">
|
|
|
88 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
89 |
<h4 class="modal-title">Attachment</h4>
|
|
|
90 |
</div>
|
|
|
91 |
<div class="modal-body" style="text-align:center;">
|
|
|
92 |
<img id="bra-attach-img" src="" style="max-width:100%;">
|
|
|
93 |
</div>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
</div>
|
|
|
97 |
</section>
|
|
|
98 |
|
|
|
99 |
<script src="${rc.contextPath}/resources/js/beat-report-approval.js?v=20260612a"></script>
|