Subversion Repositories SmartDukaan

Rev

Rev 35982 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24680 govind 1
<script>
2
$(document).ready(function() {
3
  $('#inactiveStore').DataTable(
4
  {
5
    "bPaginate": true,
6
    "bLengthChange": true,
7
    "bFilter": true,
8
    "bInfo": false,
9
    "bAutoWidth": false }
10
  );
35962 amit 11
 
24680 govind 12
} );
35962 amit 13
 
14
function closeStore(fofoId, storeCode) {
37765 amit 15
    openStoreClosureModal(fofoId, storeCode, function() {
16
        inactiveStoreInfo("main-content");
35962 amit 17
    });
18
}
24680 govind 19
</script>
35962 amit 20
<section class="wrapper">
24680 govind 21
	<div class="row">
22
		<div class="col-lg-12">
32457 jai.hind 23
			<h3 class="page-header"><i class="icon_document_alt"></i>INACTIVE STORE</h3>
24680 govind 24
			<ol class="breadcrumb">
25
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
35962 amit 26
				<li><i class="icon_document_alt"></i>INACTIVE-STORE</li>
24680 govind 27
			</ol>
28
		</div>
29
	</div>
30
  	<div id="inactive-store-table">
31
		<div class="row">
32
	    	<div class="col-lg-12">
35962 amit 33
 
34
	    		<table class="table table-bordered" id="inactiveStore">
24680 govind 35
	    		<thead>
36
	    					<th>PartnerId</th>
37
	    					<th>Store Name</th>
38
	    					<th>Email</th>
39
	    					<th>Store Code</th>
35962 amit 40
	    					<th>Status</th>
28711 amit.gupta 41
	    					<th>Days For Activation</th>
35962 amit 42
 
28711 amit.gupta 43
	    					<th>Action</th>
24680 govind 44
	    				</tr>
45
	    				</thead>
46
	    				<tbody>
47
	    				#if(!$fofoStores.isEmpty())
35962 amit 48
		    			#foreach( $inactivefofoStore in $inActiveFofoStores)
24680 govind 49
		    				<tr>
35962 amit 50
		    					<td>$inactivefofoStore.getId()</td>
51
		    					#if($customRetailers.get($inactivefofoStore.getId()).getBusinessName())
52
		    					<td>$customRetailers.get($inactivefofoStore.getId()).getBusinessName()</td>
53
		    					 #else
54
                                 <td>-</td> #end
55
                                 #if($customRetailers.get($inactivefofoStore.getId()).getEmail())
56
		    					<td>$customRetailers.get($inactivefofoStore.getId()).getEmail()</td>
57
		    					#else
58
                                <td>-</td> #end
59
		    					<td>$inactivefofoStore.getCode()</td>
60
		    					#if($inactivefofoStore.isClosed())
61
		    					<td><span class="label label-danger">CLOSED</span></td>
62
		    					<td>-</td>
63
		    					<td><span class="text-muted">Permanently Closed</span></td>
64
		    					#else
65
		    					<td><span class="label label-warning">INACTIVE</span></td>
66
		    					<td><input type="text" name="temporaryActivationStore" id="temporary-activation" value="" style=" width: 137px;">
67
		    					<button class="btn btn-primary activate-store-temporary"  data-fofoid="$inactivefofoStore.getId()">Temp Activate</button></td>
68
		    					<td>
69
		    					    <button class="btn btn-primary activate-store-forever"  data-fofoid="$inactivefofoStore.getId()">Activate</button>
70
		    					    <button class="btn btn-danger" onclick="closeStore($inactivefofoStore.getId(), '$inactivefofoStore.getCode()')">Close Store</button>
71
		    					</td>
72
		    					#end
24680 govind 73
		    				</tr>
74
		    			#end
35962 amit 75
	    			#else
76
	    				<tr>
77
	    					<td colspan="7" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
78
	    				</tr>
79
	    			#end
24680 govind 80
	    			</tbody>
81
	    		</table>
82
	    	</div>
83
	    </div>
84
    </div>
35962 amit 85
</section>