| 3339 |
mandeep.dh |
1 |
<script>
|
|
|
2 |
$(document).ready(function() {
|
|
|
3 |
$("#create-ticket-form").validate();
|
|
|
4 |
});
|
|
|
5 |
</script>
|
|
|
6 |
#set($messages = $action.getActionErrors())
|
|
|
7 |
#if($messages && $messages.size() != 0)
|
|
|
8 |
#foreach($message in $messages)
|
|
|
9 |
$message <br/>
|
|
|
10 |
#end
|
|
|
11 |
#else
|
|
|
12 |
<div>
|
|
|
13 |
<h1>Create new Ticket</h1>
|
|
|
14 |
<form id="create-ticket-form" name="f" action="">
|
|
|
15 |
<table>
|
|
|
16 |
<colgroup>
|
|
|
17 |
<col width="200px"/>
|
|
|
18 |
<col width="250px"/>
|
|
|
19 |
<col width="120px"/>
|
|
|
20 |
<col width="200px"/>
|
|
|
21 |
<col width="300px"/>
|
|
|
22 |
</colgroup>
|
|
|
23 |
<tr >
|
|
|
24 |
<td ><label>Assignee:</label></td>
|
|
|
25 |
#if($action.getLoggerRole().equals("Agent"))
|
|
|
26 |
<td >$action.getCurrentAgentEmailId()
|
|
|
27 |
<input type="hidden" name="assigneeEmailId" value="$action.getCurrentAgentEmailId()"/>
|
|
|
28 |
</td>
|
|
|
29 |
#else
|
|
|
30 |
<td >
|
|
|
31 |
<select name="assigneeEmailId" class="width10">
|
|
|
32 |
#foreach( $agent in $action.getAllAgents() )
|
|
|
33 |
#if($agent.getEmailId() == $action.getCurrentAgentEmailId())
|
|
|
34 |
<option value="$agent.getEmailId()" selected="selected">$agent.getEmailId()</option>
|
|
|
35 |
#else
|
|
|
36 |
<option value="$agent.getEmailId()">$agent.getEmailId()</option>
|
|
|
37 |
#end
|
|
|
38 |
#end
|
|
|
39 |
</select>
|
|
|
40 |
</td>
|
|
|
41 |
#end
|
|
|
42 |
<td colspan="3">
|
|
|
43 |
</td>
|
|
|
44 |
</tr>
|
|
|
45 |
<tr >
|
|
|
46 |
<td ><label>Description:</label></td>
|
|
|
47 |
<td colspan="4"><textarea id="description" name="description" class="required" rows="3" cols="75"></textarea></td>
|
|
|
48 |
</tr>
|
|
|
49 |
<tr >
|
|
|
50 |
<td ><label>Priority:</label></td>
|
|
|
51 |
<td >
|
|
|
52 |
<select name="priority" class="width10">
|
|
|
53 |
#foreach( $priority in $action.getTicketPriorities() )
|
|
|
54 |
#if($priority.name() == "MEDIUM")
|
|
|
55 |
<option value="$priority.name()" selected="selected">$priority.name()</option>
|
|
|
56 |
#else
|
|
|
57 |
<option value="$priority.name()">$priority.name()</option>
|
|
|
58 |
#end
|
|
|
59 |
#end
|
|
|
60 |
</select>
|
|
|
61 |
</td>
|
|
|
62 |
<td ></td>
|
|
|
63 |
<td ><label>Category:</label></td>
|
|
|
64 |
<td >
|
|
|
65 |
<select name="category" class="width10">
|
|
|
66 |
#foreach( $category in $action.getTicketCategories() )
|
|
|
67 |
#if($category.name() == "RETURN_FORM")
|
|
|
68 |
<option value="$category.name()" selected="selected">$category.name()</option>
|
|
|
69 |
#else
|
|
|
70 |
<option value="$category.name()">$category.name()</option>
|
|
|
71 |
#end
|
|
|
72 |
#end
|
|
|
73 |
</select>
|
|
|
74 |
</td>
|
|
|
75 |
</tr>
|
|
|
76 |
#set($userId = $action.getUserId())
|
|
|
77 |
<tr >
|
|
|
78 |
<td ><label>Order Id:</label></td>
|
|
|
79 |
<td ><input type="text" name="orderId" value=""/></td>
|
|
|
80 |
<td ></td>
|
|
|
81 |
<td ><label>Customer Email Id:</label></td>
|
|
|
82 |
<td ><input type="text" name="userEmailId" value=""/></td>
|
|
|
83 |
</tr>
|
|
|
84 |
<tr >
|
|
|
85 |
<td colspan="2"></td>
|
|
|
86 |
<td colspan="2"><input type="submit" value="Create" /></td>
|
|
|
87 |
<td ><input type="hidden" name="userId" value="$userId"/></td>
|
|
|
88 |
</tr>
|
|
|
89 |
</table>
|
|
|
90 |
</form>
|
|
|
91 |
</div>
|
|
|
92 |
#end
|