Subversion Repositories SmartDukaan

Rev

Rev 3405 | Rev 4142 | 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>
12
                <th>Ticket Id</th>
3405 mandeep.dh 13
                #if($action.getUserId())
14
                #else
15
                <th>Customer Id</th>
16
                #end
3339 mandeep.dh 17
                <th>Type</th>
18
                <th>Description</th>
19
                <th>Timestamp</th>
3405 mandeep.dh 20
                <th>Creator</th>
3339 mandeep.dh 21
            </tr>
22
        </thead>
23
        <tbody>
24
            #foreach($activity in $action.getActivities())
25
            <tr id="activity-row-$activity.getId()">
26
                <td>
27
                    <a alt="Show Activity Details" title="Show Activity Details" href="#" userId="$action.getUserId()" activityId="$activity.getId()" class="show-activity-details">
28
                        $activity.getId()
29
                    </a>
30
                </td>
31
                <td>
3405 mandeep.dh 32
                    #set($ticketId = $activity.getTicketId())
3339 mandeep.dh 33
                    #if ($activity.isSetTicketId())
34
                        <a alt="Show Ticket Details" title="Show Ticket Details" href="#" userId="$action.getUserId()" ticketId="$ticketId" activityId="$activity.getId()" class="show-ticket-details">
35
                            $ticketId
36
                        </a>
37
                    #else
38
                        N/A
39
                    #end
40
                </td>
3405 mandeep.dh 41
                #if($action.getUserId())
42
                #else
43
                <td >
44
                #if($activity.isSetCustomerId())
45
                    #set($customerEmailId = $action.getUser($activity.getCustomerId()).getEmail())
46
                    <a alt="Show Customer Details" title="Show Customer Details" href="/crm?email=$customerEmailId">
47
                        <span class="truncated-text">
48
                            $customerEmailId
49
                        </span>
50
                    </a>
51
                #else
52
                    #if($activity.getCustomerEmailId())
53
                        $activity.getCustomerEmailId()
54
                    #else
55
                        N/A
56
                    #end
57
                #end
58
                </td>
59
                #end
3339 mandeep.dh 60
                <td class="truncated-text">$activity.getType().name()</td>
3499 mandeep.dh 61
                <td class="truncated-text"><pre>$activity.getDescription()</pre></td>
3339 mandeep.dh 62
                <td class="truncated-text">$action.convertDate($activity.getCreationTimestamp())</td>
63
                <td class="truncated-text">$action.getAgent($activity.getCreatorId()).getEmailId()</td>
64
            </tr>
65
            #end
66
        </tbody>
67
    </table>
68
</div>
69
<div id="bottom-infopane">
70
</div>
3499 mandeep.dh 71
#end