| 29268 |
manish |
1 |
<script>
|
|
|
2 |
$(document).ready(function() {
|
|
|
3 |
$('#activeStore').DataTable(
|
|
|
4 |
{
|
|
|
5 |
"bPaginate": true,
|
|
|
6 |
"bLengthChange": true,
|
|
|
7 |
"bFilter": true,
|
|
|
8 |
"bInfo": false,
|
|
|
9 |
"bAutoWidth": false }
|
|
|
10 |
);
|
|
|
11 |
|
|
|
12 |
} );
|
|
|
13 |
</script>
|
|
|
14 |
<section class="wrapper">
|
|
|
15 |
<div class="row">
|
|
|
16 |
<div class="col-lg-12">
|
|
|
17 |
<h3 class="page-header"><i class="icon_document_alt"></i>Retailer</h3>
|
|
|
18 |
<ol class="breadcrumb">
|
|
|
19 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
20 |
<li><i class="icon_document_alt"></i>STORE</li>
|
|
|
21 |
</ol>
|
|
|
22 |
</div>
|
|
|
23 |
</div>
|
|
|
24 |
<div id="active-store-table">
|
|
|
25 |
<div class="row">
|
|
|
26 |
<div class="col-lg-12">
|
|
|
27 |
|
|
|
28 |
<table class="table table-bordered" id="activeStore">
|
|
|
29 |
<thead>
|
|
|
30 |
<th>PartnerId</th>
|
|
|
31 |
<th>Store Name</th>
|
|
|
32 |
<th>Email</th>
|
|
|
33 |
<th>Store Code</th>
|
|
|
34 |
<th>Investment</th>
|
|
|
35 |
<th>Category</th>
|
|
|
36 |
<th>Action</th>
|
|
|
37 |
</tr>
|
|
|
38 |
</thead>
|
|
|
39 |
<tbody>
|
|
|
40 |
#if(!$fofoStores.isEmpty())
|
|
|
41 |
#foreach( $fofoStore in $fofoStores)
|
|
|
42 |
<tr>
|
|
|
43 |
<td>$fofoStore.getId()</td>
|
|
|
44 |
<td>$customRetailers.get($fofoStore.getId()).getBusinessName()</td>
|
|
|
45 |
<td>$customRetailers.get($fofoStore.getId()).getEmail()</td>
|
|
|
46 |
<td>$fofoStore.getCode()</td>
|
|
|
47 |
#if ($investments.get($fofoStore.getId()))
|
|
|
48 |
#if($fofoStore.getGraceCount() > 0)
|
|
|
49 |
<td>Billing expires on $dateFormatter.format($fofoStore.getGraceDate()) (Grace Count - $fofoStore.getGraceCount())</td>
|
|
|
50 |
#else
|
|
|
51 |
<td>OK</td>
|
|
|
52 |
#end
|
|
|
53 |
#else
|
|
|
54 |
<td>
|
|
|
55 |
#if($fofoStore.getGraceCount() > 0)
|
|
|
56 |
Grace Period expired on $dateFormatter.format($fofoStore.getGraceDate()) (Grace Count - $fofoStore.getGraceCount())<br>
|
|
|
57 |
#end
|
|
|
58 |
<button class="btn btn-primary extend-billing" data-fofoid="$fofoStore.getId()">Extend for 2 days</button></td>
|
|
|
59 |
|
|
|
60 |
#end
|
|
|
61 |
<td><a class="changePartnerCategory" data-id="$fofoStore.getId()" href="#"> change category</a></td>
|
|
|
62 |
<td><button class="btn btn-primary deactivate-store" data-fofoid="$fofoStore.getId()">Deactivate</button></td>
|
|
|
63 |
</tr>
|
|
|
64 |
#end
|
|
|
65 |
#else
|
|
|
66 |
<tr>
|
|
|
67 |
<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
68 |
</tr>
|
|
|
69 |
#end
|
|
|
70 |
</tbody>
|
|
|
71 |
</table>
|
|
|
72 |
</div>
|
|
|
73 |
</div>
|
|
|
74 |
</div>
|
|
|
75 |
</section>
|