| 25570 |
tejbeer |
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>
|
| 24471 |
govind |
18 |
<div class="row">
|
|
|
19 |
<div class="col-lg-12">
|
|
|
20 |
<table class="table table-bordered">
|
|
|
21 |
<tbody>
|
|
|
22 |
<tr>
|
|
|
23 |
<th>User</th>
|
|
|
24 |
<th>Category</th>
|
|
|
25 |
<th>Region</th>
|
|
|
26 |
<th>Created TimeStamp</th>
|
|
|
27 |
<th>EscalationType</th>
|
| 25570 |
tejbeer |
28 |
<th>Partners</th>
|
| 24471 |
govind |
29 |
<th>Action</th>
|
|
|
30 |
</tr>
|
| 25570 |
tejbeer |
31 |
#if(!$positions.isEmpty())
|
| 24471 |
govind |
32 |
#foreach($position in $positions)
|
|
|
33 |
<tr>
|
|
|
34 |
<td>$authUserIdAndAuthUserMap.get($position.getAuthUserId()).getFirstName()</td>
|
|
|
35 |
#if($position.getCategoryId()==0)
|
|
|
36 |
<td>All Category</td>
|
|
|
37 |
#else
|
|
|
38 |
<td>$categoryIdAndCategoryMap.get($position.getCategoryId()).getName()</td>
|
|
|
39 |
#end
|
|
|
40 |
#if($position.getRegionId()==0)
|
|
|
41 |
<td>All Region</td>
|
|
|
42 |
#else
|
|
|
43 |
<td>$regionIdAndRegionMap.get($position.getRegionId()).getName()</td>
|
|
|
44 |
#end
|
|
|
45 |
<td>$position.getFormattedCreateTimestamp()</td>
|
|
|
46 |
<td>$position.getEscalationType()</td>
|
| 25570 |
tejbeer |
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>
|
| 24471 |
govind |
64 |
<td><button class="btn btn-primary remove-position" data-positionid="$position.getId()">Remove</button></td>
|
|
|
65 |
</tr>
|
|
|
66 |
#end
|
|
|
67 |
#else
|
|
|
68 |
<tr>
|
|
|
69 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
70 |
</tr>
|
|
|
71 |
#end
|
|
|
72 |
</tbody>
|
|
|
73 |
</table>
|
|
|
74 |
</div>
|