{box_container id="ticket"} {box_header multi_row=true} {box_header icon="img/ticket.gif" label="Subject:"} {/box_header} {box_header icon="img/service-type.png" label="Service type:"} {/box_header} {box_header icon="img/ticket-type.png" label="Ticket type:"} {/box_header} {/box_header} {box_contents} {box_panel} {block name="rtticketmodify-leftcolumn"} {if $layout.module != 'eventadd'} {box_row icon="img/customer.gif" label="Customer:"} {$customer_selector='[name="ticket[custid]"]'} {$address_selector='[name="ticket[address_id]"]'} {customerlist form="ticket" customers=$customerlist selected=$customerid selectname="ticket[customerid]" inputname="ticket[custid]" selecttip="Select customer from list or enter his data if is not a customer" customOnChange="change_customer('{$customer_selector}', '{$address_selector}');"} {/box_row} {/if} {box_row icon="img/users.gif" label="Requestor:" field_id="requestor"}
{trans("Name:")}
{trans("E-mail:")}
{trans("Phone:")}
{/box_row} {if $layout.module == 'rtticketadd'} {box_row icon="img/docum.gif" label="Message template:" field_id="message-templates" id="message-template-row" visible=!empty($messagetemplates)} {include file="rt/rtmessagetemplates.html" templates=$messagetemplates tip="Select message template" target='[name="ticket[body]"]'} {/box_row} {block name="rtticketadd-content"} {box_row icon="img/mail.gif" label="Content:"} {/box_row} {/block} {box_row icon="img/docum.gif" label="Note template:" field_id="note-templates" id="note-template-row" visible=!empty($notetemplates)} {include file="rt/rtmessagetemplates.html" templates=$notetemplates tip="Select note template" target='[name="ticket[note]"]'} {/box_row} {box_row icon="img/note.gif" label="Note:"} {/box_row} {box_row icon="img/attach.gif" label="Attachments:"} {fileupload id="files" fileupload=$fileupload form="ticket-form"} {/box_row} {/if} {box_row icon="img/queue.gif" label="Categories:" class="categories"} {if ConfigHelper::checkConfig('phpui.helpdesk_allow_empty_categories')} {/if} {foreach $categories as $category} {/foreach} {/box_row} {box_row icon="img/mail.gif" label="Notify users:" labelid="notify"} {/box_row} {/block} {/box_panel} {box_panel} {block name="rtticketmodify-rightcolumn"} {box_row icon="img/users.gif" label="Owner:"}   {/box_row} {box_row icon="img/verifier.png" label="Verifier:" field_id="rtverifiers"} {if $layout.module != 'rtticketedit' || !$ticket.oldverifierid || $ticket.oldverifierid == $layout.logid} {else} {$ticket.verifier_username} {/if} {/box_row} {box_row icon="img/calendar.gif" label="Deadline:"} {if $layout.module != 'rtticketedit' || ConfigHelper::checkConfig('phpui.helpdesk_allow_all_users_modify_deadline') || !$ticket.oldverifierid || $ticket.oldverifierid == $layout.logid} {else} {if $ticket.deadline}{$ticket.deadline|date_format:"%Y/%m/%d %H:%M"}{else}{trans("- none -")}{/if} {/if} {/box_row} {box_row icon="img/dead.gif" label="Status:"}   {/box_row} {box_row icon="img/queue.gif" label="Queue:"} {/box_row} {box_row icon="img/desc.gif" label="Cause:"} {/box_row} {box_row icon="img/volcano.png" label="Ticket source:"} {/box_row} {box_row icon="img/report.gif" label="Priority"} {/box_row} {if $layout.module != 'eventadd'} {box_row icon="img/home.gif" label="Location:"} {/box_row} {/if} {$visibility=(!empty($nodes) && $layout.module != 'eventadd')} {box_row class="node-row" icon="img/node.gif" label="Node:" visible=$visibility} {/box_row} {box_row icon="img/netnode.png" label="Network node:"} {/box_row} {box_row icon="img/netdev.gif" label="Device:" field_id="rtnetdevs"} {include file="rt/rtnetdevs.html" form="ticket"} {/box_row} {box_row id="customernotify-row" icon="img/mail.gif" label="Notify customer:" labelid="customernotify"} {/box_row} {box_row icon="img/money.gif" label="Investment project:"} {/box_row} {box_row icon="lms-ui-icon-reload" label="Parent ticket:"} {/box_row} {if $ticket.relatedtickets} {box_row icon="lms-ui-icon-reload" label="Related tickets:"} {foreach $ticket.relatedtickets as $i} {t a=$i.id|string_format:"%06d"}$a{/t}{trans("Unlink")} {/foreach} {/box_row} {/if} {/block} {/box_panel} {/box_contents} {if $layout.module != 'eventadd'} {box_buttons} {button type="submit" icon="save" onclick="javascript:document.ticket.submit();" accesskey="s" label="Submit"} {button icon="cancel" onclick="location.href = '?m=rtqueueview{if isset($backid)}#{$backid}{/if}'" label="Cancel"} {/box_buttons} {/if} {/box_container}