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>
31407 tejbeer 22
 
23
<style>
24
 
25
 
26
img:target {
27
  border: 5px solid red;
28
}
29
 
30
.lightbox {
31
  /* Default to hidden */
32
  display: none;
33
 
34
  /* Overlay entire screen */
35
  position: fixed;
36
  z-index: 999;
37
  top: 0;
38
  left: 0;
39
  right: 0;
40
  bottom: 0;
41
 
42
  /* A bit of padding around image */
43
  padding: 1em;
44
 
45
  /* Translucent background */
46
  background: rgba(0, 0, 0, 0.8);
47
}
48
 
49
/* Unhide the lightbox when it's the target */
50
.lightbox:target {
51
  display: block;
52
}
53
 
54
.lightbox span {
55
  /* Full width and height */
56
  display: block;
57
  width: 100%;
58
  height: 100%;
59
 
60
  /* Size and position background image */
61
  background-position: center;
62
  background-repeat: no-repeat;
63
  background-size: contain;
64
}
65
 
66
 
67
</style>
31371 tejbeer 68
<section class="wrapper">
69
	<div class="row">
70
		<div class="col-lg-12">
71
			<h3 class="page-header"><i class="icon_document_alt"></i>Lead Detail</h3>
72
			<ol class="breadcrumb">
73
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
74
				<li><i class="icon_document_alt"></i>LEAD DETAIL</li>	
75
				</ol>
76
		</div>
77
	</div>
78
 
79
 
80
		<div class="row">
81
	    	<div class="col-lg-12">
82
	    	 <table class="table table-border table-condensed table-bordered" id="lead-detail-table">
83
               	 <thead>
84
	    				<tr>
85
	    					<th>Outlet Name</th>
86
	    					<th>Mobile</th>
87
	    					<th>Counter size</th>
88
	    					<th>Source</th>
89
	    					<th>Front</th>
90
	    					<th>Front With Market</th>
91
	    					<th>Internal Long shot</th>
92
	    					<th>Internal Left Wall </th>
93
	    					<th>Internal Right Wall</th>
94
		    				<th> Brand </th>
95
 
96
	    					<th>Created By</th>
97
	    					<th>Assign To</th>
98
	    					<th>Status</th>
99
	    					<th>Schedule Timestamp</th>
100
	    				     <th>Comment</th>
101
 
102
	    					<th>History</th>
103
	    				</tr>
104
	    			</thead>
105
 
106
	    			       <tbody>
107
	    					#if(!$leadDetails.isEmpty())
108
			    			#foreach( $request in $leadDetails )
109
			    				<tr class="lead-detail-edit" data="$request.getId()">
110
			    					<td>$request.getOutletName()</td>
111
			    					<td>$leadMap.get($request.getLeadId()).getLeadMobile()</td>
112
 
113
			    					<td>$request.getCounterSize()</td>
114
			    					#if($leadMap.get($request.getLeadId()).getSource())
115
			    					<td>$leadMap.get($request.getLeadId()).getSource()</td>
116
			    					#else 
117
			    					<td></td>
118
 
119
			    					#end
120
			    					<td> 
121
 
122
							            <a href="#front-id">
123
										  <img src="${rc.contextPath}/download-attachment?documentId=$request.getFrontp()" width = "100">
124
										</a>
125
 
126
								    	<a href="#" class="lightbox" id="front-id">
127
										  <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$request.getFrontp()')"></span>
128
										</a>
129
 
130
 
131
			    				    </td>
132
			    					<td>  			
133
							            <a href="#front-market-id">
134
										  <img src="${rc.contextPath}/download-attachment?documentId=$request.getFrontWithMarket()" width = "100">
135
										</a>
136
 
137
								    	<a href="#" class="lightbox" id="front-market-id">
138
										  <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$request.getFrontWithMarket()')"></span>
139
										</a>
140
			    				    </td>
141
			    					<td>  
142
			    					      <a href="#lont-shot-id">
143
										  <img src="${rc.contextPath}/download-attachment?documentId=$request.getInternalLongShot()" width = "100">
144
										</a>
145
 
146
								    	<a href="#" class="lightbox" id="long-shot-id">
147
										  <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$request.getInternalLongShot()')"></span>
148
										</a>
149
 
150
			    				    </td>
151
			    					<td> 
152
			    					    <a href="#left-wall-id">
153
										  <img src="${rc.contextPath}/download-attachment?documentId=$request.getInternalLeftWall()" width = "100">
154
										</a>
155
 
156
								    	<a href="#" class="lightbox" id="left-wall-id">
157
										  <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$request.getInternalLeftWall()')"></span>
158
										</a>
159
									</td>
160
 
161
			    					<td>  
162
 
163
			    					      <a href="#internal-right-id">
164
										  <img src="${rc.contextPath}/download-attachment?documentId=$request.getInternalRightWall()" width = "100">
165
										</a>
166
 
167
								    	<a href="#" class="lightbox" id="internal-right-id">
168
										  <span style="background-image:url('${rc.contextPath}/download-attachment?documentId=$request.getInternalRightWall()')"></span>
169
										</a>
170
			    				  </td>
171
 
172
 
173
				    		        <th>  $leadDetailBrandValue.get($request.getId())</th>
174
 
175
 
176
			    					<td>$authIdAndAuthUserMap.get($request.getCreatedBy()).getFullName()</td>
177
 
178
			    					<td>$authIdAndAuthUserMap.get($leadMap.get($request.getLeadId()).getAssignTo()).getFullName()	</td>
179
			    					<td $leadMap.get($request.getLeadId()).getStatus()</td>
180
			    					<td>$leadActivityMap.get($request.getLeadId()).get().getSchelduleTimestamp().format($dateTimeFormatter) </td>
181
			    					<td>$leadActivityMap.get($request.getLeadId()).get().getRemark()</td>
182
			    					<td><button class="btn btn-primary view"
183
									data-requestid="$request.getLeadId()" data-toggle="modal"
184
									data-target="#fetchLeadActivityData" type="button">View</button></td>
185
 
186
			    				</tr>	
187
			    	   #end
188
		    			#else
189
		    				<tr>
190
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
191
		    				</tr>
192
		    			#end
193
	    			</tbody>
194
	    		</table>
195
	    	</div>
196
	    </div>
197
 
198
 
199
 
200
      <div id="fetchLeadActivityData" class="modal" role="dialog">
201
        <div class="modal-dialog">
202
            <div class="modal-content"></div>
203
        </div>
204
    </div>
205
 </section>
206
 
207
 
208
 
209
 
210
 
211
 
212
 
213