Subversion Repositories SmartDukaan

Rev

Rev 3405 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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>
3405 mandeep.dh 23
            #if($action.getUserId())
24
            #else
3339 mandeep.dh 25
            <tr >
3405 mandeep.dh 26
                <td >Customer Name: </td>
27
                <td ><input type="text" name="customerName"/> </td>
28
                <td ></td>
29
                <td >Customer Email Id: </td>
30
                <td ><input type="text" name="customerEmailId"/></td>
31
            </tr>
32
            #end
33
            <tr >
4689 anupam.sin 34
				<td ><label>Assignee:</label></td>
3339 mandeep.dh 35
                    <td >
36
                    <select name="assigneeEmailId" class="width10">
37
                        #foreach( $agent in $action.getAllAgents() )
38
                            #if($agent.getEmailId() == $action.getCurrentAgentEmailId())
39
                                <option value="$agent.getEmailId()" selected="selected">$agent.getEmailId()</option>
40
                            #else
41
                                <option value="$agent.getEmailId()">$agent.getEmailId()</option>
42
                            #end
43
                        #end
44
                    </select>
3405 mandeep.dh 45
                    </td>                    
46
                #if($action.getUserId())
47
                    <td colspan="3"></td>
48
                #else
49
                    <td ></td>
50
                    <td >Customer Mobile No: </td>
51
                    <td ><input type="text" name="customerMobileNumber"/></td>
52
                #end                
3339 mandeep.dh 53
            </tr>
54
            <tr >
55
                <td ><label>Description:</label></td>
3405 mandeep.dh 56
                <td colspan="4"><textarea id="description" name="description"  class="required" rows="3" cols="90"></textarea></td>
3339 mandeep.dh 57
            </tr>
58
            <tr >
59
                <td ><label>Priority:</label></td>
60
                <td >
61
                <select name="priority" class="width10">
62
                    #foreach( $priority in $action.getTicketPriorities() )
63
                        #if($priority.name() == "MEDIUM")
64
                            <option value="$priority.name()" selected="selected">$priority.name()</option>
65
                        #else
66
                            <option value="$priority.name()">$priority.name()</option>
67
                        #end
68
                    #end
69
                </select>
70
                </td>
71
                <td ></td>
72
                <td ><label>Category:</label></td>
73
                <td >
74
                <select name="category" class="width10">
75
                    #foreach( $category in $action.getTicketCategories() )
76
                        #if($category.name() == "RETURN_FORM")
77
                            <option value="$category.name()" selected="selected">$category.name()</option>
78
                        #else
79
                            <option value="$category.name()">$category.name()</option>
80
                        #end
81
                    #end
82
                </select>
83
                </td>
84
            </tr>
85
            #set($userId = $action.getUserId())
86
            <tr >
87
                <td ><label>Order Id:</label></td>
3405 mandeep.dh 88
                <td colspan="4"><input type="text" name="orderId" value=""/></td>
3339 mandeep.dh 89
            </tr>
90
            <tr >
91
                <td colspan="2"></td>
92
                <td colspan="2"><input type="submit" value="Create" /></td>
3405 mandeep.dh 93
                <td >
94
                    #if($userId)
95
                    <input type="hidden" name="userId" value="$userId"/>
96
                    #end
97
                </td>
3339 mandeep.dh 98
            </tr>
99
        </table>
100
    </form>
101
</div>
102
#end