| 24417 |
govind |
1 |
<script>
|
|
|
2 |
$('#myModal').on('hidden.bs.modal', function (e) {
|
| 24469 |
govind |
3 |
$(".activity-container .modal-body").empty();
|
| 24417 |
govind |
4 |
});
|
| 24787 |
govind |
5 |
$(function(){
|
|
|
6 |
getPartnerAheadOptions($("#typeaheadpartnernameforassignee"),function(selectedPartner){
|
|
|
7 |
$("#assignee-ticket-search-by-partner-name").data('id',selectedPartner.partnerId);
|
|
|
8 |
$("#assignee-partner-name-input").val(selectedPartner.partnerId);
|
|
|
9 |
});
|
|
|
10 |
});
|
| 24417 |
govind |
11 |
</script>
|
|
|
12 |
<style>
|
|
|
13 |
.incoming_msg_img {
|
|
|
14 |
display: inline-block;
|
|
|
15 |
width: 6%;
|
|
|
16 |
}
|
|
|
17 |
|
|
|
18 |
.incoming_msg_img img {
|
|
|
19 |
width: 100%;
|
|
|
20 |
}
|
|
|
21 |
.sent_msg p {
|
|
|
22 |
background:#b8d1f3;
|
|
|
23 |
border-radius: 12px 15px 15px 0;
|
|
|
24 |
font-size: 14px;
|
|
|
25 |
margin: 0;
|
|
|
26 |
color: black;
|
|
|
27 |
padding: 5px 10px 5px 12px;
|
| 24569 |
govind |
28 |
word-break: break-all;
|
| 24417 |
govind |
29 |
width: 100%;
|
|
|
30 |
}
|
|
|
31 |
|
|
|
32 |
.outgoing_msg {
|
|
|
33 |
overflow: hidden;
|
|
|
34 |
margin: 26px 0 26px;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
.sent_msg {
|
|
|
38 |
float: right;
|
|
|
39 |
width: 46%;
|
|
|
40 |
}
|
|
|
41 |
.received_msg {
|
|
|
42 |
display: inline-block;
|
|
|
43 |
padding: 0 0 0 10px;
|
|
|
44 |
vertical-align: top;
|
|
|
45 |
width: 50%;
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
.received_withd_msg p {
|
|
|
49 |
background: #dae5f4 none repeat scroll 0 0;
|
|
|
50 |
border-radius: 0 15px 15px 15px;
|
|
|
51 |
color: #646464;
|
|
|
52 |
font-size: 14px;
|
|
|
53 |
margin: 0;
|
|
|
54 |
padding: 5px 10px 5px 12px;
|
| 24569 |
govind |
55 |
word-break: break-all;
|
| 24417 |
govind |
56 |
width: 100%;
|
|
|
57 |
}
|
|
|
58 |
|
|
|
59 |
.time_date {
|
|
|
60 |
color: black;
|
|
|
61 |
display: block;
|
|
|
62 |
font-size: 12px;
|
|
|
63 |
margin: 8px 0 0;
|
|
|
64 |
}
|
|
|
65 |
.blue_box, .green_box,.white_box {
|
|
|
66 |
display: block;
|
|
|
67 |
clear:both;
|
|
|
68 |
}
|
|
|
69 |
.modal-dialog,
|
| 24530 |
amit.gupta |
70 |
{
|
| 24417 |
govind |
71 |
/* 80% of window height */
|
| 24530 |
amit.gupta |
72 |
max-height: 80%;
|
| 24417 |
govind |
73 |
}
|
|
|
74 |
|
|
|
75 |
.modal-body {
|
|
|
76 |
/* 100% = dialog height, 120px = header + footer */
|
| 24638 |
govind |
77 |
max-height:70vh;
|
| 24530 |
amit.gupta |
78 |
overflow-y: auto;
|
| 24417 |
govind |
79 |
}
|
|
|
80 |
.outgoing_msg:after,.incoming_msg:after,.white_box:after {
|
|
|
81 |
content: '\A';
|
|
|
82 |
white-space: pre;
|
|
|
83 |
}
|
|
|
84 |
.incoming_msg:before,.white_box:before {
|
|
|
85 |
content: '\A';
|
|
|
86 |
white-space: pre;
|
|
|
87 |
}
|
|
|
88 |
.white_box span {
|
|
|
89 |
background-color:#ebebeb;
|
|
|
90 |
background-size: 5px 5px;
|
|
|
91 |
word-break: break-all;
|
|
|
92 |
color: black;
|
|
|
93 |
display: block;
|
|
|
94 |
padding:10px 10px;
|
|
|
95 |
text-align: center
|
|
|
96 |
}
|
|
|
97 |
</style>
|
|
|
98 |
<section class="wrapper">
|
|
|
99 |
<div class="row">
|
|
|
100 |
<div class="col-lg-12">
|
|
|
101 |
<h3 class="page-header"><i class="icon_document_alt"></i>TICKET</h3>
|
|
|
102 |
<ol class="breadcrumb">
|
|
|
103 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
104 |
<li><i class="icon_document_alt"></i>My Ticket</li>
|
|
|
105 |
</ol>
|
|
|
106 |
</div>
|
|
|
107 |
</div>
|
| 24699 |
govind |
108 |
<div class = "row">
|
|
|
109 |
<div class="col-lg-2 form-group">
|
|
|
110 |
<select class="form-control input-sm" id = "ticketStatus" name="ticketStatus" placeholder="Type">
|
|
|
111 |
#foreach($ticketStatus in $ticketStatusValues)
|
| 24791 |
govind |
112 |
#if($ticketStatus=="RESOLVED")
|
|
|
113 |
#if($roleType)
|
|
|
114 |
#if($selectedticketStatus==$ticketStatus)
|
|
|
115 |
<option value="$ticketStatus" selected>$ticketStatus</option>
|
|
|
116 |
#else
|
|
|
117 |
<option value="$ticketStatus">$ticketStatus</option>
|
|
|
118 |
#end
|
|
|
119 |
#end
|
|
|
120 |
#else
|
|
|
121 |
#if($selectedticketStatus==$ticketStatus)
|
|
|
122 |
<option value="$ticketStatus" selected>$ticketStatus</option>
|
|
|
123 |
#else
|
|
|
124 |
<option value="$ticketStatus">$ticketStatus</option>
|
|
|
125 |
#end
|
|
|
126 |
#end
|
| 24699 |
govind |
127 |
#end
|
|
|
128 |
</select>
|
|
|
129 |
</div>
|
|
|
130 |
<div class="col-lg-2 form-group">
|
|
|
131 |
<select class="form-control input-sm" id = "orderBy" name="orderBy" placeholder="Type">
|
|
|
132 |
#foreach($orderby in $orderByValues)
|
| 24791 |
govind |
133 |
#if($orderby=="UNSORTED")
|
|
|
134 |
#else
|
|
|
135 |
#if($selectedorderby==$orderby)
|
|
|
136 |
#if($orderby=="ASCENDING")
|
|
|
137 |
<option value="$orderby" selected>OLD TO NEW</option>
|
|
|
138 |
#else
|
|
|
139 |
<option value="$orderby" selected>NEW TO OLD</option>
|
|
|
140 |
#end
|
|
|
141 |
#else
|
|
|
142 |
#if($orderby=="ASCENDING")
|
|
|
143 |
<option value="$orderby">OLD TO NEW</option>
|
|
|
144 |
#else
|
|
|
145 |
<option value="$orderby">NEW TO OLD</option>
|
|
|
146 |
#end
|
|
|
147 |
#end
|
|
|
148 |
#end
|
| 24699 |
govind |
149 |
#end
|
|
|
150 |
</select>
|
|
|
151 |
</div>
|
| 24787 |
govind |
152 |
#if($roleType)
|
|
|
153 |
<div class="col-lg-6 form-group pull-right">
|
|
|
154 |
<div class="col-lg-6">
|
|
|
155 |
<select class="form-control" id = "assigneesearchType" name = "assigneesearchType" placeholder="Search Type">
|
|
|
156 |
<option value="" disabled selected>Search Type</option>
|
|
|
157 |
#foreach($searchType1 in $ticketSearchTypes)
|
|
|
158 |
#if($ticketSearchType.getValue()==$searchType1.getValue())
|
|
|
159 |
<option value="$searchType1" selected>$ticketSearchType.getValue()</option>
|
|
|
160 |
#else
|
|
|
161 |
<option value="$searchType1">$searchType1.getValue()</option>
|
|
|
162 |
#end
|
|
|
163 |
#end
|
|
|
164 |
</select>
|
|
|
165 |
</div>
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
<div class="col-lg-6">
|
|
|
169 |
<input type="hidden" id="assignee-partner-name-input" name="assignee-partner-name-input" value="">
|
|
|
170 |
<div class="assigneebyPartnerName" style="display: none;">
|
|
|
171 |
<div class="input-group">
|
|
|
172 |
<input placeholder="Partner Name" type="text" class="typeahead form-control" id="typeaheadpartnernameforassignee" value="" name="Item" data-provide="typeahead" autocomplete="off">
|
|
|
173 |
<span class="input-group-btn">
|
|
|
174 |
<button class="btn btn-primary" id="assignee-ticket-search-by-partner-name" type="button" data-id="">Go!</button>
|
|
|
175 |
</span>
|
|
|
176 |
</div>
|
|
|
177 |
</div>
|
|
|
178 |
<div class="assigneebyTicketId" style="display: none;">
|
|
|
179 |
<div class="input-group">
|
|
|
180 |
<input placeholder="Ticket Id" type="text" class="form-control" id="assignee-search-by-ticketId" value="">
|
|
|
181 |
<span class="input-group-btn">
|
|
|
182 |
<button class="btn btn-primary" id="assignee-retailer-details-search-button-by-ticketId" type="button">Go!</button>
|
|
|
183 |
</span>
|
|
|
184 |
</div>
|
|
|
185 |
</div>
|
|
|
186 |
</div>
|
|
|
187 |
#end
|
|
|
188 |
</div>
|
| 24699 |
govind |
189 |
</div>
|
| 24417 |
govind |
190 |
<div id="my-ticket-table">
|
|
|
191 |
<div class="row">
|
|
|
192 |
<div class="col-lg-12">
|
|
|
193 |
<table class="table table-bordered">
|
|
|
194 |
<tbody>
|
|
|
195 |
<tr>
|
| 24569 |
govind |
196 |
<th>Ticket Id</th>
|
| 24417 |
govind |
197 |
#if($roleType)
|
|
|
198 |
<th>Partner</th>
|
|
|
199 |
#end
|
|
|
200 |
<th>SubCategory</th>
|
|
|
201 |
<th>Created TimeStamp</th>
|
|
|
202 |
#if($roleType)
|
|
|
203 |
<th>Action</th>
|
|
|
204 |
#else
|
| 24638 |
govind |
205 |
<th>Action</th>
|
| 24417 |
govind |
206 |
#end
|
|
|
207 |
</tr>
|
| 24569 |
govind |
208 |
#if($tickets.size()>0)
|
| 24417 |
govind |
209 |
#foreach($ticket in $tickets)
|
|
|
210 |
<tr>
|
| 24569 |
govind |
211 |
<td>$ticket.getId()</td>
|
| 24417 |
govind |
212 |
#if($roleType)
|
|
|
213 |
<td>$fofoIdsAndCustomRetailer.get($ticket.getFofoId()).getBusinessName()</td>
|
|
|
214 |
#end
|
| 24824 |
govind |
215 |
<td><a href="#" data-toggle="modal" data-target="#myModal" data-ticketid="$ticket.getId()" data-internal="true" data-role="$roleType" id="activities" data-assignee="$authUserIdAndAuthUserMap.get($ticket.getId()).getFirstName()">$subCategoryIdAndSubCategoryMap.get($ticket.getSubCategoryId()).getName()</a></td>
|
| 24417 |
govind |
216 |
<td>$ticket.getFormattedCreateTimestamp()</td>
|
|
|
217 |
#if($roleType)
|
|
|
218 |
#if($ticket.getCloseTimestamp())
|
|
|
219 |
<td>$ticket.getFormattedCloseTimestamp()</td>
|
|
|
220 |
#else
|
| 24620 |
govind |
221 |
#if($ticket.getLastActivity()=="RESOLVED")
|
| 24791 |
govind |
222 |
<td>Resolved</td>
|
| 24620 |
govind |
223 |
#else
|
|
|
224 |
<td><button class="btn btn-primary" id="ticket-last-activity" data-ticketid="$ticket.getId()" data-activity="$resolved">Resolved</button></td>
|
|
|
225 |
#end
|
| 24417 |
govind |
226 |
#end
|
|
|
227 |
#else
|
|
|
228 |
#if($ticket.getCloseTimestamp())
|
|
|
229 |
<td>Closed</td>
|
|
|
230 |
#else
|
| 24620 |
govind |
231 |
#if($ticket.getLastActivity()=="RESOLVED")
|
| 24638 |
govind |
232 |
<td><button class="btn btn-primary" id="ticket-last-activity" data-ticketid="$ticket.getId()" data-activity="$resolved-accepted">Resolved</button>
|
|
|
233 |
<button class="btn btn-danger" id="ticket-last-activity" data-ticketid="$ticket.getId()" data-activity="$resolved-rejected">Reopen</button></td>
|
| 24620 |
govind |
234 |
#else
|
| 24638 |
govind |
235 |
<td><button class="btn btn-primary" id="ticket-last-activity" data-ticketid="$ticket.getId()" data-activity="$resolved-accepted" disabled>Resolved</button>
|
|
|
236 |
<button class="btn btn-danger" id="ticket-last-activity" data-ticketid="$ticket.getId()" data-activity="$resolved-rejected" disabled>Reopen</button></td>
|
| 24620 |
govind |
237 |
#end
|
|
|
238 |
#end
|
|
|
239 |
#end
|
| 24417 |
govind |
240 |
</tr>
|
|
|
241 |
#end
|
|
|
242 |
#else
|
|
|
243 |
<tr>
|
|
|
244 |
<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
|
| 24569 |
govind |
245 |
</tr>
|
| 24417 |
govind |
246 |
#end
|
|
|
247 |
</tbody>
|
|
|
248 |
</table>
|
|
|
249 |
</div>
|
|
|
250 |
</div>
|
|
|
251 |
</div>
|
|
|
252 |
#if(!$tickets.isEmpty())
|
|
|
253 |
<div class="row" id="tickets-paginated">
|
|
|
254 |
<div class="col-lg-9">
|
|
|
255 |
<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
|
|
|
256 |
</div>
|
|
|
257 |
<div class="col-lg-3" style="text-align:right;">
|
|
|
258 |
<div class="btn-group" style="width:40%">
|
|
|
259 |
<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
|
|
|
260 |
</div>
|
|
|
261 |
<div class="btn-group" style="width:40%">
|
|
|
262 |
#if($end >= $size)
|
|
|
263 |
<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
|
|
|
264 |
#else
|
|
|
265 |
<button class="btn btn-primary next" style="width:100%">Next</button>
|
|
|
266 |
#end
|
|
|
267 |
</div>
|
|
|
268 |
</div>
|
|
|
269 |
</div>
|
|
|
270 |
#end
|
|
|
271 |
</section>
|
|
|
272 |
<div id="ticket-details-container" style="background:white;background-color:white;">
|
|
|
273 |
</div>
|
| 24469 |
govind |
274 |
<div class="activity-container">
|
| 24417 |
govind |
275 |
<div class="modal fade" id="myModal" role="dialog" >
|
|
|
276 |
<div class="modal-dialog">
|
|
|
277 |
<!-- Modal content-->
|
|
|
278 |
<div class="modal-content">
|
|
|
279 |
<div class="modal-header">
|
|
|
280 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
281 |
<h4 class="modal-title">Message History</h4>
|
|
|
282 |
</div>
|
|
|
283 |
<div class="modal-body">
|
|
|
284 |
</div><br><br>
|
|
|
285 |
<div class="modal-footer">
|
| 24824 |
govind |
286 |
<div class="col-lg-8 form-group">
|
|
|
287 |
<input type="hidden" id="ticketIdforactivity">
|
|
|
288 |
<input type="hidden" id="assigneeUser">
|
|
|
289 |
<input type="hidden" id="role" value="">
|
|
|
290 |
|
| 24417 |
govind |
291 |
<textarea class="form-control rounded-0" id="activityMessage" rows="2"></textarea>
|
|
|
292 |
</div>
|
| 24824 |
govind |
293 |
<div class="col-lg-4">
|
|
|
294 |
<div class="col-lg-7 internalCheckBox">
|
|
|
295 |
<input type="checkbox" name="internalCommunication" id="internalCommunication"> <span style="font-size:12px;font-weight:bold">INTERNAL</b>
|
|
|
296 |
</div>
|
|
|
297 |
<div class="col-lg-5">
|
|
|
298 |
<input class="btn btn-primary submit-message-button" type="button" value="Submit">
|
|
|
299 |
</div>
|
| 24417 |
govind |
300 |
</div>
|
|
|
301 |
</div>
|
|
|
302 |
</div>
|
|
|
303 |
</div>
|
|
|
304 |
</div>
|
|
|
305 |
</div>
|
|
|
306 |
|