Subversion Repositories SmartDukaan

Rev

Rev 3339 | Rev 3405 | 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($openDate = $action.convertDate($ticket.getOpenDate()))
25
            #set($closeDate = $action.convertDate($ticket.getCloseDate()))
26
            <tr id="ticket-row-$ticketId">
27
                <td>
3269 mandeep.dh 28
                    <a alt="Show Ticket Details" title="Show Ticket Details" href="#" userEmailId="$ticket.getCustomerEmailId()" userId="$action.getUserId()" ticketId="$ticketId" class="show-ticket-details">
3137 mandeep.dh 29
                        $ticketId
30
                    </a>
31
                </td>
3390 mandeep.dh 32
                <td>
33
                #if($ticket.isSetCustomerId())
3269 mandeep.dh 34
                #set( $user = $action.getUser($ticket.getCustomerId()) )
3228 mandeep.dh 35
                    <a alt="Show Customer Details" title="Show Customer Details" href="/crm?email=$user.getEmail()">
3390 mandeep.dh 36
                        <span class="truncated-text">
37
                            $user.getEmail()
38
                        </span>
3228 mandeep.dh 39
                    </a>
3269 mandeep.dh 40
                #else
3390 mandeep.dh 41
                    <span class="truncated-text">
42
                        $ticket.getCustomerEmailId()
43
                    </span>
3269 mandeep.dh 44
                #end
3390 mandeep.dh 45
                </td>
3339 mandeep.dh 46
                <td class="truncated-text">$ticket.getCategory().name()</td>
3269 mandeep.dh 47
                <td title="$openDate"  class="truncated-text">$openDate</td>
48
                <td title="$closeDate" class="truncated-text">$closeDate</td>
3137 mandeep.dh 49
                <td class="truncated-text">
50
                    #if($ticket.isSetAssigneeId() && $ticket.getAssigneeId() != 0)
51
                        $action.getAgent($ticket.getAssigneeId()).getEmailId()
52
                    #else
53
                        N/A
54
                    #end
55
                </td>
3228 mandeep.dh 56
                <td >$ticket.getStatus().name()</td>
57
                <td >$ticket.getPriority().name()</td>
3137 mandeep.dh 58
            </tr>
59
            #end
60
        </tbody>
61
    </table>
62
</div>
63
<div id="bottom-infopane">
64
</div>
65
#end
3168 mandeep.dh 66
<script>
3390 mandeep.dh 67
$(document).ready(truncateText(75));
68
</script>