| 31249 |
tejbeer |
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>VISIT PLAN</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>VISIT PLAN</li>
|
|
|
8 |
<li><button class="btn btn-primary newEntry" data-toggle="modal" data-target="#newEntrywalletModal" type="button" >New</button>
|
|
|
9 |
</li>
|
|
|
10 |
</ol>
|
|
|
11 |
</div>
|
|
|
12 |
</div>
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
<div id="visit-plan-search">
|
|
|
16 |
<div class="row">
|
|
|
17 |
<div class="col-lg-12" style = "margin-top:12px;">
|
|
|
18 |
|
|
|
19 |
<div class="col-md-3 col-sm-3 col-xs-12 form-group top_search">
|
|
|
20 |
<div class="input-group">
|
|
|
21 |
<input type="date" class="form-control" id="dateVisitSearch"
|
|
|
22 |
placeholder="YYYY-MM-DD"/>
|
|
|
23 |
<span class="input-group-btn">
|
|
|
24 |
<button class="btn btn-primary visitPlan"
|
|
|
25 |
type="button">Go!</button>
|
|
|
26 |
</span>
|
|
|
27 |
</div>
|
|
|
28 |
</div>
|
|
|
29 |
</div>
|
|
|
30 |
</div>
|
|
|
31 |
</div>
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
<div class="row">
|
|
|
35 |
<div class="col-lg-12">
|
|
|
36 |
<table class="table table-striped table-advance table-hover">
|
|
|
37 |
<tbody>
|
|
|
38 |
<tr>
|
|
|
39 |
<th>AuthUser</th>
|
|
|
40 |
|
|
|
41 |
<th>VisitType</th>
|
|
|
42 |
<th>Name</th>
|
|
|
43 |
<th>View</th>
|
|
|
44 |
<th>Status</th>
|
|
|
45 |
<th>Actioned By</th>
|
|
|
46 |
|
|
|
47 |
</tr>
|
|
|
48 |
#if(!$userVisits.isEmpty())
|
|
|
49 |
#foreach( $request in $userVisits )
|
|
|
50 |
<tr class="user-visit">
|
|
|
51 |
#set($visitLength =$request.visitDescriptions.size() + 1)
|
|
|
52 |
<td rowspan="$visitLength">$request.getAuthUser()</td>
|
|
|
53 |
</tr>
|
|
|
54 |
#foreach($visitDescription in $request.visitDescriptions)
|
|
|
55 |
<tr>
|
|
|
56 |
<td>$visitDescription.getVisitType()</td>
|
|
|
57 |
<td>$visitDescription.getVisitName()</td>
|
|
|
58 |
#if($visitDescription.getVisitType() == "lead")
|
|
|
59 |
<td><button class="btn btn-primary view"
|
|
|
60 |
data-requestid="$visitDescription.getVisitId()" data-toggle="modal"
|
|
|
61 |
data-target="#fetchLeadActivityData" type="button">View</button></td>
|
|
|
62 |
#else
|
|
|
63 |
<td>$visitDescription.getRemarks()</td>
|
|
|
64 |
|
|
|
65 |
#end
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
<td>$visitDescription.getStatus()</td>
|
|
|
70 |
#if($visitDescription.getActionBy())
|
|
|
71 |
<td>$visitDescription.getActionBy()</td>
|
|
|
72 |
#else
|
|
|
73 |
<td>-</td>
|
|
|
74 |
#end
|
|
|
75 |
</tr>
|
|
|
76 |
#end
|
|
|
77 |
|
|
|
78 |
</tr>
|
|
|
79 |
#end
|
|
|
80 |
#else
|
|
|
81 |
<tr>
|
|
|
82 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
83 |
</tr>
|
|
|
84 |
#end
|
|
|
85 |
</tbody>
|
|
|
86 |
</table>
|
|
|
87 |
</div>
|
|
|
88 |
</div>
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
|
|
|
92 |
<div id="fetchLeadActivityData" class="modal" role="dialog">
|
|
|
93 |
<div class="modal-dialog">
|
|
|
94 |
<div class="modal-content"></div>
|
|
|
95 |
</div>
|
|
|
96 |
</div>
|
|
|
97 |
|
|
|
98 |
</section>
|