4 * Copyright (c) 2003-2008 John Willinsky
5 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9 * $Id: editEmail.tpl,v 1.1.1.1 2008/10/20 21:27:09 tylerl Exp $
12 {translate|escape|assign:"pageTitleTranslated" key="plugins.generic.translator.email.edit" emailKey=$emailKey}
13 {include file="common/header.tpl"}
16 <p>{translate key="plugins.generic.translator.email.description"}</p>
18 <form method="post" action="{url op="saveEmail" path=$locale|to_array:$emailKey}" name="editor">
19 <input type="hidden" name="returnToCheck" value="{$returnToCheck|default:0}" />
21 <h3>{translate key="plugins.generic.translator.email.reference"}</h3>
22 <input type="text" class="textField" name="referenceSubject" value="{$referenceEmail.subject|escape}" size="80" readonly="true" />
23 <textarea readonly="true" name="referenceBody" rows="12" cols="80" class="textArea">
24 {$referenceEmail.body|escape}
26 <textarea readonly="true" name="referenceDescription" rows="3" cols="80" class="textArea">
27 {$referenceEmail.description|escape}
30 <h3>{translate key="plugins.generic.translator.email.translation"}</h3>
31 <input type="text" class="textField" name="subject" value="{$email.subject|escape}" size="80" />
32 <textarea name="body" rows="12" cols="80" class="textArea">
35 <textarea name="description" rows="3" cols="80" class="textArea">
36 {$email.description|escape}
39 <input type="submit" class="button defaultButton" value="{translate key="common.save"}" /> <input type="button" class="button" value="{translate key="common.cancel"}" onclick="document.location.href='{url op="edit" path=$locale escape=false}'" /> <input type="reset" class="button" value="{translate key="plugins.generic.translator.email.reset"}" onclick="return confirm('{translate|escape:"jsparam" key="plugins.generic.translator.email.resetConfirm"}')" /> <input type="button" class="button" value="{translate key="plugins.generic.translator.email.resetToReference"}" onclick="if (confirm('{translate|escape:"jsparam" key="plugins.generic.translator.email.resetConfirm"}')) {literal}{document.editor.body.value = document.editor.referenceBody.value; document.editor.subject.value = document.editor.referenceSubject.value; document.editor.description.value = document.editor.referenceDescription.value;}{/literal}" />
42 {include file="common/footer.tpl"}