Subversion Repositories SmartDukaan

Rev

Rev 3947 | 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())
4241 anupam.sin 21
					<th>Customer Id</th>
22
				#else
23
					<th>Description</th>
3405 mandeep.dh 24
                #end
3137 mandeep.dh 25
                <th>Category</th>
26
                <th>Date Opened</th>
27
                <th>Date Closed</th>
28
                <th>Assignee</th>
29
                <th>Status</th>
30
                <th>Priority</th>
31
            </tr>
32
        </thead>
33
        <tbody>
34
            #foreach($ticket in $action.getTickets())
35
            #set( $ticketId = $ticket.getId() )
36
            #set($openDate = $action.convertDate($ticket.getOpenDate()))
37
            #set($closeDate = $action.convertDate($ticket.getCloseDate()))
38
            <tr id="ticket-row-$ticketId">
39
                <td>
3422 mandeep.dh 40
                    <a alt="Show Ticket Details" title="Show Ticket Details" href="#" ticketId="$ticketId" class="show-ticket-details">
3137 mandeep.dh 41
                        $ticketId
42
                    </a>
43
                </td>
3405 mandeep.dh 44
 
45
                #if(!$action.getUserId())
3390 mandeep.dh 46
                <td>
3405 mandeep.dh 47
                    #if($ticket.isSetCustomerId())
48
                    #set( $user = $action.getUser($ticket.getCustomerId()) )
3228 mandeep.dh 49
                    <a alt="Show Customer Details" title="Show Customer Details" href="/crm?email=$user.getEmail()">
4241 anupam.sin 50
                        <span class="truncated-text" truncatedTextWidth="125">
3390 mandeep.dh 51
                            $user.getEmail()
52
                        </span>
3228 mandeep.dh 53
                    </a>
3405 mandeep.dh 54
                    #else
4241 anupam.sin 55
                    <span class="truncated-text" truncatedTextWidth="125">
3390 mandeep.dh 56
                        $ticket.getCustomerEmailId()
57
                    </span>
3405 mandeep.dh 58
                    #end
59
                </td>
4241 anupam.sin 60
				#else
61
					<td class="truncated-text" truncatedTextWidth="125">
62
						$ticket.getDescription()
63
					</td>
3269 mandeep.dh 64
                #end
4241 anupam.sin 65
                <td class="truncated-text" truncatedTextWidth="155">$ticket.getCategory().name()</td>
66
                <td title="$openDate"  class="truncated-text" truncatedTextWidth="90">$openDate</td>
67
                <td title="$closeDate" class="truncated-text" truncatedTextWidth="90">$closeDate</td>
68
                <td class="truncated-text" truncatedTextWidth="85">
3137 mandeep.dh 69
                    #if($ticket.isSetAssigneeId() && $ticket.getAssigneeId() != 0)
70
                        $action.getAgent($ticket.getAssigneeId()).getEmailId()
71
                    #else
72
                        N/A
73
                    #end
74
                </td>
3228 mandeep.dh 75
                <td >$ticket.getStatus().name()</td>
76
                <td >$ticket.getPriority().name()</td>
3137 mandeep.dh 77
            </tr>
78
            #end
79
        </tbody>
80
    </table>
81
</div>
82
<div id="bottom-infopane">
83
</div>
3947 mandeep.dh 84
#end