{$gps_location_url = ConfigHelper::getConfig('phpui.gps_location_url', 'https://www.google.com/maps/place/%location')} {$ticketinfo_clipboard_text = ConfigHelper::getConfig('rt.ticketinfo_clipboard_text',"%ticketurl {trans("Subject:")}%subject{if $ticket.location}, {trans("Location:")}%location{/if}")|replace:"%location":$ticket.location|replace:"%ticketid":$ticket.ticketid|replace:"%subject":$ticket.subject|replace:"%ticketurl":"{$url}?m=rtticketview&id={$ticket.ticketid}"}
{icon name="helpdesk" class="lms-ui-button-clipboard" label="{t}Ticket No.{/t} {$ticket.ticketid|string_format:"%06d"}" data_clipboard_text=$ticketinfo_clipboard_text}
{if $ticket.service != SERVICE_OTHER} {/if} {if $ticket.type != RT_TYPE_OTHER} {/if} {if $ticket.customerid} {/if} {if $ticket.requestor_userid || $ticket.requestor_name || $ticket.requestor_mail || $ticket.requestor_phone} {/if} {if ConfigHelper::checkPrivilege('helpdesk_ticket_custom_times') && isset($ticket.customcreatetime)} {/if} {if $ticket.creatorid} {/if} {if ConfigHelper::checkPrivilege('helpdesk_ticket_custom_times') && isset($ticket.customresolvetime)} {/if} {if !empty($ticket.categories)} {/if}
{icon name="subject" label="Subject"} {$ticket.subject|trunescape:50}
{icon name="service" label="Service type"} {$_SERVICETYPES[$ticket.service]}
{icon name="type" label="Ticket type"} {trans($_RT_TYPES[$ticket.type].label)}
{icon name="customer" label="Customer"} {$ticket.customername|escape} (#{$ticket.customerid})
{icon name="requestor" label="Requestor"} {if $ticket.requestor_userid} {$ticket.requestor_username} {else} {$ticket.requestor_name} {if $ticket.requestor_mail}
{$ticket.requestor_mail} {/if} {if $ticket.requestor_phone}
{icon name="phone"} {$ticket.requestor_phone|escape} {Utils::createCallPhoneUrl($ticket.requestor_phone)} {/if} {/if}
{icon name="timetable" label="Create time"} {$ticket.createtime|date_format:"Y-m-d H:i:s"}
{icon name="timetable" label="Custom create time"} {$ticket.customcreatetime|date_format:"Y-m-d H:i"}
{icon name="user" label="Created by"} {$ticket.creator|escape}
{icon name="uptime" label="Uptime"} {$ticket.uptime}
{icon name="timetable" label="Custom resolve time"} {$ticket.customresolvetime|date_format:"Y-m-d H:i"}
{icon name="categories" label="Categories"} {foreach $ticket.categories as $tc}
{$tc.name}
{/foreach}
{if $ticket.deadline} {/if} {if $ticket.cause} {/if} {if $ticket.deleted == 1 && (ConfigHelper::checkPrivilege('helpdesk_advanced_operations'))} {/if} {if $ticket.source} {/if} {if isset($ticket.priority)} {/if} {if $ticket.address_id} {/if} {if $ticket.location && !empty($ticket.coords.latitude)} {/if} {if $ticket.nodeid} {/if} {if $ticket.netnodeid} {/if} {if $ticket.netdevid} {/if} {if $ticket.invprojectid} {/if} {if $ticket.parentid} {/if} {if $ticket.childtickets} {/if} {if $ticket.relatedtickets} {/if}
{icon name="owner" label="Owner"} {if $ticket.owner} {$ticket.ownername} {else} {trans("none")} {/if}
{icon name="verifier" label="Verifier"} {if $ticket.verifierid} {$ticket.verifier_username} {else} {trans("none")} {/if}
{icon name="timetable" label="Deadline"} {if $ticket.deadline} {$ticket.deadline|date_format:"Y-m-d H:i:s"} {else} {trans("none")} {/if}
{icon name="queue" label="Queue"} {$ticket.queuename} {if empty($favorite_queues)} {button type="link" icon="next" disabled=true tip="No favorite queues defined (check 'rt.favorite_queues' configuration setting)"} {else} {foreach $favorite_queues as $queueid => $name} {if $queueid != $ticket.queueid} {button type="link" icon="next" tip=trans('Move ticket to queue $a', $name) data_href="?m=rtticketedit&action=queuechange&id={$ticket.ticketid}&queueid=$queueid" data_confirmation_text=trans('Are you sure, you want to move ticket to $a?', $name) } {/if} {/foreach} {/if}
{icon name="status" label="Status"} {$_RT_STATES[$ticket.state].label}
{icon name="cause" label="Cause"} {if $ticket.cause==2}{trans("company's side")} {elseif $ticket.cause==1}{trans("customer's side")} {else}{trans("unknown/other")}{/if}
{icon name="user" label="Remover"} {$ticket.delusername|escape}
{icon name="remove" label="Remove date"} {$ticket.deltime|date_format:"Y-m-d H:i:s"}
{icon name="source" label="Ticket source"} {trans($_RT_SOURCES[$ticket.source])}
{icon name="priority" label="Priority"} {$_RT_PRIORITIES[$ticket.priority]}
{icon name="location" label="Location"} {$ticket.location|escape} {button type="link" tip="Show on map" icon="location" href="{$gps_location_url|replace:"%location":$ticket.location|escape}" } {show_on_map_button type="default" cityid=$ticket.city_id streetid=$ticket.street_id building_num=$ticket.house } {show_on_map_button type="google" cityid=$ticket.city_id streetid=$ticket.street_id building_num=$ticket.house } {show_on_map_button type="geoportal" cityid=$ticket.city_id streetid=$ticket.street_id building_num=$ticket.house } {show_on_map_button type="netstork" cityid=$ticket.city_id streetid=$ticket.street_id building_num=$ticket.house } {show_on_map_button type="sidusis" cityid=$ticket.city_id streetid=$ticket.street_id building_num=$ticket.house }
{icon name="location" class="lms-ui-button-clipboard" label="GPS coordinates" data_clipboard_text="{$ticket.coords.latitude}, {$ticket.coords.longitude}" } {button type="link" class="lms-ui-button-clipboard" label="{$ticket.coords.latitude}, {$ticket.coords.longitude}" data_clipboard_text="{$ticket.coords.latitude}, {$ticket.coords.longitude}" }
{icon name="node" label="Node"} {$ticket.node_name} ({$ticket.nodeid})
{icon name="netnode" label="Network Device Node"} {$ticket.netnode_name|escape}
{icon name="netdev" label="Device"} {$ticket.netdev_name|escape}
{icon name="invproject" label="Investment project"} {$ticket.invproject_name|escape}
{icon name="parentticket" label="Primary ticket"} #{$ticket.parent.id|string_format:"%06d"} {$ticket.parent.name|escape}
{icon name="childticket" label="Secondary tickets"} {foreach $ticket.childtickets as $t} #{$t.id|string_format:"%06d"} {$t.subject|escape}
{/foreach}
{icon name="relatedticket" label="Related tickets"} {foreach $ticket.relatedtickets as $i} {hint icon="info" mode="toggle" url="?m=rtticketinfo&id={$i.id}"} #{$i.id} {$i.name|escape} {if !$i@last}
{/if} {/foreach}
{button id="print-anchor" icon="print" label="Print"}
{if $ticket.state != $smarty.const.RT_RESOLVED || ($ticket.state == $smarty.const.RT_RESOLVED && $aet && ($smarty.now - $ticket.resolvetime) < $aet) || (ConfigHelper::checkPrivilege('superuser'))} {button type="link-button" icon="edit" tip= "Edit" label="Edit" href="?m=rtticketedit&id={$ticket.ticketid}"} {/if} {if $ticket.state != $smarty.const.RT_RESOLVED} {if ConfigHelper::checkConfig('rt.block_ticket_close_with_open_events', ConfigHelper::checkConfig('phpui.helpdesk_block_ticket_close_with_open_events')) && !empty($ticket['openeventcount'])} {button icon="status-resolved" label="Ticket has open assigned events!" tip="Ticket has open assigned events!" class="blend disabled"} {else} {if empty($ticket['verifier_rtime']) && $ticket['verifierid'] != Auth::GetCurrentUser() && $ticket['verifierid']} {button icon="verifier" label="Transfer to verifier" tip="Transfer to verifier" onclick="location.href='?m=rtticketedit&id={$ticket.ticketid}&action=verify';"} {else} {if !empty($ticket['verifier_rtime']) && $ticket['verifierid'] != Auth::GetCurrentUser()} {icon name="verifier"} {trans("Ticket has been transferred to verifier")} {else} {button icon="status-resolved" label="Resolve" tip="Resolve" onclick="location.href='?m=rtticketedit&id={$ticket.ticketid}&action=resolve';"} {/if} {/if} {/if} {/if} {buttons type="button" icon="dropdown2" label="Additional options"} {if ($ticket.owner != $layout.logid && $ticket.state != $smarty.const.RT_RESOLVED) || ConfigHelper::checkPrivilege('superuser')} {button id="ticket-assign-to-me" icon="user" label="Assign to me" tip="Assign to me" data_href="?m=rtticketedit&id={$ticket.ticketid}&action=assign"} {/if} {if (!$ticket.verifierid && $ticket.owner != $layout.logid && $ticket.state != $smarty.const.RT_RESOLVED) || ConfigHelper::checkPrivilege('superuser')} {button id="ticket-assign2-to-me" type='link-button' icon="user" label="Assign to me as verifier" tip="Assign to me as verifier" href="?m=rtticketedit&id={$ticket.ticketid}&action=assign2"} {/if} {if $ticket.watching} {button icon="unwatch" tip="Stop watching" label="Stop watching" href="?m=rtqueueview&ticketid={$ticket.ticketid}&ticketwatching=0"} {else} {button icon="watch" tip="Start watching" label="Start watching" href="?m=rtqueueview&ticketid={$ticket.ticketid}&ticketwatching=1"} {/if} {button type="link-button" icon="clone" label="Clone" tip="Clone" href="?m=rtticketadd&ticketid={$ticket.ticketid}"} {if $ticket.state != $smarty.const.RT_RESOLVED} {button type="link-button" icon="childticket" label="Create secondary ticket" tip="Create secondary ticket" href="?m=rtticketadd&parentid={$ticket.ticketid}"} {/if} {if count($ticket.images)} {button id="ticket-gallery-button" icon="gallery" label="Attachment gallery" tip="Attachment gallery" data_gallery="{base64_encode(json_encode($ticket.images))}"} {/if} {if $ticket.deleted == 1 && $ticket.deltime != 0 && (ConfigHelper::checkPrivilege('helpdesk_advanced_operations'))} {button id="restore-rtticket" icon="restore" label="Restore" tip="Restore" data_href="?m=rtrestore&id={$ticket.ticketid}&taction=restore" data_confirmation_text=trans('Are you sure, you want to restore ticket $a?', $ticket.ticketid) } {button id="remove-rtticket" icon="delete" label="Delete permanently" tip="Delete permanently" data_href="?m=rtticketdel&id={$ticket.ticketid}&taction=delperm" data_confirmation_text=trans('Are you sure, you want to permanently remove ticket $a?', $ticket.ticketid) } {else} {button id="delete-rtticket" icon="delete" label="Delete" tip="Delete" data_href="?m=rtticketdel&id={$ticket.ticketid}&taction=delete" data_confirmation_text=trans('Are you sure, you want to remove ticket $a?', $ticket.ticketid) } {/if} {button icon="link" class="lms-ui-button-clipboard" label="Copy link" data_clipboard_text=$ticketinfo_clipboard_text} {/buttons}
{block name="rtticketstats"} {if $stats}
{icon name="helpdesk" label="Requests causes (last year)" class="lms-ui-sortable-handle"} {trans("company's side")}: {$stats.2.num|default:0}, {trans("customer's side")}: {$stats.1.num|default:0}, {trans("unknown/other")}: {$stats.0.num|default:0}, {trans("all")}: {$stats.0.num+$stats.1.num+$stats.2.num}, {button href="?m=rtsearch&id={$customerinfo.id}" icon="helpdesk" label="Show tickets"}
{/if} {/block} {block name="rtticketcustomer"} {if $customerinfo}
{icon name="customer" class="lms-ui-sortable-handle" label=$customerinfo.customername} {icon name="home"} {$customerinfo.address}  {$customerinfo.zip} {$customerinfo.city} {if $customerinfo.phone} {icon name="phone"} {$customerinfo.phone|escape} {Utils::createCallPhoneUrl($customerinfo.phone)} {/if} {icon name="money"} {if $customerinfo.balance < 0}{/if}{$customerinfo.balance|money_format}{if $customerinfo.balance < 0}{/if} {if $customerinfo.groups} ({foreach from=$customerinfo.groups item=item name=groups}{$item.name}{if $smarty.foreach.groups.iteration < count($customerinfo.groups)}, {/if}{/foreach}) {/if}
{/if} {/block} {block name="rtticketnodes"} {if $customernodes} {include file="customer/customernodesbox.html"} {/if} {/block} {block name="rtticketeventlist"} {include file="rt/rtticketeventlist.html"} {/block} {block name="rtticketparentinfo"} {if $ticket.parentid} {include file="rt/rtticketparentinfo.html"} {/if} {/block} {block name="rtticketchildren"} {if $ticket.childtickets} {include file="rt/rtticketchildren.html"} {/if} {/block} {block name="rtticketrelated"} {if $ticket.relatedtickets} {include file="rt/rtticketrelatedlist.html"} {/if} {/block}