{* +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {if $action eq 1 or $action eq 2} {include file="CRM/Mailing/Form/Component.tpl"} {else}

{strip} {* handle enable/disable actions*} {include file="CRM/common/enableDisableApi.tpl"} {foreach from=$rows item=row} {/foreach}
{ts}Name{/ts} {ts}Type{/ts} {ts}Subject{/ts} {ts}Body HTML{/ts} {ts}Body Text{/ts} {ts}Default?{/ts} {ts}Enabled?{/ts}
{$row.name} {$row.component_type} {$row.subject} {$row.body_html|escape} {$row.body_text|escape} {icon condition=$row.is_default}{ts}Default{/ts}{/icon}  {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} {$row.action|replace:'xx':$row.id}
{/strip} {if $action ne 1 and $action ne 2}
{/if}
{/if}