| 3137 |
mandeep.dh |
1 |
#set($messages = $action.getActionErrors())
|
|
|
2 |
#if($messages && $messages.size() != 0)
|
|
|
3 |
#foreach($message in $messages)
|
|
|
4 |
$message <br/>
|
|
|
5 |
#end
|
|
|
6 |
#else
|
|
|
7 |
<div id="top-infopane">
|
|
|
8 |
<table id="tickets" class="display">
|
|
|
9 |
<thead>
|
|
|
10 |
<tr>
|
|
|
11 |
<th>Ticket Id</th>
|
|
|
12 |
<th>Customer Id</th>
|
|
|
13 |
<th>Category</th>
|
|
|
14 |
<th>Date Opened</th>
|
|
|
15 |
<th>Date Closed</th>
|
|
|
16 |
<th>Assignee</th>
|
|
|
17 |
<th>Status</th>
|
|
|
18 |
<th>Priority</th>
|
|
|
19 |
<th>Mobile Number</th>
|
|
|
20 |
</tr>
|
|
|
21 |
</thead>
|
|
|
22 |
<tbody>
|
|
|
23 |
#foreach($ticket in $action.getTickets())
|
|
|
24 |
#set( $ticketId = $ticket.getId() )
|
|
|
25 |
#set( $user = $action.getUser($ticket.getCustomerId()) )
|
|
|
26 |
#set($openDate = $action.convertDate($ticket.getOpenDate()))
|
|
|
27 |
#set($closeDate = $action.convertDate($ticket.getCloseDate()))
|
|
|
28 |
<tr id="ticket-row-$ticketId">
|
|
|
29 |
<td>
|
|
|
30 |
<a alt="Show Ticket Details" title="Show Ticket Details" href="#" userId="$action.getUserId()" ticketId="$ticketId" class="show-ticket-details">
|
|
|
31 |
$ticketId
|
|
|
32 |
</a>
|
|
|
33 |
</td>
|
|
|
34 |
<td class="truncated-text">$user.getEmail()</td>
|
|
|
35 |
<td class="truncated-text">$ticket.getCategory().name()</td>
|
|
|
36 |
<td title="$openDate" class="truncated-text">$openDate</td>
|
|
|
37 |
<td class="truncated-text" title="$closeDate">$closeDate</td>
|
|
|
38 |
<td class="truncated-text">
|
|
|
39 |
#if($ticket.isSetAssigneeId() && $ticket.getAssigneeId() != 0)
|
|
|
40 |
$action.getAgent($ticket.getAssigneeId()).getEmailId()
|
|
|
41 |
#else
|
|
|
42 |
N/A
|
|
|
43 |
#end
|
|
|
44 |
</td>
|
|
|
45 |
<td class="truncated-text">$ticket.getStatus().name()</td>
|
|
|
46 |
<td class="truncated-text">$ticket.getPriority().name()</td>
|
|
|
47 |
<td class="truncated-text">$user.getMobileNumber()</td>
|
|
|
48 |
</tr>
|
|
|
49 |
#end
|
|
|
50 |
</tbody>
|
|
|
51 |
</table>
|
|
|
52 |
</div>
|
|
|
53 |
<div id="bottom-infopane">
|
|
|
54 |
</div>
|
|
|
55 |
#end
|
|
|
56 |
<script >
|
|
|
57 |
$(document).ready(function() {
|
|
|
58 |
$(".truncated-text").truncate({width: 80, addtitle: true});
|
|
|
59 |
});
|
|
|
60 |
</script>
|