{block name="eventlistboxrow"} {$_EVENTTYPES[$event.type]}{if $_EVENTTYPES[$event.type]}
{/if}{if $event.ticketid}{$event.ticketid|string_format:"%06d"}{/if} {if $event.endtime == 86400} {trans("whole day")} {else} {($event.date + $event.begintime)|date_format:"%H:%M"} {if $event.begintime != $event.endtime} - {($event.date + $event.endtime)|date_format:"%H:%M"} {/if} {if $event.multiday}
{trans("multi day")}{/if} {/if} {if $overdue == 1}
{$event.date|date_format:"%x"} {/if} {$imadded=0} {$user_row_limit = intval(ConfigHelper::getConfig('phpui.timetable_user_row_limit', 4))} {if !empty($event.userlist)} {if !$user_row_limit || count($event.userlist) <= $user_row_limit} {foreach $event.userlist as $user} {if $layout.logid == $user.id} {$imadded=1} {/if}
{$user.name|truncate:"25":"...":true} {/foreach} {else}
{$event.userlist|@count} {/if} {/if} {$event.title} {if !ConfigHelper::checkConfig('phpui.timetable_hide_description')}{if $event.description != ''}
{icon name="description"} {$event.description}{/if}{/if} {if $event.note != ''}
{icon name="note"} {$event.note}{/if} {if $event.netnode_name} {icon name="netnode"} {$event.netnode_name} {if !empty($event.netnode_location)}
{icon name="location"} {$event.netnode_location}{/if} {else} {if $event.customername} {icon name="customer"} {$event.customername|truncate:"30":"...":true}
{if !empty($event.address_id)} {icon name="location"} {$event.location} {elseif !empty($event.nodeid)} {$event.nodelocation} {else} {icon name="location"} {$event.customerlocation} {/if} {/if} {/if}
{buttons} {if !isset($eventlist_mode)} {icon name="timetable"} {/if} {icon name="clipboard"} {if ConfigHelper::checkPrivilege('timetable_management')} {button type="link" icon="clone" href="?m=eventadd&id={$event.id}" tip="Clone"} {if ($event.closed)} {$allow_modify = intval(ConfigHelper::getConfig('phpui.allow_modify_closed_events_newer_than', 604800))} {if !$allow_modify || ($smarty.now - $event.closeddate < $allow_modify) || ConfigHelper::checkPrivilege('superuser')} {button type="link" icon="open" onclick="location.href = '?m=eventedit&id={$event.id}&action=open&backid=' + $(this).closest('.event-day-table').attr('id');" tip="Open"} {/if} {else} {if $imadded} {button type="link" icon="owner" onclick="location.href = '?m=eventedit&id={$event.id}&action=unassign&backid=' + $(this).closest('.event-day-table').attr('id');" tip="Unassign"} {else} {button type="link" icon="owner" onclick="location.href = '?m=eventedit&id={$event.id}&action=assign&backid=' + $(this).closest('.event-day-table').attr('id');" tip="Assign"} {/if} {button type="link" icon="close" onclick="location.href = '?m=eventedit&id={$event.id}&action=close&backid=' + $(this).closest('.event-day-table').attr('id');" tip="Close"} {button type="link" class="event-edit" icon="edit" href="?m=eventedit&id={$event.id}&backid=" tip="Edit"} {button type="link" icon="note" onclick="location.href = '?m=eventnote&id={$event.id}&backid=' + $(this).closest('.event-day-table').attr('id');" tip="Add Note"} {button type="link" icon="delete" class="delete-event" href="?m=eventdel&id={$event.id}" tip="Delete permanently"} {/if} {/if} {/buttons}
{/block}