{** * templates/controllers/grid/settings/preparedEmails/form/emailTemplateForm.tpl * * Copyright (c) 2014-2019 Simon Fraser University * Copyright (c) 2003-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Form to edit or create a prepared email *}
{csrf} {include file="controllers/notification/inPlaceNotification.tpl" notificationId="emailTemplateFormNotification"} {if $isNewTemplate} {fbvFormArea id="emailTemplateData"}

{translate key="manager.emails.data"}

{fbvFormSection title="common.name" required="true" for="emailKey"} {fbvElement type="text" name="emailKey" id="emailKey" maxlength="120" required="true"} {/fbvFormSection} {/fbvFormArea} {else} {fbvFormArea id="emailTemplateData"}

{translate key="manager.emails.data"}

{if $description} {fbvFormSection title="common.description"}

{$description|escape}

{/fbvFormSection} {/if} {fbvFormSection title="manager.emails.emailKey" for="emailKey"} {fbvElement type="text" name="emailKey" value=$emailKey id="emailKey" disabled=true} {/fbvFormSection} {/fbvFormArea} {/if} {fbvFormArea id="emailTemplateDetails"}

{translate key="manager.emails.details"}

{fbvFormSection title="email.subject" required="true" for="subject"} {fbvElement type="text" multilingual="true" name="subject" id="subject" value=$subject maxlength="120" required="true"} {/fbvFormSection} {fbvFormSection title="email.body" required="true" for="body"} {fbvElement type="textarea" multilingual="true" name="body" id="body" value=$body rich=true required="true"} {/fbvFormSection} {/fbvFormArea}

{translate key="common.requiredField"}

{fbvFormButtons submitText="common.save"}