{** * templates/manager/emails/emails.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Display list of email templates in journal management. * *} {strip} {assign var="pageTitle" value="manager.emails"} {include file="common/header.tpl"} {/strip}
{iterate from=emailTemplates item=emailTemplate} {/iterate} {if $emailTemplates->wasEmpty()} {else} {/if}
 
{translate key="manager.emails.emailTemplates"} {translate key="email.sender"} {translate key="email.recipient"} {translate key="email.subject"} {translate key="common.action"}
 
{url|assign:"emailUrl" op="email" template=$emailTemplate->getEmailKey()} {$emailTemplate->getEmailKey()|escape|replace:"_":" "} {icon name="mail" url=$emailUrl} {translate key=$emailTemplate->getFromRoleName()} {translate key=$emailTemplate->getToRoleName()} {$emailTemplate->getSubject()|escape|truncate:50:"..."} getEmailKey()}" class="action">{translate key="common.edit"} {if $emailTemplate->getCanDisable() && !$emailTemplate->isCustomTemplate()} {if $emailTemplate->getEnabled() == 1} | getEmailKey()}" class="action">{translate key="manager.emails.disable"} {else} | getEmailKey()}" class="action">{translate key="manager.emails.enable"} {/if} {/if} {if $emailTemplate->isCustomTemplate()} | getEmailKey()}" onclick="return confirm('{translate|escape:"jsparam" key="manager.emails.confirmDelete"}')" class="action">{translate key="common.delete"} {else} | getEmailKey()}" onclick="return confirm('{translate|escape:"jsparam" key="manager.emails.confirmReset"}')" class="action">{translate key="manager.emails.reset"} {/if}
 
{translate key="common.none"}
 
{page_info iterator=$emailTemplates} {page_links anchor="emails" name="emails" iterator=$emailTemplates}

{translate key="manager.emails.createEmail"}
{translate key="manager.emails.resetAll"}
{include file="common/footer.tpl"}