| 24417 |
govind |
1 |
<script type="text/javascript">
|
|
|
2 |
|
|
|
3 |
$(document).ready(function() {
|
|
|
4 |
$('#authUser').multiselect({
|
|
|
5 |
includeSelectAllOption: true,
|
|
|
6 |
multiple:true,
|
|
|
7 |
maxHeight: 200,
|
|
|
8 |
buttonWidth: '180px',
|
|
|
9 |
numberDisplayed: 1,
|
|
|
10 |
nonSelectedText: 'AuthUsers',
|
|
|
11 |
nSelectedText: ' - AuthUser Selected',
|
|
|
12 |
allSelectedText: 'All AuthUser Selected',
|
|
|
13 |
enableFiltering: true,
|
|
|
14 |
enableCaseInsensitiveFiltering : true
|
|
|
15 |
});
|
| 25570 |
tejbeer |
16 |
|
|
|
17 |
$('#partner').multiselect({
|
|
|
18 |
includeSelectAllOption: true,
|
|
|
19 |
multiple:true,
|
|
|
20 |
maxHeight: 200,
|
|
|
21 |
buttonWidth: '180px',
|
|
|
22 |
numberDisplayed: 1,
|
|
|
23 |
nonSelectedText: 'Partners',
|
|
|
24 |
nSelectedText: ' - Partners Selected',
|
|
|
25 |
allSelectedText: 'All Partners Selected',
|
|
|
26 |
enableFiltering: true,
|
|
|
27 |
enableCaseInsensitiveFiltering : true
|
|
|
28 |
});
|
| 24417 |
govind |
29 |
$('#regionPosition').multiselect({
|
|
|
30 |
includeSelectAllOption: true,
|
|
|
31 |
multiple:true,
|
|
|
32 |
maxHeight: 200,
|
|
|
33 |
buttonWidth: '180px',
|
|
|
34 |
numberDisplayed: 1,
|
|
|
35 |
nonSelectedText: 'Region',
|
|
|
36 |
nSelectedText: ' - Region Selected',
|
|
|
37 |
allSelectedText: 'All Region Selected',
|
|
|
38 |
enableFiltering: true,
|
|
|
39 |
enableCaseInsensitiveFiltering : true
|
|
|
40 |
});
|
|
|
41 |
$('#escalationType').multiselect({
|
|
|
42 |
includeSelectAllOption: true,
|
|
|
43 |
multiple:true,
|
|
|
44 |
maxHeight: 200,
|
|
|
45 |
buttonWidth: '180px',
|
|
|
46 |
numberDisplayed: 1,
|
|
|
47 |
nonSelectedText: 'EscalationType',
|
|
|
48 |
nSelectedText: ' - EscalationType Selected',
|
|
|
49 |
allSelectedText: 'All EscalationType Selected',
|
|
|
50 |
enableFiltering: true,
|
|
|
51 |
enableCaseInsensitiveFiltering : true
|
|
|
52 |
});
|
|
|
53 |
$('#ticketCategoryPosition').multiselect({
|
|
|
54 |
includeSelectAllOption: true,
|
|
|
55 |
multiple:true,
|
|
|
56 |
maxHeight: 200,
|
|
|
57 |
buttonWidth: '180px',
|
|
|
58 |
numberDisplayed: 1,
|
|
|
59 |
nonSelectedText: 'Category',
|
|
|
60 |
nSelectedText: ' - Category Selected',
|
|
|
61 |
allSelectedText: 'All Category Selected',
|
|
|
62 |
enableFiltering: true,
|
|
|
63 |
enableCaseInsensitiveFiltering : true
|
|
|
64 |
});
|
| 25570 |
tejbeer |
65 |
|
|
|
66 |
$('.partners').multiselect({
|
|
|
67 |
includeSelectAllOption: true,
|
|
|
68 |
multiple:true,
|
|
|
69 |
maxHeight: 200,
|
|
|
70 |
buttonWidth: '180px',
|
|
|
71 |
numberDisplayed: 1,
|
|
|
72 |
nonSelectedText: 'Partners',
|
|
|
73 |
nSelectedText: ' - Users Selected',
|
|
|
74 |
allSelectedText: 'All Users Selected',
|
|
|
75 |
enableFiltering: true,
|
|
|
76 |
enableCaseInsensitiveFiltering : true
|
|
|
77 |
});
|
|
|
78 |
|
| 24417 |
govind |
79 |
});
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
</script>
|
|
|
83 |
<section class="wrapper">
|
|
|
84 |
<div class="row">
|
|
|
85 |
<div class="col-lg-12">
|
|
|
86 |
<h3 class="page-header"><i class="icon_document_alt"></i>TICKET</h3>
|
|
|
87 |
<ol class="breadcrumb">
|
|
|
88 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
89 |
<li><i class="icon_document_alt"></i>Create Position</li>
|
|
|
90 |
</ol>
|
|
|
91 |
</div>
|
|
|
92 |
</div>
|
|
|
93 |
<form id="create-ticket-category-form">
|
|
|
94 |
<div class = "row">
|
|
|
95 |
<div class="col-lg-2 form-group">
|
|
|
96 |
<select class="form-control input-sm" id = "authUser" name="authUser" placeholder="AuthUser">
|
|
|
97 |
<option value="" disabled selected>AuthUser</option>
|
|
|
98 |
#foreach($authUser in $authUsers)
|
|
|
99 |
<option value="$authUser.getId()">$authUser.getFirstName()</option>
|
|
|
100 |
#end
|
|
|
101 |
</select>
|
|
|
102 |
</div>
|
|
|
103 |
<div class="col-lg-2 form-group">
|
|
|
104 |
<select class="form-control input-sm" id = "ticketCategoryPosition" name="ticketCategoryPosition" placeholder="Category">
|
|
|
105 |
<option value="" disabled selected>Category</option>
|
|
|
106 |
#foreach($ticketCategory in $ticketCategories)
|
|
|
107 |
<option value="$ticketCategory.getId()">$ticketCategory.getName()</option>
|
|
|
108 |
#end
|
|
|
109 |
</select>
|
|
|
110 |
</div>
|
|
|
111 |
<div class="col-lg-2 form-group">
|
|
|
112 |
<select class="form-control input-sm" id = "escalationType" name="escalationType" placeholder="escalationType">
|
|
|
113 |
<option value="" disabled selected>EscalationType</option>
|
|
|
114 |
#foreach($escalationType in $escalationTypes)
|
|
|
115 |
<option value="$escalationType">$escalationType</option>
|
|
|
116 |
#end
|
|
|
117 |
</select>
|
|
|
118 |
</div>
|
|
|
119 |
<div class="col-lg-2 form-group">
|
|
|
120 |
<select class="form-control input-sm" id = "regionPosition" name="regionPosition" placeholder="region">
|
|
|
121 |
<option value="" disabled selected>Region</option>
|
|
|
122 |
#foreach($region in $regions)
|
|
|
123 |
<option value="$region.getId()">$region.getName()</option>
|
|
|
124 |
#end
|
|
|
125 |
</select>
|
|
|
126 |
</div>
|
| 25570 |
tejbeer |
127 |
|
|
|
128 |
<div class="col-lg-2 form-group" id="partner-subregion-container">
|
|
|
129 |
<select class="form-control input-sm" id = "partner" name="partner" placeholder="Type" multiple="multiple">
|
|
|
130 |
</select>
|
|
|
131 |
</div>
|
| 24417 |
govind |
132 |
<div class="col-lg-2">
|
|
|
133 |
<input class="btn btn-primary create-position-button" type="button" value="Create Position">
|
|
|
134 |
</div>
|
|
|
135 |
</div>
|
|
|
136 |
</form>
|
| 24471 |
govind |
137 |
</section>
|
|
|
138 |
<section class="wrapper">
|
|
|
139 |
<div id="position-table">
|
|
|
140 |
<div class="row">
|
|
|
141 |
<div class="col-lg-12">
|
|
|
142 |
<table class="table table-bordered">
|
|
|
143 |
<tbody>
|
|
|
144 |
<tr>
|
|
|
145 |
<th>User</th>
|
|
|
146 |
<th>Category</th>
|
|
|
147 |
<th>Region</th>
|
|
|
148 |
<th>Created TimeStamp</th>
|
|
|
149 |
<th>EscalationType</th>
|
| 25570 |
tejbeer |
150 |
<th>Partners</th>
|
| 24471 |
govind |
151 |
<th>Action</th>
|
| 25570 |
tejbeer |
152 |
|
| 24471 |
govind |
153 |
</tr>
|
|
|
154 |
#if(!$positions.isEmpty())
|
|
|
155 |
#foreach($position in $positions)
|
|
|
156 |
<tr>
|
|
|
157 |
<td>$authUserIdAndAuthUserMap.get($position.getAuthUserId()).getFirstName()</td>
|
|
|
158 |
#if($position.getCategoryId()==0)
|
|
|
159 |
<td>All Category</td>
|
|
|
160 |
#else
|
|
|
161 |
<td>$categoryIdAndCategoryMap.get($position.getCategoryId()).getName()</td>
|
|
|
162 |
#end
|
|
|
163 |
#if($position.getRegionId()==0)
|
|
|
164 |
<td>All Region</td>
|
|
|
165 |
#else
|
|
|
166 |
<td>$regionIdAndRegionMap.get($position.getRegionId()).getName()</td>
|
|
|
167 |
#end
|
|
|
168 |
<td>$position.getFormattedCreateTimestamp()</td>
|
|
|
169 |
<td>$position.getEscalationType()</td>
|
| 25570 |
tejbeer |
170 |
<td>
|
|
|
171 |
<select class="form-control input-sm partners" id = "partners" name="partners" placeholder="partners" multiple="multiple">
|
|
|
172 |
|
|
|
173 |
<option value="0">All Partners</option>
|
|
|
174 |
#foreach($posId in $positionIdAndpartnerRegionMap.get($position.getRegionId()))
|
|
|
175 |
#if($positionIdAndCustomRetailerMap.get($position.getId()).contains($posId))
|
|
|
176 |
<option value="$posId.getPartnerId()" selected>$posId.getBusinessName()</option>
|
|
|
177 |
#else
|
|
|
178 |
<option value="$posId.getPartnerId()">$posId.getBusinessName()</option>
|
|
|
179 |
#end
|
|
|
180 |
#end
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
</select>
|
|
|
184 |
|
|
|
185 |
<button class="btn btn-primary update-position" data-positionid="$position.getId()" data-regionid="$position.getRegionId()">Update</button>
|
|
|
186 |
</td>
|
| 24471 |
govind |
187 |
<td><button class="btn btn-primary remove-position" data-positionid="$position.getId()">Remove</button></td>
|
|
|
188 |
</tr>
|
|
|
189 |
#end
|
|
|
190 |
#else
|
|
|
191 |
<tr>
|
|
|
192 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
|
|
193 |
</tr>
|
|
|
194 |
#end
|
|
|
195 |
</tbody>
|
|
|
196 |
</table>
|
|
|
197 |
</div>
|
|
|
198 |
</div>
|
|
|
199 |
</div>
|
|
|
200 |
#if(!$positions.isEmpty())
|
|
|
201 |
<div class="row" id="positions-paginated">
|
|
|
202 |
<div class="col-lg-9">
|
|
|
203 |
<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
|
|
|
204 |
</div>
|
|
|
205 |
<div class="col-lg-3" style="text-align:right;">
|
|
|
206 |
<div class="btn-group" style="width:40%">
|
|
|
207 |
<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
|
|
|
208 |
</div>
|
|
|
209 |
<div class="btn-group" style="width:40%">
|
|
|
210 |
#if($end >= $size)
|
|
|
211 |
<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
|
|
|
212 |
#else
|
|
|
213 |
<button class="btn btn-primary next" style="width:100%">Next</button>
|
|
|
214 |
#end
|
|
|
215 |
</div>
|
|
|
216 |
</div>
|
|
|
217 |
</div>
|
|
|
218 |
#end
|
|
|
219 |
</section>
|
|
|
220 |
<div id="position-details-container" style="background:white;background-color:white;">
|
|
|
221 |
</div>
|