Subversion Repositories SmartDukaan

Rev

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