Subversion Repositories SmartDukaan

Rev

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

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