Subversion Repositories SmartDukaan

Rev

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

Rev 24471 Rev 25570
Line -... Line 1...
-
 
1
<script type="text/javascript">
-
 
2
 
-
 
3
	$(document).ready(function() {
-
 
4
 $('.partners').multiselect({
-
 
5
    		includeSelectAllOption: true,
-
 
6
        		multiple:true,
-
 
7
        		maxHeight: 200,
-
 
8
        		buttonWidth: '180px',
-
 
9
        		numberDisplayed: 1,
-
 
10
        	nonSelectedText: 'Partners',
-
 
11
        	nSelectedText: ' - Users Selected',
-
 
12
        	allSelectedText: 'All Users Selected',
-
 
13
        	enableFiltering: true,
-
 
14
	        enableCaseInsensitiveFiltering : true
-
 
15
        });
-
 
16
    });
-
 
17
</script>
1
<div class="row">
18
<div class="row">
2
	    	<div class="col-lg-12">
19
	    	<div class="col-lg-12">
3
	    		<table class="table table-bordered">
20
	    		<table class="table table-bordered">
4
	    			<tbody>
21
	    			<tbody>
5
	    				<tr>
22
	    				<tr>
6
	    					<th>User</th>
23
	    					<th>User</th>
7
	    					<th>Category</th>
24
	    					<th>Category</th>
8
	    					<th>Region</th>
25
	    					<th>Region</th>
9
	    					<th>Created TimeStamp</th>
26
	    					<th>Created TimeStamp</th>
10
	    					<th>EscalationType</th>
27
	    					<th>EscalationType</th>
-
 
28
	    					<th>Partners</th>
11
	    					<th>Action</th>
29
	    					<th>Action</th>
12
	    				</tr>
30
	    				</tr>
13
	    				#if(!$positions.isEmpty())
31
	    					#if(!$positions.isEmpty())
14
	 							#foreach($position in $positions)
32
	 							#foreach($position in $positions)
15
	 							<tr>
33
	 							<tr>
16
	 							<td>$authUserIdAndAuthUserMap.get($position.getAuthUserId()).getFirstName()</td>
34
	 							<td>$authUserIdAndAuthUserMap.get($position.getAuthUserId()).getFirstName()</td>
17
	 							#if($position.getCategoryId()==0)
35
	 							#if($position.getCategoryId()==0)
18
	 							<td>All Category</td>
36
	 							<td>All Category</td>
Line 24... Line 42...
24
	 							#else
42
	 							#else
25
	 							<td>$regionIdAndRegionMap.get($position.getRegionId()).getName()</td>
43
	 							<td>$regionIdAndRegionMap.get($position.getRegionId()).getName()</td>
26
	 							#end
44
	 							#end
27
	 							<td>$position.getFormattedCreateTimestamp()</td>
45
	 							<td>$position.getFormattedCreateTimestamp()</td>
28
	 							<td>$position.getEscalationType()</td>
46
	 							<td>$position.getEscalationType()</td>
-
 
47
	 							<td>
-
 
48
	 						  <select class="form-control input-sm  partners" id = "partners" name="partners" placeholder="partners" multiple="multiple">
-
 
49
							 
-
 
50
							   <option value="0">All Partners</option>
-
 
51
							   #foreach($posId in $positionIdAndpartnerRegionMap.get($position.getRegionId()))
-
 
52
							   #if($positionIdAndCustomRetailerMap.get($position.getId()).contains($posId))
-
 
53
							   <option value="$posId.getPartnerId()" selected>$posId.getBusinessName()</option>
-
 
54
							   #else
-
 
55
							   <option value="$posId.getPartnerId()">$posId.getBusinessName()</option>
-
 
56
		             		    #end
-
 
57
		             		     #end
-
 
58
		             		     
-
 
59
		             		    
-
 
60
		             	       </select>
-
 
61
		             	       
-
 
62
		             	        <button class="btn btn-primary update-position" data-positionid="$position.getId()" data-regionid="$position.getRegionId()">Update</button>
-
 
63
	 							</td>
29
	 							<td><button class="btn btn-primary remove-position" data-positionid="$position.getId()">Remove</button></td>
64
	 							<td><button class="btn btn-primary remove-position" data-positionid="$position.getId()">Remove</button></td>
30
			    				</tr>
65
			    				</tr>
31
			    				#end
66
			    				#end
32
			    				#else
67
			    				#else
33
			    				<tr>
68
			    				<tr>