<div id="profile_topcontent" style="padding-bottom:0px;">
    <div class="linkbackbanner" style="width:180px">
	<a href="index.php?fuse=support&view=ViewEscalations"><strong>← [l]Back[/l]</strong><em>[l]Escalations[/l]</em></a>
    </div>
    <br/>
</div>
<form method="post" action="index.php?fuse=support&action=SaveEscalation{returnToDept}" id="escalationForm">
    <input type="hidden" name="escalationId" value="{escalationId}" />
    {escalationAddTitle}
    <table width="100%" border="0">
        <tr>
            <td width="400" valign="top">
                <table width="100%" border="0">
                    <tr>
                        <td align="right" valign="top" width="1%" class="formlabel">[l]Escalation Name[/l]:</td>
                        <td class="formfield">
                            <input type="text" name="name" value="{name}" size="35" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="formfield" style="padding:5px 0">
                            <b>[l]Conditions triggering the escalation[/l]</b>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" valign="top" width="1%" class="formlabel">[l]Assigned to departments[/l]:</td>
                        <td class="formfield">
                            <select name="assignedDepartments[]" multiple="true" size="5" >
                                <!-- BEGIN DYNAMIC BLOCK: departmentsList -->
                                <option value="{departmentId}" {departmentSelected}>{departmentName}</option>
                                <!-- END DYNAMIC BLOCK: departmentsList -->
                            </select>
                        </td>
                    </tr>
                    <tr class="even">
                        <td align="right" width="1%" nowrap="true" class="formlabel">[l]Time elapsed since last reply:[/l]</td>
                        <td class="formfield">
                            <input type="text" name="timeElapsed" value="{timeElapsed}" size="4" /> [l]Hours[/l]
                        </td>
                    </tr>
                    <tr class="odd">
                        <td align="right" class="formlabel">[l]Ticket status[/l]:</td>
                        <td class="formfield">
                            <select name="ticketStatus">
                                <option value="1" {ticketStatusOpen} >[l]Open[/l]&nbsp;&nbsp;&nbsp;</option>
                                <option value="2" {ticketStatusWaitingOnTech} >[l]Waiting on tech[/l]&nbsp;&nbsp;&nbsp;</option>
                                <option value="3" {ticketStatusWaitingOnCustomer} >[l]Waiting on customer[/l]&nbsp;&nbsp;&nbsp;</option>
                            </select>
                        </td>
                    </tr>
                    <tr class="even">
                        <td align="right" valign="top" nowrap="true" class="formlabel">[l]Tickets of priority[/l]:</td>
                        <td class="formfield">
                            <select name="ticketPriority[]" id="ticketPriority" multiple="true">
                                <option value="1" {ticketPriorityHighSelected} >[l]High[/l]</option>
                                <option value="2" {ticketPriorityMediumSelected} >[l]Medium[/l]</option>
                                <option value="4" {ticketPriorityLowSelected} >[l]Low[/l]</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                    </tr>
                </table>
            </td>
            <td valign="top">
                       
            
				<table width="100%">
                    <tr>
                        <td>
                            <input type="text" name="" style="visibility:hidden" /><!-- Just for layout purposes -->
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="padding: 5px 0" class="formfield">
                            <b>[l]Appearance Actions[/l]</b>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width:170px;" class="formlabel">[l]Change Ticket Tag[/l]:</td>
                        <td class="formfield">
                            <select name="newTag">
                                <option value="" {changeTagNoSelected} >-- [l]Don't change[/l] --&nbsp;&nbsp;</option>
                                <option value="clear" {changeTagClearSelected} >[l]Clear[/l]</option>
                                <option value="red" {changeTagRedSelected} >[l]Red[/l]</option>
                                <option value="green" {changeTagGreenSelected} >[l]Green[/l]</option>
                                <option value="blue" {changeTagBlueSelected} >[l]Blue[/l]</option>
                                <option value="yellow" {changeTagYellowSelected} >[l]Yellow[/l]</option>                                                                
                            </select>
                        </td>
                    </tr>                 
                </table>            
            
<table width="100%">
                    <tr>
                        <td colspan="2" style="padding: 5px 0" class="formfield">
                            <b>[l]Escalation Actions[/l]</b>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width:170px;" class="formlabel">[l]Change Priority[/l]:</td>
                        <td class="formfield">
                            <select name="newPriority">
                                <option value="0" {changePriorityNoSelected} >-- [l]Don't change[/l] --&nbsp;&nbsp;</option>
                                <option value="1" {changePriorityHighSelected} >[l]High[/l]</option>
                                <option value="2" {changePriorityMediumSelected} >[l]Medium[/l]</option>
                                <option value="4" {changePriorityLowSelected} >[l]Low[/l]</option>
                            </select>
                        </td>
                    </tr>                    
                    <tr>
                        <td align="right" style="width:170px;" class="formlabel">[l]Reassign to[/l]:</td>
                        <td class="formfield">
                            <select name="reassign">
                                <option value="0" {reassignNoSelected} >-- [l]Don't reassign[/l] --&nbsp;&nbsp;</option>
                                <!-- BEGIN DYNAMIC BLOCK: assigneeList -->
                                <option value="{assigneeId}" {assigneeSelected} >{assigneeLabel}</option>
                                <!-- END DYNAMIC BLOCK: assigneeList -->
                            </select>
                        </td>
                    </tr>                    
                    <tr>
                        <td align="right" style="width:170px;" class="formlabel">[l]Only apply once[/l] {onlyApplyOnceHelp}:</td>
                        <td class="formfield">
                            <input type="checkbox" name="onlyApplyOnce" {onlyApplyOnceChecked} />
                        </td>
                    </tr>
                </table>            
            
				<table width="100%">
                    <tr>
                        <td colspan="2" style="padding: 5px 0" class="formfield">
                            <b>[l]Notification Actions[/l]</b>
                        </td>
                    </tr>				
                    <tr class="even">
                        <td align="right" style="width:170px;" class="formlabel">[l]Send Transcription To[/l] {sendTicketHelp}:</td>
                        <td class="formfield">
                            <textarea name="transcriptionDestinataries" class="smallTextarea" rows="3">{transcriptionDestinataries}</textarea>
                        </td>
                    </tr>
                </table>              
            
                
                
                
                
            </td>
        </tr>
        <tr>
            <td colspan="2" style="">
                <input type="submit" value="[l]Save[/l]" class="button_medium" onclick="checkEscalationForm();return false;"/>&nbsp;&nbsp;
                <!-- BEGIN DYNAMIC BLOCK: deleteButton -->
                <input type="submit" value="Delete" onclick="this.form.action='index.php?fuse=support&action=DeleteEscalation'" class="button_medium" />
                <!-- END DYNAMIC BLOCK: deleteButton -->
            </td>
        </tr>
    </table>
</form>
