Subversion Repositories SmartDukaan

Rev

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

Rev 27797 Rev 29268
Line 6... Line 6...
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
  
-
 
12
  
-
 
13
  $(document).ready(function() {
-
 
14
        $('#fofo-users').multiselect({
-
 
15
    		includeSelectAllOption: true,
-
 
16
        		multiple:true,
-
 
17
        		maxHeight: 200,
-
 
18
        		buttonWidth: '180px',
-
 
19
        		numberDisplayed: 1,
-
 
20
        	nonSelectedText: 'Users',
-
 
21
        	nSelectedText: ' - Users Selected',
-
 
22
        	allSelectedText: 'All Users Selected',
-
 
23
        	enableFiltering: true,
-
 
24
	        enableCaseInsensitiveFiltering : true
-
 
25
        });
-
 
26
    });
11
   
27
   
12
} );
28
} );
13
</script>
29
</script>
14
<section class="wrapper">            
30
<section class="wrapper">            
15
	<div class="row">
31
	<div class="row">
Line 19... Line 35...
19
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
35
				<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>						  	
36
				<li><i class="icon_document_alt"></i>STORE</li>						  	
21
			</ol>
37
			</ol>
22
		</div>
38
		</div>
23
	</div>
39
	</div>
24
  	<div id="active-store-table">
-
 
-
 
40
	
25
		<div class="row">
41
	 <div class = "row">
26
	    	<div class="col-lg-12">
42
      <div class="col-lg-2 form-group">
27
	    	
-
 
28
	    		<table class="table table-bordered" id="activeStore">	
43
         <select class="form-control input-sm" id ="fofo-users"  placeholder="partnerName" multiple="multiple">
29
	    		<thead>
-
 
30
	    					<th>PartnerId</th>
-
 
31
	    					<th>Store Name</th>
-
 
32
	    					<th>Email</th>
-
 
33
	    					<th>Store Code</th>
-
 
34
	    					<th>Investment</th>
44
            <option value="" selected disabled>Partner</option>
35
	    					<th>Category</th>
-
 
36
	    					<th>Action</th>
-
 
37
	    				</tr>
-
 
38
	    				</thead>
-
 
39
	    				<tbody>
-
 
40
	    				#if(!$fofoStores.isEmpty())
-
 
41
			    			#foreach( $fofoStore in $fofoStores)
45
            #foreach($fofoId in $fofoIdsAndCustomRetailer.keySet())
42
			    				<tr>
-
 
43
			    					<td>$fofoStore.getId()</td>
-
 
44
			    					<td>$customRetailers.get($fofoStore.getId()).getBusinessName()</td>
46
            <option value="$fofoId">$fofoIdsAndCustomRetailer.get($fofoId).getBusinessName()</option>
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
47
            #end
51
				    					 <td>OK</td>
48
         </select>
52
				    					#end
49
        </div> 
53
			    					#else
50
        <div class="col-lg-2">
54
			    						<td>
51
        <div>
55
										#if($fofoStore.getGraceCount() > 0)
-
 
56
				    						Grace Period expired on $dateFormatter.format($fofoStore.getGraceDate()) (Grace Count - $fofoStore.getGraceCount())<br>
52
         <button class="btn btn-primary partner-info"  type="button">Submit</button>
57
				    					 #end
53
         </div>
58
			    							<button class="btn btn-primary extend-billing"  data-fofoid="$fofoStore.getId()">Extend for 2 days</button></td>
-
 
59
			    							 
54
         
60
			    					#end
55
       
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>
56
          <button class="btn btn-primary allStoreInfo"  type="button">Fetch</button>
63
			    				</tr>
57
         </div>
64
			    			#end
58
         
65
		    			#else
59
    
66
		    				<tr>
60
	
67
		    					<td colspan="6" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
61
	 <div class="storePartnerInfo" style="margin:5px"></div>
68
		    				</tr>
-
 
69
		    			#end
-
 
70
	    			</tbody>
-
 
71
	    		</table>
62
	     </div>
72
	    	</div>
63
	     
73
	    </div>
64
	   
74
    </div>
65
  	</div>
75
</section>
66
</section>
76
67