Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
3339 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="activity" class="display">
9
        <thead>
10
            <tr>
11
                <th>Activity Id</th>
4142 mandeep.dh 12
                <th>Type</th>
13
                <th>Description</th>
14
                <th>Timestamp</th>
15
                <th>Creator</th>
3405 mandeep.dh 16
                #if($action.getUserId())
17
                #else
18
                <th>Customer Id</th>
19
                #end
4142 mandeep.dh 20
                <th>Ticket Id</th>
5203 amar.kumar 21
                <th>Ticket Status</th>
4142 mandeep.dh 22
                <th>Category</th>
5203 amar.kumar 23
				<th>Contact Number</th>
3339 mandeep.dh 24
            </tr>
25
        </thead>
26
        <tbody>
27
            #foreach($activity in $action.getActivities())
28
            <tr id="activity-row-$activity.getId()">
29
                <td>
30
                    <a alt="Show Activity Details" title="Show Activity Details" href="#" userId="$action.getUserId()" activityId="$activity.getId()" class="show-activity-details">
31
                        $activity.getId()
32
                    </a>
33
                </td>
4241 anupam.sin 34
                <td class="truncated-text" truncatedTextWidth="160">$activity.getType().name()</td>
5203 amar.kumar 35
                <td class="truncated-text" truncatedTextWidth="85"><pre>$activity.getDescription()</pre></td>
36
                <td class="truncated-text" truncatedTextWidth="85">$action.convertDate($activity.getCreationTimestamp())</td>
4241 anupam.sin 37
                <td class="truncated-text" truncatedTextWidth="90">$action.getAgent($activity.getCreatorId()).getEmailId()</td>
3405 mandeep.dh 38
                #if($action.getUserId())
39
                #else
40
                <td >
41
                #if($activity.isSetCustomerId())
42
                    #set($customerEmailId = $action.getUser($activity.getCustomerId()).getEmail())
43
                    <a alt="Show Customer Details" title="Show Customer Details" href="/crm?email=$customerEmailId">
4241 anupam.sin 44
                        <span class="truncated-text" truncatedTextWidth="50">
3405 mandeep.dh 45
                            $customerEmailId
46
                        </span>
47
                    </a>
48
                #else
49
                    #if($activity.getCustomerEmailId())
50
                        $activity.getCustomerEmailId()
51
                    #else
52
                        N/A
53
                    #end
54
                #end
55
                </td>
56
                #end
4142 mandeep.dh 57
                <td>
58
                    #set($ticketId = $activity.getTicketId())
59
                    #if ($activity.isSetTicketId())
60
                        <a alt="Show Ticket Details" title="Show Ticket Details" href="#" userId="$action.getUserId()" ticketId="$ticketId" activityId="$activity.getId()" class="show-ticket-details">
61
                            $ticketId
62
                        </a>
63
                    #else
64
                        N/A
65
                    #end
66
                </td>
5203 amar.kumar 67
				<td >
68
					#if ($activity.isSetTicketStatus())
69
						$activity.getTicketStatus()
70
					#else
71
						N/A
72
					#end
73
                </td>
4241 anupam.sin 74
                <td class="truncated-text" truncatedTextWidth="50">#if($activity.getTicketCategory()) $activity.getTicketCategory().name() #else N/A #end</td>
5203 amar.kumar 75
				<td >
76
					#if ($activity.isSetCustomerMobileNumber())
77
						$activity.getCustomerMobileNumber()
78
					#else
79
						N/A
80
					#end
81
                </td>
3339 mandeep.dh 82
            </tr>
83
            #end
84
        </tbody>
85
    </table>
86
</div>
87
<div id="bottom-infopane">
88
</div>
3499 mandeep.dh 89
#end