Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
31371 tejbeer 1
 
2
 
3
 
4
<script type="text/javascript">
5
 
6
	$(document).ready(function() {
7
 
8
		var dtable = $('#lead-detail-table').DataTable({
9
 
10
			"bPaginate" : true,
11
			"bLengthChange" : true,
12
			"bFilter" : true,
13
			"bInfo" : false,
14
			"bAutoWidth" : false,
15
			"scrollX": true,
16
 
17
		}
18
 
19
		);
20
	});
21
</script>
22
<section class="wrapper">
23
	<div class="row">
24
		<div class="col-lg-12">
25
			<h3 class="page-header"><i class="icon_document_alt"></i>Lead Detail</h3>
26
			<ol class="breadcrumb">
27
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
28
				<li><i class="icon_document_alt"></i>LEAD DETAIL</li>	
29
				</ol>
30
		</div>
31
	</div>
32
 
33
 
34
		<div class="row">
35
	    	<div class="col-lg-12">
36
	    	 <table class="table table-border table-condensed table-bordered" id="lead-detail-table">
37
               	 <thead>
38
	    				<tr>
39
	    					<th>Outlet Name</th>
40
	    					<th>Mobile</th>
41
	    					<th>Counter size</th>
42
	    					<th>Source</th>
43
	    					<th>Front</th>
44
	    					<th>Front With Market</th>
45
	    					<th>Internal Long shot</th>
46
	    					<th>Internal Left Wall </th>
47
	    					<th>Internal Right Wall</th>
48
		    				<th> Brand </th>
49
 
50
	    					<th>Created By</th>
51
	    					<th>Assign To</th>
52
	    					<th>Status</th>
53
	    					<th>Schedule Timestamp</th>
54
	    				     <th>Comment</th>
55
 
56
	    					<th>History</th>
57
	    				</tr>
58
	    			</thead>
59
 
60
	    			       <tbody>
61
	    					#if(!$leadDetails.isEmpty())
62
			    			#foreach( $request in $leadDetails )
63
			    				<tr class="lead-detail-edit" data="$request.getId()">
64
			    					<td>$request.getOutletName()</td>
65
			    					<td>$leadMap.get($request.getLeadId()).getLeadMobile()</td>
66
 
67
			    					<td>$request.getCounterSize()</td>
68
			    					#if($leadMap.get($request.getLeadId()).getSource())
69
			    					<td>$leadMap.get($request.getLeadId()).getSource()</td>
70
			    					#else 
71
			    					<td></td>
72
 
73
			    					#end
74
			    					<td> 
75
 
76
							            <a href="#front-id">
77
										  <img src="${rc.contextPath}/download-attachment?documentId=$request.getFrontp()" width = "100">
78
										</a>
79
 
80
								    	<a href="#" class="lightbox" id="front-id">
81
										  <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$request.getFrontp()')"></span>
82
										</a>
83
 
84
 
85
			    				    </td>
86
			    					<td>  			
87
							            <a href="#front-market-id">
88
										  <img src="${rc.contextPath}/download-attachment?documentId=$request.getFrontWithMarket()" width = "100">
89
										</a>
90
 
91
								    	<a href="#" class="lightbox" id="front-market-id">
92
										  <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$request.getFrontWithMarket()')"></span>
93
										</a>
94
			    				    </td>
95
			    					<td>  
96
			    					      <a href="#lont-shot-id">
97
										  <img src="${rc.contextPath}/download-attachment?documentId=$request.getInternalLongShot()" width = "100">
98
										</a>
99
 
100
								    	<a href="#" class="lightbox" id="long-shot-id">
101
										  <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$request.getInternalLongShot()')"></span>
102
										</a>
103
 
104
			    				    </td>
105
			    					<td> 
106
			    					    <a href="#left-wall-id">
107
										  <img src="${rc.contextPath}/download-attachment?documentId=$request.getInternalLeftWall()" width = "100">
108
										</a>
109
 
110
								    	<a href="#" class="lightbox" id="left-wall-id">
111
										  <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$request.getInternalLeftWall()')"></span>
112
										</a>
113
									</td>
114
 
115
			    					<td>  
116
 
117
			    					      <a href="#internal-right-id">
118
										  <img src="${rc.contextPath}/download-attachment?documentId=$request.getInternalRightWall()" width = "100">
119
										</a>
120
 
121
								    	<a href="#" class="lightbox" id="internal-right-id">
122
										  <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$request.getInternalRightWall()')"></span>
123
										</a>
124
			    				  </td>
125
 
126
 
127
				    		        <th>  $leadDetailBrandValue.get($request.getId())</th>
128
 
129
 
130
			    					<td>$authIdAndAuthUserMap.get($request.getCreatedBy()).getFullName()</td>
131
 
132
			    					<td>$authIdAndAuthUserMap.get($leadMap.get($request.getLeadId()).getAssignTo()).getFullName()	</td>
133
			    					<td $leadMap.get($request.getLeadId()).getStatus()</td>
134
			    					<td>$leadActivityMap.get($request.getLeadId()).get().getSchelduleTimestamp().format($dateTimeFormatter) </td>
135
			    					<td>$leadActivityMap.get($request.getLeadId()).get().getRemark()</td>
136
			    					<td><button class="btn btn-primary view"
137
									data-requestid="$request.getLeadId()" data-toggle="modal"
138
									data-target="#fetchLeadActivityData" type="button">View</button></td>
139
 
140
			    				</tr>	
141
			    	   #end
142
		    			#else
143
		    				<tr>
144
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
145
		    				</tr>
146
		    			#end
147
	    			</tbody>
148
	    		</table>
149
	    	</div>
150
	    </div>
151
 
152
 
153
 
154
      <div id="fetchLeadActivityData" class="modal" role="dialog">
155
        <div class="modal-dialog">
156
            <div class="modal-content"></div>
157
        </div>
158
    </div>
159
 </section>
160
 
161
 
162
 
163
 
164
 
165
 
166
 
167