{** * email.tpl * * Copyright (c) 2000-2008 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Generic email template form * * $Id: email.tpl,v 1.7 2008/04/04 17:06:53 asmecher Exp $ *} {assign var="pageTitle" value="email.compose"} {assign var="pageCrumbTitle" value="email.email"} {include file="common/header.tpl"}
{if $hiddenFormParams} {foreach from=$hiddenFormParams item=hiddenFormParam key=key} {/foreach} {/if} {if $attachmentsEnabled} {foreach from=$persistAttachments item=temporaryFile} {/foreach} {/if} {include file="common/formErrors.tpl"} {foreach from=$errorMessages item=message} {if !$notFirstMessage} {assign var=notFirstMessage value=1}

{translate key="form.errorsOccurred"}


{/if} {if $addressFieldsEnabled} {/if}{* $addressFieldsEnabled *} {if $attachmentsEnabled} {/if}
{fieldLabel name="to" key="email.to"} {foreach from=$to item=toAddress}
{foreachelse} {/foreach} {if $blankTo} {/if}
{fieldLabel name="cc" key="email.cc"} {foreach from=$cc item=ccAddress}
{foreachelse} {/foreach} {if $blankCc} {/if}
{fieldLabel name="bcc" key="email.bcc"} {foreach from=$bcc item=bccAddress}
{foreachelse} {/foreach} {if $blankBcc} {/if}
{if $senderEmail}
   {/if}
 
{translate key="email.attachments"} {assign var=attachmentNum value=1} {foreach from=$persistAttachments item=temporaryFile} {$attachmentNum|escape}. {$temporaryFile->getOriginalFileName()|escape}  ({$temporaryFile->getNiceFileSize()})  {translate key="common.delete"}
{assign var=attachmentNum value=$attachmentNum+1} {/foreach} {if $attachmentNum != 1}
{/if}
 
{translate key="email.from"} {$from|escape}
{fieldLabel name="subject" key="email.subject"}
{fieldLabel name="body" key="email.body"}

{if !$disableSkipButton} {/if}

{include file="common/footer.tpl"}