Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3090 mandeep.dh 1
#set($ticket = $action.getTicket())
2
#set($lastActivity = $action.getLastActivity())
3
#set($ticketId = $ticket.getId())
4
<div >
5
<div id="bottom-infopane-upper">
6
    <form id="update-ticket-form" ticketId="$ticketId" _method="put" method="post" action="">
7
        <table>
8
            <colgroup>
9
                <col width="200px"/>
10
                <col width="250px"/>
11
                <col width="20px"/>
12
                <col width="200px"/>
13
                <col width="250px"/>
14
            </colgroup>
15
            <tr >
16
                <td ><label>Category:</label></td>
17
                <td >
18
                <select name="ticketCategory" class="width10">
19
                    #foreach( $ticketCategory in $action.getTicketCategories() )
20
                        #if($ticketCategory.name() == $lastActivity.getTicketCategory().name())
21
                            <option value="$ticketCategory.name()" selected="selected">$ticketCategory.name()</option>
22
                        #else
23
                            <option value="$ticketCategory.name()">$ticketCategory.name()</option>
24
                        #end
25
                    #end
26
                </select>
27
                </td>
28
                <td></td>
29
                #if($ticket.getOrderId() != 0)
30
                    <td ><label>Order Id:</label></td>
31
                    <td >$ticket.getOrderId()</td> 
32
                #else
33
                    <td colspan="2"></td>
34
                #end
35
            </tr>
36
            <tr >
37
                <td ><label>Description:</label></td>
38
                <td colspan="4"><textarea id="description"  class="required" name="description" rows="3" cols="75"></textarea></td>
39
            </tr>
40
            <tr >
41
                <td ><label>Assignee:</label></td>
42
                #if($action.getLoggerRole().equals("Agent"))
43
                    <td >$action.getAgent($lastActivity.getTicketAssigneeId()).getEmailId()</td>
44
                #else
45
                    <td >
46
                    <select name="ticketAssigneeEmailId" class="required email width10">
47
                        #foreach( $agent in $action.getAllAgents() )
48
                            #if($agent.getId() == $lastActivity.getTicketAssigneeId())
49
                                <option value="$agent.getEmailId()" selected="selected">$agent.getEmailId()</option>
50
                            #else
51
                                <option value="$agent.getEmailId()">$agent.getEmailId()</option>
52
                            #end
53
                        #end
54
                    </select>
55
                    </td>
56
                #end
57
                <td ></td>
58
                <td ><label>Agent who contacted:</label></td>
59
                <td >$action.getCurrentAgentEmailId()</td>
60
            </tr>
61
            <tr >
62
                <td ><label>Status:</label></td>
63
                <td >
64
                <select name="ticketStatus" class="width10">
65
                    #foreach( $ticketStatus in $action.getTicketStatuses() )
66
                        #if($ticketStatus.name() == $lastActivity.getTicketStatus().name())
67
                            <option value="$ticketStatus.name()" selected="selected">$ticketStatus.name()</option>
68
                        #else
69
                            <option value="$ticketStatus.name()">$ticketStatus.name()</option>
70
                        #end
71
                    #end
72
                </select>
73
                </td>
74
                <td ></td>
75
                <td ><label>Priority:</label></td>
76
                <td >
77
                <select name="ticketPriority" class="width10">
78
                    #foreach( $ticketPriority in $action.getTicketPriorities() )
79
                        #if($ticketPriority.name() == $lastActivity.getTicketPriority().name())
80
                            <option value="$ticketPriority.name()" selected="selected">$ticketPriority.name()</option>
81
                        #else
82
                            <option value="$ticketPriority.name()">$ticketPriority.name()</option>
83
                        #end
84
                    #end
85
                </select>
86
                </td>
87
            </tr>
88
            <tr >
89
                <td ><label>Medium of contact:</label></td>
90
                <td>
91
                <select name="contactMedium" class="width10">
92
                    #foreach( $contactMedium in $action.getContactMedia() )
93
                        #if($contactMedium.name() == "PHONE")
94
                            <option value="$contactMedium.name()" selected="selected">$contactMedium.name()</option>
95
                        #else
96
                            <option value="$contactMedium.name()">$contactMedium.name()</option>
97
                        #end
98
                    #end
99
                </select>
100
                </td>
101
                <td />
102
                <td ><label>Time of contact:</label></td>
103
                <td ><input type="text" name="contactTimestamp" value="$action.getContactTimestamp()" class="required"/></td>
104
            </tr>
105
            <tr >
106
                <td colspan="2"></td>
107
                <td colspan="2"><input type="submit" value="Save" /></td>
108
                <td ><input type="hidden" name="userId" value="$ticket.getCustomerId()"/></td>
109
            </tr>
110
        </table>
111
    </form>
112
    <br />
113
</div>
114
<h2 >Activities</h2>
115
<div id="bottom-infopane-lower">
116
    <table id="activity-table">
117
        <colgroup >
118
            <col width="50px"/>
119
            <col width="250px"/>
120
            <col width="50px"/>
121
            <col width="50px"/>
122
            <col width="50px"/>
123
            <col width="50px"/>
124
            <col width="50px"/>
125
            <col width="50px"/>
126
            <col width="50px"/>
127
        </colgroup>
128
        <thead >
129
            <tr >
130
                <th >Activity Id</th>
131
                <th >Description</th>
132
                <th >Time of contact</th>
133
                <th >Contact Medium</th>
134
                <th >Category</th>
135
                <th >Assignee</th>
136
                <th >Created by</th>
137
                <th >Status</th>
138
                <th >Priority</th>
139
            </tr>
140
        </thead>
141
        <tbody >
142
        #foreach($activity in $action.getActivities())
143
            #set($date = $action.convertDate($activity.getContactTimestamp()))
144
            <tr >
145
                <td >$activity.getId()</td>
146
                <td title="$activity.getDescription()">$activity.getDescription()</td>
147
                <td title="$date">$date</td>
148
                <td >$activity.getContactMedium().name()</td>
149
                <td >$activity.getTicketCategory().name()</td>
150
                <td >$action.getAgent($activity.getTicketAssigneeId()).getEmailId()</td>
151
                <td >$action.getAgent($activity.getCreatorId()).getEmailId()</td>
152
                <td >$activity.getTicketStatus().name()</td>
153
                <td >$activity.getTicketPriority().name()</td>
154
            </tr>
155
        #end
156
        </tbody>
157
    </table>
158
</div>
159
</div>