{* +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {capture assign=crmURL}{crmURL p='civicrm/admin/messageTemplates/add' q="action=add&reset=1"}{/capture} {if $action eq 1 or $action eq 2 or $action eq 8} {include file="CRM/Admin/Form/MessageTemplates.tpl"} {elseif $action eq 4} {* View a system default workflow template *}
{ts}You are viewing the default message template for this system workflow.{/ts} {help id="id-view_system_default"}
{$form.msg_title.value}

{$form.msg_subject.label}

{$form.msg_text.label}

{$form.msg_html.label}

{$form.pdf_format_id.label}

{$form.pdf_format_id.html}
{$form.buttons.html}
{/if} {if $rows and $action ne 2 and $action ne 4}
{* create two selector tabs, first being the ‘user’ one, the second being the ‘workflow’ one *} {include file="CRM/common/enableDisableApi.tpl"} {include file="CRM/common/jsortable.tpl"} {foreach from=$rows item=template_row key=type}
{if $type eq 'userTemplates'} {capture assign=schedRemURL}{crmURL p='civicrm/admin/scheduleReminders' q="reset=1"}{/capture} {ts 1=$schedRemURL}Message templates allow you to easily create similar emails or letters on a recurring basis. Messages used for membership renewal reminders, as well as event and activity related reminders should be created via Schedule Reminders.{/ts} {if array_search('CiviMail', $config->enableComponents)} {capture assign=automatedMsgURL}{crmURL p='civicrm/admin/component' q="reset=1"}{/capture} {ts 1=$automatedMsgURL}You can also use message templates for CiviMail (bulk email) content. However, subscribe, unsubscribe and opt-out messages are configured at Administer > CiviMail > Headers, Footers and Automated Messages.{/ts} {/if} {help id="id-intro"} {else} {ts}System workflow message templates are used to generate the emails sent to constituents and administrators for contribution receipts, event confirmations and many other workflows. You can customize the style and wording of these messages here.{/ts} {help id="id-system-workflow"} {/if}
{if $action ne 1 and $action ne 2 and $type eq 'userTemplates'}
{/if} {if !empty( $template_row) } {if $type eq 'userTemplates'} {/if} {foreach from=$template_row item=row} {if $type eq 'userTemplates'} {/if} {/foreach}
{if $type eq 'userTemplates'}{ts}Message Title{/ts}{else}{ts}Workflow{/ts}{/if}{ts}Message Subject{/ts} {ts}Enabled?{/ts}
{$row.msg_title}{$row.msg_subject} {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}{$row.action|replace:'xx':$row.id}
{/if} {if $action ne 1 and $action ne 2 and $type eq 'userTemplates'}
{/if} {if empty( $template_row) }
  {ts 1=$crmURL}There are no User-driven Message Templates entered. You can add one.{/ts}
{/if}
{/foreach}
{elseif $action ne 1 and $action ne 2 and $action ne 4 and $action ne 8}
{ts}status{/ts} {ts 1=$crmURL}There are no Message Templates entered. You can add one.{/ts}
{/if}