{box_container id="ticket"} {box_header multi_row=true} {box_header icon="helpdesk" label="Subject" icon_class="fa-fw"} {/box_header} {box_header icon="service" label="Service type" icon_class="fa-fw"} {/box_header} {box_header icon="type" label="Ticket type" icon_class="fa-fw"} {/box_header} {/box_header} {box_contents} {box_panel} {block name="rtticketmodify-leftcolumn"} {if $layout.module != 'eventadd'} {box_row icon="customer" label="Customer" icon_class="fa-fw"} {$customer_selector='[name="ticket[custid]"]'} {$address_selector='[name="ticket[address_id]"]'} {customerlist form="ticket-form" customers=$customerlist selected=$customerid version=2 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="user" label="Requestor" field_id="requestor" icon_class="fa-fw"}
{trans("Name")}
{trans("E-mail")}
{trans("Phone")}
{/box_row} {if $layout.module == 'rtticketadd'} {box_row icon="message" label="Message template" field_id="message-templates" id="message-template-row" visible=!empty($messagetemplates) icon_class="fa-fw"} {include file="rt/rtmessagetemplates.html" templates=$messagetemplates tip="Select message template" target='[name="ticket[body]"]'} {/box_row} {block name="rtticketadd-content"} {box_row icon="message" label="Content" icon_class="fa-fw"}
{speech_recognition target="#ticket-body"}
{/box_row} {/block} {box_row icon="note" label="Note template" field_id="note-templates" id="note-template-row" visible=!empty($notetemplates) icon_class="fa-fw"} {include file="rt/rtmessagetemplates.html" templates=$notetemplates tip="Select note template" target='[name="ticket[note]"]'} {/box_row} {box_row icon="note" label="Note" icon_class="fa-fw"}
{speech_recognition target="#ticket-note"}
{/box_row} {box_row icon="attachment" label="Attachments" icon_class="fa-fw"} {fileupload id="files" fileupload=$fileupload form="ticket-form"} {/box_row} {/if} {box_row icon="categories" label="Categories" class="categories" icon_class="fa-fw"} {if ConfigHelper::checkConfig('phpui.helpdesk_allow_empty_categories')} {/if} {include file="rt/rtcategoryselection.html" categories=$categories name_prefix="ticket[categories]"} {/box_row} {box_row icon="message" label="Notify users" labelid="notify" icon_class="fa-fw"} {/box_row} {/block} {/box_panel} {box_panel} {block name="rtticketmodify-rightcolumn"} {box_row icon="owner" label="Owner" icon_class="fa-fw"}   {/box_row} {box_row icon="verifier" label="Verifier" field_id="rtverifiers" icon_class="fa-fw"} {if $layout.module != 'rtticketedit' || !$ticket.oldverifierid || $ticket.oldverifierid == $layout.logid || ConfigHelper::checkConfig('privileges.superuser')} {else} {$ticket.verifier_username} {/if} {/box_row} {box_row icon="deadline" label="Deadline" icon_class="fa-fw"} {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="status" label="Status" icon_class="fa-fw"}   {/box_row} {box_row icon="queue" label="Queue" icon_class="fa-fw"} {/box_row} {box_row icon="cause" label="Cause" icon_class="fa-fw"} {/box_row} {box_row icon="source" label="Ticket source" icon_class="fa-fw"} {/box_row} {box_row icon="priority" label="Priority" icon_class="fa-fw"} {/box_row} {if $layout.module != 'eventadd'} {box_row icon="location" label="Location" icon_class="fa-fw"} {if $ticket.address_id > 0 && $customerid} {$selected_address_id = $ticket.address_id} {else} {$selected_address_id = null} {/if} {if $address_id_warning} {$class = "lms-ui-error"} {else} {$class = ""} {/if} {if $layout.module == 'rtticketedit'} {$preselection = false} {else} {$preselection = true} {/if} {include file="customer/customeraddresses.html" id="customer_addresses" name="ticket[address_id]" trigger="address_id" selected_address_id=$selected_address_id class=$class preselection=$preselection} {/box_row} {/if} {$visibility=(!empty($nodes) && $layout.module != 'eventadd')} {box_row class="node-row" icon="node" label="Node:" visible=$visibility} {/box_row} {box_row icon="netnode" label="Network node" icon_class="fa-fw"} {/box_row} {box_row icon="netdev" label="Device" field_id="rtnetdevs" icon_class="fa-fw"} {include file="rt/rtnetdevs.html" form="ticket"} {/box_row} {box_row id="customernotify-row" icon="message" label="Notify customer" labelid="customernotify"} {/box_row} {box_row icon="invproject" label="Investment project" icon_class="fa-fw"} {/box_row} {function ticket_item_content} {capture name="item_content_result" assign="item_content_result"}{strip} {hint icon="info" mode="toggle" url="?m=rtticketinfo&id={$item.id}"} #{$item.id} {$item.name} {/strip}{/capture} {/function} {box_row icon="parentticket" label="Primary ticket" icon_class="fa-fw"} {list id="parent-ticket" tipid="parentid" tip="Enter ID of primary ticket" items=$ticket.parent field_name_pattern="ticket[parentid]" item_content="ticket_item_content"} {/box_row} {if empty($ticket.parent)} {$class = "blend"} {$tip = "No primary ticket is selected!"} {else} {$class = ""} {$tip = ""} {/if} {box_row icon="relatedticket" label="Related tickets" class=$class tip=$tip icon_class="fa-fw"} {list id="related-tickets" tipid="related-tickets-id" tip="Enter ticket identifier or ticket subject part" items=$ticket.relatedtickets field_name_pattern="ticket[relatedtickets][%id%]" item_content="ticket_item_content" disabled=empty($ticket.parent)} {/box_row} {/block} {/box_panel} {/box_contents} {if $layout.module != 'eventadd'} {box_buttons} {button type="submit" icon="save" accesskey="s" label="Submit"} {button icon="cancel" onclick="location.href = '?m=rtqueueview{if isset($backid)}#{$backid}{/if}'" label="Cancel"} {/box_buttons} {/if} {/box_container}