Rev 3405 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script>$(document).ready(function() {$("#create-ticket-form").validate();});</script>#set($messages = $action.getActionErrors())#if($messages && $messages.size() != 0)#foreach($message in $messages)$message <br/>#end#else<div><h1>Create new Ticket</h1><form id="create-ticket-form" name="f" action=""><table><colgroup><col width="200px"/><col width="250px"/><col width="120px"/><col width="200px"/><col width="300px"/></colgroup>#if($action.getUserId())#else<tr ><td >Customer Name: </td><td ><input type="text" name="customerName"/> </td><td ></td><td >Customer Email Id: </td><td ><input type="text" name="customerEmailId"/></td></tr>#end<tr ><td ><label>Assignee:</label></td><td ><select name="assigneeEmailId" class="width10">#foreach( $agent in $action.getAllAgents() )#if($agent.getEmailId() == $action.getCurrentAgentEmailId())<option value="$agent.getEmailId()" selected="selected">$agent.getEmailId()</option>#else<option value="$agent.getEmailId()">$agent.getEmailId()</option>#end#end</select></td>#if($action.getUserId())<td colspan="3"></td>#else<td ></td><td >Customer Mobile No: </td><td ><input type="text" name="customerMobileNumber"/></td>#end</tr><tr ><td ><label>Description:</label></td><td colspan="4"><textarea id="description" name="description" class="required" rows="3" cols="90"></textarea></td></tr><tr ><td ><label>Priority:</label></td><td ><select name="priority" class="width10">#foreach( $priority in $action.getTicketPriorities() )#if($priority.name() == "MEDIUM")<option value="$priority.name()" selected="selected">$priority.name()</option>#else<option value="$priority.name()">$priority.name()</option>#end#end</select></td><td ></td><td ><label>Category:</label></td><td ><select name="category" class="width10">#foreach( $category in $action.getTicketCategories() )#if($category.name() == "RETURN_FORM")<option value="$category.name()" selected="selected">$category.name()</option>#else<option value="$category.name()">$category.name()</option>#end#end</select></td></tr>#set($userId = $action.getUserId())<tr ><td ><label>Order Id:</label></td><td colspan="4"><input type="text" name="orderId" value=""/></td></tr><tr ><td colspan="2"></td><td colspan="2"><input type="submit" value="Create" /></td><td >#if($userId)<input type="hidden" name="userId" value="$userId"/>#end</td></tr></table></form></div>#end