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

{$layout.pagetitle}

{foreach $templates as $template} {foreachelse} {/foreach}
{trans("Type:")} {trans("Name:")} {trans("Subject:")} {trans("Message:")} {trans("Queues:")} {trans("Message types:")}  
{trans("Filter:")} {trans("Type:")}
{$template.name} {$template.subject} {$template.message|truncate:5000:"..."|replace:"\n":"
"}
{$template.queuenames} {if !empty($template.messagetypes)} {foreach explode(',', $template.messagetypes) as $type} {if $type == $smarty.const.RTMESSAGE_REGULAR} {trans("message")}{if !$type@last},{/if} {elseif $type == $smarty.const.RTMESSAGE_NOTE} {trans("note")}{if !$type@last},{/if} {/if} {/foreach} {/if} {button type="link" class="edit-template-dialog-btn" icon="edit" tip="Edit" onclick="javascript:open_edit_dialog({$template.id});"} {button type="link" href="?m=messagetemplatedel&id={$template.id}" icon="delete" tip="Delete" onclick="return confirmLink(this, '{t}Are you sure, you want to delete that message template?{/t}')"}

{trans("No message templates in database.")}

{button icon="add" class="add-template-dialog-btn" tip="Add" label="Add" onclick="javascript:open_add_dialog();"} {button icon="delete" id="delete-message-templates" tip="Delete" label="Delete"}
{include file='message/messagetemplatedialog.html' operation="add"} {include file='message/messagetemplatedialog.html' operation="edit"} {/block}