<div id="profile_topcontent" style="padding-bottom:0px;">
    <div class="linkbackbanner" style="width:180px">
	<a href="index.php?fuse=support&view=ViewTicketTypes"><strong>← [l]Back[/l]</strong><em>[l]Ticket Types[/l]</em></a>
    </div>
    <br/>
</div>
<form method="post" action="index.php?fuse=support&action=SaveTicketType">
    <input type="hidden" name="ticketTypeId" value="{ticketTypeId}" />
    <table width="100%">
        <!-- BEGIN DYNAMIC BLOCK: notice -->
        <tr>
            <td colspan="2">
                <div class="yellowbox"><h2>[l]Notice[/l]:</h2>[l]In order to delete a ticket type you have to assign all tickets having this type to another type, and modify current E-mail routing rules pointing to this ticket type.[/l]</div>
            </td>
        </tr>
        <!-- END DYNAMIC BLOCK: notice -->
        <tr>
            <td align="right" class="formlabel" width="1%" nowrap="true">[l]Name[/l]:</td>
            <td class="formfield"><input type="text" name="ticketTypeName" value="{ticketTypeName}" size="35" /></td>
        </tr>
        <tr>
            <td align="right" valign="top" class="formlabel" width="1%" nowrap="true">[l]Description[/l]:</td>
            <td class="formfield"><textarea name="ticketTypeDescription">{ticketTypeDescription}</textarea></td>
        </tr>
        <tr>
            <td align="right" class="formlabel" width="1%" nowrap="true">[l]Enabled[/l]:</td>
            <td class="formfield"><input type="checkbox" name="ticketTypeEnabled" {ticketTypeEnabledChecked} /></td>
        </tr>
        <tr>
            <td align="right" class="formlabel" width="1%" nowrap="true">[l]Enabled in the public section[/l]{ticketTypeEnabledPublicHelp}:</td>
            <td class="formfield"><input type="checkbox" name="ticketTypeEnabledPublic" {ticketTypeEnabledPublicChecked} /></td>
        </tr>
        <tr>
            <td align="right" class="formlabel" width="1%" nowrap="true">[l]Associate to billing events[/l]{ticketTypeBillingHelp}:</td>
            <td class="formfield"><input type="checkbox" name="ticketTypeBilling" {ticketTypeBillingChecked} /></td>
        </tr>
        <tr>
            <td align="right" class="formlabel" width="1%" nowrap="true">[l]Default assignee[/l]:</td>
            <td class="formfield">
                 <select name="ticketTypeAssignee">
                    <option value="0">[l]Leave unassigned[/l]&nbsp;&nbsp;</option>
                    <!-- BEGIN DYNAMIC BLOCK: assigneeList -->
                    <option value="{assigneeId}" {assigneeSelected}>{assigneeLabel}</option>
                    <!-- END DYNAMIC BLOCK: assigneeList -->
                </select>
            </td>
        </tr>
        <!-- BEGIN DYNAMIC BLOCK: ticketsAndRouting -->
        <tr>
            <td align="right" class="formlabel" width="1%">[l]Tickets having this type[/l]:</td>
            <td class="formfield">{numTickets}</td>
        </tr>
        <tr>
            <td align="right" class="formlabel" width="1%">[l]Associated E-mail routing rules[/l]:</td>
            <td class="formfield">{numRoutingRules}</td>
        </tr>
        <!-- END DYNAMIC BLOCK: ticketsAndRouting -->
        <tr>
            <td colspan="2" style="padding-top:10px">
                <input type="submit" value="[l]Save[/l]" class="button_medium" />&nbsp;&nbsp;
                <!-- BEGIN DYNAMIC BLOCK: deleteButton -->
                <input type="submit" value="[l]Delete[/l]" onclick="this.form.action='index.php?fuse=support&action=DeleteTicketType'" class="button_medium" />
                <!-- END DYNAMIC BLOCK: deleteButton -->
            </td>
        </tr>
    </table>
</form>
