Subversion Repositories SmartDukaan

Rev

Rev 24976 | Rev 25704 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24124 govind 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>
24349 amit.gupta 34
	    					<th>Investment</th>
24124 govind 35
	    					<th>Action</th>
36
	    				</tr>
37
	    				</thead>
38
	    				<tbody>
39
	    				#if(!$fofoStores.isEmpty())
40
			    			#foreach( $fofoStore in $fofoStores)
41
			    				<tr>
42
			    					<td>$fofoStore.getId()</td>
24979 amit.gupta 43
			    					<td><a href="javascript:void(0);" class="login_as" data-fofoid="$fofoStore.getId()">$customRetailers.get($fofoStore.getId()).getBusinessName()</a></td>
24124 govind 44
			    					<td>$customRetailers.get($fofoStore.getId()).getEmail()</td>
45
			    					<td>$fofoStore.getCode()</td>
24349 amit.gupta 46
			    					#if ($investments.get($fofoStore.getId()))
47
										#if($fofoStore.getGraceCount() > 0)
48
				    						<td>Billing expires on $dateFormatter.format($fofoStore.getGraceDate()) (Grace Count - $fofoStore.getGraceCount())</td>
49
				    					#else
50
				    					 <td>OK</td>
51
				    					#end
52
			    					#else
53
			    						<td>
54
										#if($fofoStore.getGraceCount() > 0)
55
				    						Grace Period expired on $dateFormatter.format($fofoStore.getGraceDate()) (Grace Count - $fofoStore.getGraceCount())<br>
56
				    					 #end
57
			    							<button class="btn btn-primary extend-billing"  data-fofoid="$fofoStore.getId()">Extend for 2 days</button></td>
58
 
59
			    					#end
24124 govind 60
			    					<td><button class="btn btn-primary deactivate-store"  data-fofoid="$fofoStore.getId()">Deactivate</button></td>
61
			    				</tr>
62
			    			#end
63
		    			#else
64
		    				<tr>
65
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
66
		    				</tr>
67
		    			#end
68
	    			</tbody>
69
	    		</table>
70
	    	</div>
71
	    </div>
72
    </div>
73
</section>