| 21987 |
kshitij.so |
1 |
<style>
|
|
|
2 |
.table-striped > tbody > tr:nth-child(odd) > td{
|
|
|
3 |
background: white;
|
|
|
4 |
background-color: white;
|
|
|
5 |
}
|
|
|
6 |
.table-striped > tbody > tr:nth-child(even) > td{
|
|
|
7 |
background: white;
|
|
|
8 |
background-color:white;
|
|
|
9 |
}
|
| 27583 |
tejbeer |
10 |
|
|
|
11 |
.add-bag-submit{
|
|
|
12 |
color: white;
|
|
|
13 |
background-color: #008CBA;
|
|
|
14 |
}
|
|
|
15 |
|
|
|
16 |
#find-similar-products{
|
|
|
17 |
padding-top: 10px;
|
|
|
18 |
}
|
|
|
19 |
|
|
|
20 |
.add-bag-submit:hover{
|
|
|
21 |
color: red;
|
|
|
22 |
background-color: #000000;
|
|
|
23 |
}
|
|
|
24 |
|
| 21987 |
kshitij.so |
25 |
.table-striped > tbody > tr:hover > td,
|
|
|
26 |
.table-striped > tbody > tr:hover {
|
| 35726 |
vikas |
27 |
background-color: #f5f5f5;
|
| 21987 |
kshitij.so |
28 |
}
|
|
|
29 |
.btn:hover{
|
|
|
30 |
color: grey;
|
|
|
31 |
text-decoration: none;
|
|
|
32 |
}
|
|
|
33 |
.btn-primary:hover{
|
|
|
34 |
color: grey;
|
|
|
35 |
text-decoration: none;
|
|
|
36 |
}
|
| 27583 |
tejbeer |
37 |
#add-to-compare-check{
|
| 21987 |
kshitij.so |
38 |
cursor:pointer;
|
|
|
39 |
}
|
|
|
40 |
modal-dialog.modal-lg{
|
|
|
41 |
left:10%;
|
|
|
42 |
right:auto;
|
|
|
43 |
width:80%;
|
|
|
44 |
}
|
|
|
45 |
.modal-content{
|
|
|
46 |
background : white;
|
|
|
47 |
}
|
|
|
48 |
.modelHeaderCustom{
|
|
|
49 |
font-size:14px;
|
|
|
50 |
font-weight:bold;
|
|
|
51 |
}
|
|
|
52 |
hr{
|
|
|
53 |
background-color:#007aff;
|
|
|
54 |
border:none;
|
|
|
55 |
height:1px;
|
|
|
56 |
background:#007aff;
|
|
|
57 |
}
|
|
|
58 |
</style>
|
| 23396 |
ashik.ali |
59 |
<section class="wrapper">
|
| 21987 |
kshitij.so |
60 |
<div class="row">
|
|
|
61 |
<div class="col-lg-12">
|
| 32771 |
raveendra. |
62 |
<h3 class="page-header"><i class="icon_genius"></i>#springMessage("mystrocks.catalog")</h3>
|
| 21987 |
kshitij.so |
63 |
<ol class="breadcrumb">
|
| 32771 |
raveendra. |
64 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("mystrocks.home")</a></li>
|
|
|
65 |
<li><i class="icon_genius"></i>#springMessage("mystrocks.catalog")</li>
|
| 31986 |
tejbeer |
66 |
<li><a href="#videoModal" class="btn btn-danger" data-toggle="modal" data-src="oozbvqapL60"><span
|
| 32771 |
raveendra. |
67 |
class="glyphicon glyphicon-play-circle"></span> #springMessage("mystrocks.playvideo")</a></li>
|
| 31986 |
tejbeer |
68 |
|
| 21987 |
kshitij.so |
69 |
</ol>
|
|
|
70 |
</div>
|
|
|
71 |
</div>
|
|
|
72 |
|
| 27583 |
tejbeer |
73 |
<div id="find-similar-products">
|
|
|
74 |
<div class="row">
|
|
|
75 |
<div class="col-lg-12">
|
|
|
76 |
<div class="col-md-3 col-sm-3 col-xs-12 form-group pull-left top_search">
|
|
|
77 |
<div class="input-group">
|
|
|
78 |
<input type="text" class="typeahead form-control" id="catalog-search-text-compare" name="Item" data-provide="typeahead" autocomplete="off" value="" style ="
|
| 32771 |
raveendra. |
79 |
width: 200px;" placeholder=#springMessage("mystrocks.searchforproducts")/>
|
| 27583 |
tejbeer |
80 |
|
|
|
81 |
<span class="input-group-btn">
|
| 32771 |
raveendra. |
82 |
<button class="btn btn-primary submit" id="catalog-button" type="button">#springMessage("mystrocks.findsimilerproducts")</button>
|
| 27583 |
tejbeer |
83 |
</span>
|
|
|
84 |
</div>
|
|
|
85 |
</div>
|
|
|
86 |
</div>
|
|
|
87 |
</div>
|
|
|
88 |
</div>
|
|
|
89 |
|
| 23396 |
ashik.ali |
90 |
<div id="catalog-search">
|
|
|
91 |
<div class="row">
|
|
|
92 |
<div class="col-lg-12">
|
| 27583 |
tejbeer |
93 |
<div class="col-md-3 col-sm-3 col-xs-12 form-group pull-left top_search">
|
| 21987 |
kshitij.so |
94 |
<div class="input-group">
|
| 27583 |
tejbeer |
95 |
<input type="text" class="form-control" id="catalog-search-text" autocomplete="off" placeholder="Search for product..." value="$searchTerm" />
|
| 21987 |
kshitij.so |
96 |
<span class="input-group-btn">
|
| 32771 |
raveendra. |
97 |
<button class="btn btn-primary submit" id="catalog-search-button" type="button">#springMessage("mystrocks.go")</button>
|
| 21987 |
kshitij.so |
98 |
</span>
|
|
|
99 |
</div>
|
|
|
100 |
</div>
|
|
|
101 |
</div>
|
|
|
102 |
</div>
|
|
|
103 |
</div>
|
| 27583 |
tejbeer |
104 |
<div id="catalog-search-capmare-go">
|
|
|
105 |
<div class="col-lg-12">
|
|
|
106 |
<div class="col-md-3 col-sm-3 col-xs-12 form-group pull-right top_search" style="width:15%;">
|
|
|
107 |
<span class="input-group-btn">
|
| 32771 |
raveendra. |
108 |
<button class="btn btn-primary submit" id="Go-compare-button" type="button">#springMessage("mystrocks.gotocompare")</button>
|
| 27583 |
tejbeer |
109 |
</span>
|
|
|
110 |
</div>
|
|
|
111 |
</div>
|
|
|
112 |
</div>
|
|
|
113 |
|
| 21987 |
kshitij.so |
114 |
<div id="catalog-table">
|
|
|
115 |
<div class="row">
|
|
|
116 |
<div class="col-lg-12">
|
|
|
117 |
<table class="table table-striped table-advance table-hover">
|
|
|
118 |
<tbody>
|
|
|
119 |
<tr>
|
| 32771 |
raveendra. |
120 |
<th>#springMessage("mystrocks.itemcode")</th>
|
|
|
121 |
<th>#springMessage("mystrocks.brand")</th>
|
|
|
122 |
<th>#springMessage("mystrocks.modelname")</th>
|
|
|
123 |
<th>#springMessage("mystrocks.modelnumber")</th>
|
|
|
124 |
<th>#springMessage("mystrocks.color")</th>
|
|
|
125 |
<th>#springMessage("mystrocks.mop")</th>
|
|
|
126 |
<th>#springMessage("mystrocks.availability")</th>
|
|
|
127 |
<th>#springMessage("mystrocks.customeroffers")</th>
|
| 35726 |
vikas |
128 |
<th>#springMessage("mystrocks.pinelabsoffers")</th>
|
| 32771 |
raveendra. |
129 |
<th>#springMessage("mystrocks.addtobag")</th>
|
|
|
130 |
<th>#springMessage("mystrocks.addtocompare")</th>
|
| 21987 |
kshitij.so |
131 |
</tr>
|
| 22354 |
ashik.ali |
132 |
#if(!$currentInventorySnapshot.isEmpty())
|
| 21987 |
kshitij.so |
133 |
#foreach( $inventorySnapshot in $currentInventorySnapshot )
|
| 27583 |
tejbeer |
134 |
<tr data="$inventorySnapshot.getItemId()" class="add-to-bag" >
|
| 22860 |
ashik.ali |
135 |
<td>$inventorySnapshot.getItemId()</td>
|
| 27583 |
tejbeer |
136 |
<td>$inventorySnapshot.getBrand()</td>
|
|
|
137 |
<td>$inventorySnapshot.getModelName()</td>
|
|
|
138 |
<td>$inventorySnapshot.getModelNumber()</td>
|
|
|
139 |
<td>$inventorySnapshot.getColor()</td>
|
|
|
140 |
<td>$inventorySnapshot.getPrice()</td>
|
| 22354 |
ashik.ali |
141 |
<td>$inventorySnapshot.getAvailability()</td>
|
| 30603 |
tejbeer |
142 |
#if($webOfferMap.get($inventorySnapshot.getCatalogItemId()))
|
|
|
143 |
<td><a class="web-offer-submit" data-catalogid= "$inventorySnapshot.getCatalogItemId()" id="web-offer-button" data-target="#todayOfferModal" data-toggle="modal">Customer Offers</a></td>
|
|
|
144 |
#else
|
|
|
145 |
<td>-</td>
|
|
|
146 |
#end
|
| 35726 |
vikas |
147 |
#if($pinelabsOfferMap.get($inventorySnapshot.getItemId()))
|
| 35728 |
vikas |
148 |
#set($hasValidTenure = false)
|
|
|
149 |
#foreach($issuerEntry in $pinelabsOfferMap.get($inventorySnapshot.getItemId()).entrySet())
|
|
|
150 |
#foreach($tenure in $issuerEntry.value)
|
|
|
151 |
#if($tenure.getTenureValue() && $tenure.getTenureValue() > 0)
|
|
|
152 |
#set($hasValidTenure = true)
|
|
|
153 |
#end
|
|
|
154 |
#end
|
|
|
155 |
#end
|
|
|
156 |
#if($hasValidTenure)
|
| 35726 |
vikas |
157 |
<td><a class="pinelabs-offer-submit" data-itemid="$inventorySnapshot.getItemId()" data-target="#pinelabsOfferModal" data-toggle="modal">View Offers</a></td>
|
| 35728 |
vikas |
158 |
#else
|
|
|
159 |
<td>-</td>
|
|
|
160 |
#end
|
| 35726 |
vikas |
161 |
#else
|
|
|
162 |
<td>-</td>
|
|
|
163 |
#end
|
| 27583 |
tejbeer |
164 |
<td><button class="add-bag-submit" id="add-bag-button" type="button" data-target="#bagModel" data-toggle="modal" >Add To Bag</button></td>
|
|
|
165 |
<td><input type="checkbox" class="add-compare-checkbox" data-catalogitemid="$inventorySnapshot.getCatalogItemId()" id="add-to-compare-check" name="compare-check"><span></span></td>
|
| 21987 |
kshitij.so |
166 |
</tr>
|
|
|
167 |
#end
|
|
|
168 |
#else
|
|
|
169 |
<tr>
|
| 32771 |
raveendra. |
170 |
<td colspan="5" style="text-align:center;">#springMessage("mystrocks.nomatchingdatafoundforcriteria")</td>
|
| 21987 |
kshitij.so |
171 |
</tr>
|
|
|
172 |
#end
|
| 27583 |
tejbeer |
173 |
|
| 21987 |
kshitij.so |
174 |
</tbody>
|
|
|
175 |
</table>
|
|
|
176 |
</div>
|
|
|
177 |
</div>
|
|
|
178 |
</div>
|
| 22354 |
ashik.ali |
179 |
#if(!$currentInventorySnapshot.isEmpty())
|
|
|
180 |
<div class="row" id="catalog-paginated">
|
|
|
181 |
<div class="col-lg-9">
|
|
|
182 |
<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
|
|
|
183 |
</div>
|
|
|
184 |
<div class="col-lg-3" style="text-align:right;">
|
| 35726 |
vikas |
185 |
<div class="btn-group" style="width:40%">
|
|
|
186 |
<button class="btn btn-primary previous" disabled="disabled" style="width:100%">#springMessage("mystrocks.previous")</button>
|
|
|
187 |
</div>
|
|
|
188 |
<div class="btn-group" style="width:40%">
|
|
|
189 |
#if($end >= $size)
|
|
|
190 |
<button class="btn btn-primary next" style="width:100%" disabled="disabled">#springMessage("mystrocks.next")</button>
|
|
|
191 |
#else
|
|
|
192 |
<button class="btn btn-primary next" style="width:100%">#springMessage("mystrocks.next")</button>
|
|
|
193 |
#end
|
|
|
194 |
</div>
|
| 22354 |
ashik.ali |
195 |
</div>
|
|
|
196 |
</div>
|
| 21987 |
kshitij.so |
197 |
#end
|
| 27583 |
tejbeer |
198 |
|
|
|
199 |
<div id="itemSimilarContainer">
|
|
|
200 |
|
|
|
201 |
</div>
|
|
|
202 |
|
|
|
203 |
|
| 21987 |
kshitij.so |
204 |
</section>
|
|
|
205 |
|
| 26316 |
tejbeer |
206 |
<div id="bagModel" class="modal" role="dialog">
|
| 23181 |
ashik.ali |
207 |
<div class="modal-dialog modal-md">
|
| 21987 |
kshitij.so |
208 |
<!-- Modal content-->
|
|
|
209 |
<div class="modal-content">
|
|
|
210 |
<div class="modal-header">
|
|
|
211 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
212 |
<h4 class="modal-title">Add Item To Bag</h4>
|
|
|
213 |
</div>
|
| 34159 |
ranu |
214 |
<div class="modal-body" style="min-height:200px;">
|
|
|
215 |
|
|
|
216 |
<div id="catalogModalBody">
|
|
|
217 |
<div style="max-height: 450px;overflow-y: auto;padding-bottom: 10px;margin-bottom: 20px;">
|
|
|
218 |
<input type="hidden" class="itemId"/>
|
|
|
219 |
<input type="hidden" class="availability"/>
|
|
|
220 |
<h4 class="bagModalProductInfo modelHeaderCustom">Product Details : <span></span></h4>
|
|
|
221 |
<h4 class="bagModalAvailability modelHeaderCustom">Availability : <span></span></h4>
|
|
|
222 |
<h4 class="bagModalEarlyImeis modelHeaderCustom">Imeis to bill - (Recommend you to bill
|
|
|
223 |
imeis on the left first) <span></span></h4>
|
|
|
224 |
<h4 class="bagModalQuantity modelHeaderCustom">Enter Quantity
|
|
|
225 |
<span>
|
|
|
226 |
<input type="number" min="1" class="form-control quantity"></input>
|
|
|
227 |
</span></h4>
|
|
|
228 |
<hr/>
|
|
|
229 |
</div>
|
| 23181 |
ashik.ali |
230 |
<span>
|
| 32653 |
ranu |
231 |
<button type="submit" id="addToBagButton" class="btn btn-warning">Add more!</button>
|
|
|
232 |
<button type="submit" id="addToBagButtonwithCart"
|
|
|
233 |
class="btn btn-primary">Continue with cart</button>
|
| 32678 |
ranu |
234 |
<button type="submit" id="addToBagButtonwithBillingpage" class="btn btn-success"> Checkout</button>
|
| 32653 |
ranu |
235 |
<input type="hidden" class="cart-checkout" value="checkout">
|
|
|
236 |
|
| 21987 |
kshitij.so |
237 |
</span>
|
|
|
238 |
</div>
|
| 23405 |
amit.gupta |
239 |
</div>
|
| 23170 |
amit.gupta |
240 |
</div>
|
| 21987 |
kshitij.so |
241 |
</div>
|
| 24203 |
amit.gupta |
242 |
</div>
|
| 30603 |
tejbeer |
243 |
|
|
|
244 |
<div id="todayOfferModal" class="modal" role="dialog">
|
|
|
245 |
<div class="modal-dialog">
|
|
|
246 |
<div class="modal-content">
|
| 35726 |
vikas |
247 |
|
| 30603 |
tejbeer |
248 |
</div>
|
|
|
249 |
</div>
|
| 33725 |
ranu |
250 |
</div>
|
| 30603 |
tejbeer |
251 |
|
| 35726 |
vikas |
252 |
<div id="pinelabsOfferModal" class="modal" role="dialog">
|
|
|
253 |
<div class="modal-dialog modal-lg">
|
|
|
254 |
<div class="modal-content">
|
|
|
255 |
<div class="modal-header">
|
|
|
256 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
257 |
<h4 class="modal-title">Pinelabs EMI Offers <small class="text-danger">All plans are showing on MOP basis</small></h4>
|
|
|
258 |
</div>
|
|
|
259 |
<div class="modal-body" id="pinelabsOfferModalBody" style="max-height:450px;overflow-y:auto;">
|
|
|
260 |
</div>
|
|
|
261 |
</div>
|
|
|
262 |
</div>
|
|
|
263 |
</div>
|
|
|
264 |
|
| 33725 |
ranu |
265 |
<!-- Modal HTML -->
|
|
|
266 |
<div id="videoModal" class="modal fade">
|
|
|
267 |
<div class="modal-dialog">
|
|
|
268 |
<div class="modal-content">
|
|
|
269 |
<div class="modal-body">
|
|
|
270 |
<div class="embed-responsive embed-responsive-16by9">
|
| 35620 |
vikas |
271 |
<iframe id="trainingVideo" referrerpolicy="strict-origin-when-cross-origin" class="embed-responsive-item" width="560" height="315"
|
| 33725 |
ranu |
272 |
allowfullscreen allow="autoplay"></iframe>
|
|
|
273 |
</div>
|
|
|
274 |
</div>
|
|
|
275 |
</div>
|
|
|
276 |
</div>
|
|
|
277 |
</div>
|
|
|
278 |
|
| 24203 |
amit.gupta |
279 |
<script type="text/javascript">
|
|
|
280 |
hasGift = $hasGift;
|
| 27583 |
tejbeer |
281 |
|
|
|
282 |
$(function(){
|
| 27620 |
tejbeer |
283 |
getItemAheadOptions($("#catalog-search-text-compare"),false,function(selectedItem){
|
| 27583 |
tejbeer |
284 |
currentItem = selectedItem;
|
|
|
285 |
console.log(currentItem);
|
| 33725 |
ranu |
286 |
});
|
|
|
287 |
|
|
|
288 |
$("#videoModal").on('hide.bs.modal', function () {
|
|
|
289 |
$("#trainingVideo").attr('src', '');
|
| 27583 |
tejbeer |
290 |
});
|
| 33725 |
ranu |
291 |
|
|
|
292 |
/* Assign the initially stored url back to the iframe src
|
|
|
293 |
attribute when modal is displayed again */
|
|
|
294 |
$("#videoModal").on('show.bs.modal', function (event) {
|
|
|
295 |
let button = $(event.relatedTarget);
|
|
|
296 |
let youtubeUrl = button.data("src");
|
|
|
297 |
$("#trainingVideo").attr('src', `//www.youtube.com/embed/${youtubeUrl}?autoplay=1`);
|
|
|
298 |
});
|
| 35726 |
vikas |
299 |
|
|
|
300 |
$(document).on('click', '.pinelabs-offer-submit', function() {
|
|
|
301 |
var itemId = $(this).data('itemid');
|
|
|
302 |
var content = $('#pinelabs-data-' + itemId).html();
|
|
|
303 |
$('#pinelabsOfferModalBody').html(content || '<p>No offers available</p>');
|
| 33725 |
ranu |
304 |
});
|
| 35726 |
vikas |
305 |
});
|
| 32639 |
ranu |
306 |
</script>
|
| 35726 |
vikas |
307 |
|
|
|
308 |
## Pinelabs offer data rendered per item - grouped accordion by bank name
|
|
|
309 |
#if($pinelabsOfferMap && !$pinelabsOfferMap.isEmpty())
|
|
|
310 |
#foreach($entry in $pinelabsOfferMap.entrySet())
|
|
|
311 |
<div id="pinelabs-data-$entry.key" style="display:none;">
|
|
|
312 |
<div class="panel-group" id="pinelabs-accordion-$entry.key">
|
|
|
313 |
#foreach($issuerEntry in $entry.value.entrySet())
|
|
|
314 |
<div class="panel panel-default">
|
|
|
315 |
<div class="panel-heading" style="cursor:pointer;" data-toggle="collapse" data-parent="#pinelabs-accordion-$entry.key" data-target="#pinelabs-collapse-${entry.key}-${velocityCount}">
|
|
|
316 |
<h4 class="panel-title">
|
|
|
317 |
<span class="glyphicon glyphicon-chevron-down" style="margin-right:8px;font-size:12px;"></span>
|
|
|
318 |
$!issuerEntry.key
|
|
|
319 |
<span class="badge" style="margin-left:8px;">$issuerEntry.value.size() offers</span>
|
|
|
320 |
</h4>
|
|
|
321 |
</div>
|
|
|
322 |
<div id="pinelabs-collapse-${entry.key}-${velocityCount}" class="panel-collapse collapse#if($velocityCount == 1) in#end">
|
|
|
323 |
<div class="panel-body" style="padding:0;">
|
|
|
324 |
<table class="table table-striped table-hover" style="margin-bottom:0;">
|
|
|
325 |
<thead>
|
|
|
326 |
<tr>
|
|
|
327 |
<th>Tenure</th>
|
|
|
328 |
<th>Monthly EMI</th>
|
|
|
329 |
<th>Interest Rate</th>
|
|
|
330 |
<th>EMI Type</th>
|
|
|
331 |
</tr>
|
|
|
332 |
</thead>
|
|
|
333 |
<tbody>
|
|
|
334 |
#foreach($tenure in $issuerEntry.value)
|
| 35728 |
vikas |
335 |
#if($tenure.getTenureValue() && $tenure.getTenureValue() > 0)
|
| 35726 |
vikas |
336 |
<tr>
|
|
|
337 |
<td>$!tenure.getTenureValue() months</td>
|
|
|
338 |
<td>#if($tenure.getMonthlyEmiAmount())$!tenure.getMonthlyEmiAmount().getValue() $!tenure.getMonthlyEmiAmount().getCurrency()#end</td>
|
|
|
339 |
<td>$!tenure.getInterestRatePercentage()%</td>
|
|
|
340 |
<td>$!tenure.getEmiType()</td>
|
|
|
341 |
</tr>
|
| 35728 |
vikas |
342 |
#end
|
| 35726 |
vikas |
343 |
#end
|
|
|
344 |
</tbody>
|
|
|
345 |
</table>
|
|
|
346 |
</div>
|
|
|
347 |
</div>
|
|
|
348 |
</div>
|
|
|
349 |
#end
|
|
|
350 |
</div>
|
|
|
351 |
</div>
|
|
|
352 |
#end
|
|
|
353 |
#end
|