Subversion Repositories SmartDukaan

Rev

Rev 29268 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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