Subversion Repositories SmartDukaan

Rev

Rev 37045 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37045 Rev 37047
Line 14... Line 14...
14
	    					<th>Created By</th>
14
	    					<th>Created By</th>
15
	    					<th>Status</th>
15
	    					<th>Status</th>
16
	    					<th>Created On</th>
16
	    					<th>Created On</th>
17
	    					<th>Updated On </th>
17
	    					<th>Updated On </th>
18
	    					<th>Assign To </th>
18
	    					<th>Assign To </th>
-
 
19
							<th>Geo Status</th>
19
	    					<th>view</th>
20
	    					<th>view</th>
20
							<th>Action</th>
21
							<th>Action</th>
21
	    				</tr>
22
	    				</tr>
22
	    		</thead>
23
	    		</thead>
23
	    		<tbody>		
24
	    		<tbody>		
Line 44... Line 45...
44
										<td>$authIdAndAuthUserMap.get($leadsModel.getAssignTo()).getFirstName()</td>
45
										<td>$authIdAndAuthUserMap.get($leadsModel.getAssignTo()).getFirstName()</td>
45
			    				#else
46
			    				#else
46
			    				<td></td>
47
			    				<td></td>
47
			    				#end
48
			    				#end
48
									<td>
49
									<td>
-
 
50
										#set($geoLoc = $geoLocationMap.get($leadsModel.getId()))
-
 
51
										#if($geoLoc && $geoLoc.getStatus().toString() == "APPROVED")
-
 
52
											<div class="btn-group-vertical" style="width:100%">
-
 
53
												<span class="label label-success"
-
 
54
													  style="margin-bottom:4px;">Verified</span>
-
 
55
												<a href="https://www.google.com/maps?q=$geoLoc.getLatitude(),$geoLoc.getLongitude()"
-
 
56
												   target="_blank"
-
 
57
												   class="btn btn-xs btn-default" style="margin-bottom:2px;"
-
 
58
												   title="$geoLoc.getLatitude(), $geoLoc.getLongitude()">View Map</a>
-
 
59
												#if($geoLoc.getImageDocumentId() > 0)
-
 
60
													<a href="${rc.contextPath}/open-attachment?documentId=$geoLoc.getImageDocumentId()"
-
 
61
													   target="_blank"
-
 
62
													   class="btn btn-xs btn-default" style="margin-bottom:2px;">View
-
 
63
														Photo</a>
-
 
64
												#end
-
 
65
												<button class="btn btn-xs btn-danger reject-geo"
-
 
66
														data-leadid="$leadsModel.getId()">Revoke
-
 
67
												</button>
-
 
68
											</div>
-
 
69
										#elseif($geoLoc && $geoLoc.getStatus().toString() == "PENDING")
-
 
70
											<div class="btn-group-vertical" style="width:100%">
-
 
71
												<span class="label label-warning" style="margin-bottom:4px;">Pending Review</span>
-
 
72
												<a href="https://www.google.com/maps?q=$geoLoc.getLatitude(),$geoLoc.getLongitude()"
-
 
73
												   target="_blank"
-
 
74
												   class="btn btn-xs btn-default" style="margin-bottom:2px;"
-
 
75
												   title="$geoLoc.getLatitude(), $geoLoc.getLongitude()">View Map</a>
-
 
76
												#if($geoLoc.getImageDocumentId() > 0)
-
 
77
													<a href="${rc.contextPath}/open-attachment?documentId=$geoLoc.getImageDocumentId()"
-
 
78
													   target="_blank"
-
 
79
													   class="btn btn-xs btn-default" style="margin-bottom:2px;">View
-
 
80
														Photo</a>
-
 
81
												#end
-
 
82
												<button class="btn btn-xs btn-success approve-geo"
-
 
83
														data-leadid="$leadsModel.getId()">Approve
-
 
84
												</button>
-
 
85
												<button class="btn btn-xs btn-danger reject-geo"
-
 
86
														data-leadid="$leadsModel.getId()">Reject
-
 
87
												</button>
-
 
88
											</div>
-
 
89
										#elseif($geoLoc && $geoLoc.getStatus().toString() == "REJECTED")
-
 
90
											<div class="btn-group-vertical" style="width:100%">
-
 
91
												<button class="btn btn-xs btn-warning generateGeoLink"
-
 
92
														data-leadid="$leadsModel.getId()"
-
 
93
														style="margin-bottom:2px;">Rejected - Resend
-
 
94
												</button>
-
 
95
												<button class="btn btn-xs btn-success verifyGeoManual"
-
 
96
														data-leadid="$leadsModel.getId()">Verify Manually
-
 
97
												</button>
-
 
98
											</div>
-
 
99
										#else
-
 
100
											<div class="btn-group-vertical" style="width:100%">
-
 
101
												<button class="btn btn-xs btn-info generateGeoLink"
-
 
102
														data-leadid="$leadsModel.getId()" style="margin-bottom:2px;">
-
 
103
													Generate Link
-
 
104
												</button>
-
 
105
												<button class="btn btn-xs btn-success verifyGeoManual"
-
 
106
														data-leadid="$leadsModel.getId()">Verify Manually
-
 
107
												</button>
-
 
108
											</div>
-
 
109
										#end
-
 
110
									</td>
-
 
111
									<td>
49
										<button class="btn btn-primary view" data-requestid="$leadsModel.getId()"
112
										<button class="btn btn-primary view" data-requestid="$leadsModel.getId()"
50
												data-toggle="modal" data-target="#fetchLeadActivityData" type="button">
113
												data-toggle="modal" data-target="#fetchLeadActivityData" type="button">
51
											View
114
											View
52
										</button>
115
										</button>
53
										#if($leadsModel.getRecordingUrl())
116
										#if($leadsModel.getRecordingUrl())
Line 66... Line 129...
66
 
129
 
67
								</tr>
130
								</tr>
68
			    	   #end
131
			    	   #end
69
		    			#else
132
		    			#else
70
		    				<tr>
133
		    				<tr>
71
								<td colspan="15" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
134
								<td colspan="16" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
72
		    				</tr>
135
		    				</tr>
73
		    			#end
136
		    			#end
74
	    			</tbody>
137
	    			</tbody>
75
	    		</table>
138
	    		</table>
76
	    	</div>
139
	    	</div>