Subversion Repositories SmartDukaan

Rev

Rev 3168 | Rev 3269 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
            </tr>
20
        </thead>
21
        <tbody>
22
            #foreach($ticket in $action.getTickets())
23
            #set( $ticketId = $ticket.getId() )
24
            #set( $user = $action.getUser($ticket.getCustomerId()) )
25
            #set($openDate = $action.convertDate($ticket.getOpenDate()))
26
            #set($closeDate = $action.convertDate($ticket.getCloseDate()))
27
            <tr id="ticket-row-$ticketId">
28
                <td>
29
                    <a alt="Show Ticket Details" title="Show Ticket Details" href="#" userId="$action.getUserId()" ticketId="$ticketId" class="show-ticket-details">
30
                        $ticketId
31
                    </a>
32
                </td>
3228 mandeep.dh 33
                <td>
34
                    <a alt="Show Customer Details" title="Show Customer Details" href="/crm?email=$user.getEmail()">
35
                        $user.getEmail()
36
                    </a>
37
                </td>
38
                <td >$ticket.getCategory().name()</td>
3137 mandeep.dh 39
                <td title="$openDate" class="truncated-text">$openDate</td>
40
                <td class="truncated-text" title="$closeDate">$closeDate</td>
41
                <td class="truncated-text">
42
                    #if($ticket.isSetAssigneeId() && $ticket.getAssigneeId() != 0)
43
                        $action.getAgent($ticket.getAssigneeId()).getEmailId()
44
                    #else
45
                        N/A
46
                    #end
47
                </td>
3228 mandeep.dh 48
                <td >$ticket.getStatus().name()</td>
49
                <td >$ticket.getPriority().name()</td>
3137 mandeep.dh 50
            </tr>
51
            #end
52
        </tbody>
53
    </table>
54
</div>
55
<div id="bottom-infopane">
56
</div>
57
#end
3168 mandeep.dh 58
<script>
3137 mandeep.dh 59
$(document).ready(function() {
3228 mandeep.dh 60
    $(".truncated-text").truncate({width: 50, addtitle: true});
3137 mandeep.dh 61
});
62
</script>