{* +--------------------------------------------------------------------+ | CiviCRM version 4.4 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2013 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | | CiviCRM is free software; you can copy, modify, and distribute it | | under the terms of the GNU Affero General Public License | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | | | CiviCRM is distributed in the hope that it will be useful, but | | WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | See the GNU Affero General Public License for more details. | | | | You should have received a copy of the GNU Affero General Public | | License and the CiviCRM Licensing Exception along | | with this program; if not, contact CiviCRM LLC | | at info[AT]civicrm[DOT]org. If you have questions about the | | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* this template is used for adding/editing/deleting Message Templates *} {capture assign=tokenDocsRepeated}{docURL page="user/common-workflows/tokens-and-mail-merge" text="token documentation"}{/capture}

{if $action eq 1}{ts}New Message Template{/ts}{elseif $action eq 2}{ts}Edit Message Template{/ts}{else}{ts}Delete Message Template{/ts}{/if}

{if $action neq 8}
{ts}Use this form to add or edit re-usable message templates.{/ts} {help id="id-intro" file="CRM/Admin/Page/MessageTemplates.hlp"}
{/if}
{if $action eq 8}
{ts}Do you want to delete this message template?{/ts}
{else}
{include file="CRM/common/formButtons.tpl" location="top"}
{$form.msg_title.label} {$form.msg_title.html}
{ts}Descriptive title of message - used for template selection.{/ts}
{$form.msg_subject.label} {$form.msg_subject.html|crmAddClass:huge} {$form.token3.label} {help id="id-token-text" file="CRM/Contact/Form/Task/Email.hlp"}
{ts}Subject for email message.{/ts} {ts 1=$tokenDocsRepeated}Tokens may be included (%1).{/ts}
{ts}Plain-Text Format{/ts}
{$form.token1.label} {help id="id-token-text" file="CRM/Contact/Form/Task/Email.hlp"}
{$form.msg_text.html|crmAddClass:huge}
{ts}Text formatted message.{/ts} {ts 1=$tokenDocsRepeated}Tokens may be included (%1).{/ts}
{ts}HTML Format{/ts} {help id="id-message-text" file="CRM/Contact/Form/Task/Email.hlp"}
{$form.token2.label} {help id="id-token-html" file="CRM/Contact/Form/Task/Email.hlp"}
{$form.msg_html.html}
{ts}You may optionally create an HTML formatted version of this message. It will be sent to contacts whose Email Format preference is 'HTML' or 'Both'.{/ts} {ts 1=$tokenDocsRepeated}Tokens may be included (%1).{/ts}
{$form.pdf_format_id.label}
{$form.pdf_format_id.html} {help id="id-msg-template" file="CRM/Contact/Form/Task/PDFLetterCommon.hlp"}
{ts}Page format to use when creating PDF files using this template.{/ts}
{if !$workflow_id}
{$form.is_active.label} {$form.is_active.html}
{/if} {/if}
{include file="CRM/common/formButtons.tpl" location="bottom"}

{include file="CRM/Mailing/Form/InsertTokens.tpl"} {literal} {/literal}