{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content}

{$layout.pagetitle}

{block name="event_note_table"} {if $event.description} {/if} {/block}
{icon name="calendar"} {trans("Title")} {$event.title}
{icon name="calendar"} {trans("Time")} {$event.date|date_format:"%x (%A)"} {if $event.wholedays} - {trans("whole day")} {else} {math equation="floor(x / 3600)" x=$event.begintime format="%02d"}:{math equation="x % 3600" x=$event.begintime format="%02d"} {if $event.begintime != $event.endtime} - {math equation="floor(x / 3600)" x=$event.endtime format="%02d"}:{math equation="x % 3600" x=$event.endtime format="%02d"} {/if} {if $event.multiday}
{trans("multi day")} {/if} {/if}
{icon name="description"} {trans("Description")}
{$event.description|escape|replace:"\n":"
"}
{icon name="permissions"} {trans("Status")} {if $event.private} {trans("private")} {else} {trans("public")} {/if}
{icon name="customer"} {trans("Customer")} {if $event.customername} {$event.customername} {else} - {trans("none")} - {/if}
{icon name="note"} {trans("Note")}
{icon name="user"} {trans("Users")} {foreach $event.userlist as $user} {$user.name|escape} {if !$user@last}
{/if} {foreachelse} {trans("- none -")} {/foreach}
{button onclick="document.event.submit()" accesskey="s" icon="save" label="Submit"} {button href=$backurl icon="cancel" label="Cancel"}
{/block}