Subversion Repositories SmartDukaan

Rev

Rev 3405 | Rev 3499 | 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>
3405 mandeep.dh 12
                #if(!$action.getUserId())
13
                 <th>Customer Id</th>
14
                #end
3137 mandeep.dh 15
                <th>Category</th>
16
                <th>Date Opened</th>
17
                <th>Date Closed</th>
18
                <th>Assignee</th>
19
                <th>Status</th>
20
                <th>Priority</th>
21
            </tr>
22
        </thead>
23
        <tbody>
24
            #foreach($ticket in $action.getTickets())
25
            #set( $ticketId = $ticket.getId() )
26
            #set($openDate = $action.convertDate($ticket.getOpenDate()))
27
            #set($closeDate = $action.convertDate($ticket.getCloseDate()))
28
            <tr id="ticket-row-$ticketId">
29
                <td>
3422 mandeep.dh 30
                    <a alt="Show Ticket Details" title="Show Ticket Details" href="#" ticketId="$ticketId" class="show-ticket-details">
3137 mandeep.dh 31
                        $ticketId
32
                    </a>
33
                </td>
3405 mandeep.dh 34
 
35
                #if(!$action.getUserId())
3390 mandeep.dh 36
                <td>
3405 mandeep.dh 37
                    #if($ticket.isSetCustomerId())
38
                    #set( $user = $action.getUser($ticket.getCustomerId()) )
3228 mandeep.dh 39
                    <a alt="Show Customer Details" title="Show Customer Details" href="/crm?email=$user.getEmail()">
3390 mandeep.dh 40
                        <span class="truncated-text">
41
                            $user.getEmail()
42
                        </span>
3228 mandeep.dh 43
                    </a>
3405 mandeep.dh 44
                    #else
3390 mandeep.dh 45
                    <span class="truncated-text">
46
                        $ticket.getCustomerEmailId()
47
                    </span>
3405 mandeep.dh 48
                    #end
49
                </td>
3269 mandeep.dh 50
                #end
3339 mandeep.dh 51
                <td class="truncated-text">$ticket.getCategory().name()</td>
3269 mandeep.dh 52
                <td title="$openDate"  class="truncated-text">$openDate</td>
53
                <td title="$closeDate" class="truncated-text">$closeDate</td>
3137 mandeep.dh 54
                <td class="truncated-text">
55
                    #if($ticket.isSetAssigneeId() && $ticket.getAssigneeId() != 0)
56
                        $action.getAgent($ticket.getAssigneeId()).getEmailId()
57
                    #else
58
                        N/A
59
                    #end
60
                </td>
3228 mandeep.dh 61
                <td >$ticket.getStatus().name()</td>
62
                <td >$ticket.getPriority().name()</td>
3137 mandeep.dh 63
            </tr>
64
            #end
65
        </tbody>
66
    </table>
67
</div>
68
<div id="bottom-infopane">
69
</div>
70
#end
3168 mandeep.dh 71
<script>
3390 mandeep.dh 72
$(document).ready(truncateText(75));
73
</script>