2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2018 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
26 {if $action eq 1 or $action eq 2}
27 {include file="CRM/Mailing/Form/Component.tpl"}
32 <div class="form-item">
34 {* handle enable/disable actions*}
35 {include file="CRM/common/enableDisableApi.tpl"}
36 <table cellpadding="0" cellspacing="0" border="0">
37 <thead class="sticky">
38 <th>{ts}Name{/ts}</th>
39 <th>{ts}Type{/ts}</th>
40 <th>{ts}Subject{/ts}</th>
41 <th>{ts}Body HTML{/ts}</th>
42 <th>{ts}Body Text{/ts}</th>
43 <th>{ts}Default?{/ts}</th>
44 <th>{ts}Enabled?{/ts}</th>
47 {foreach from=$rows item=row}
48 <tr id="mailing_component-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
49 <td class="crm-editable" data-field="name">{$row.name}</td>
50 <td>{$row.component_type}</td>
51 <td>{$row.subject}</td>
52 <td>{$row.body_html|escape}</td>
53 <td>{$row.body_text|escape}</td>
54 <td>{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if} </td>
55 <td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
56 <td>{$row.action|replace:'xx':$row.id}</td>
62 {if $action ne 1 and $action ne 2}
64 <div class="action-link">
65 {crmButton q="action=add&reset=1" icon="plus-circle"}{ts}Add Mailing Component{/ts}{/crmButton}