{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://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 ne 'userTemplates' and ($canEditSystemTemplates or $canEditMessageTemplates) ) or ( $type eq 'userTemplates'and ($canEditUserDrivenMessageTemplates or $canEditMessageTemplates) )}
{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) }
{icon icon="fa-info-circle"}{/icon} {ts 1=$crmURL}There are no User-driven Message Templates entered. You can add one.{/ts}
{/if}
{/if} {/foreach}
{include file="CRM/common/TabHeader.tpl"} {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}