Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
232624b1 | 3 | | CiviCRM version 4.4 | |
6a488035 TO |
4 | +--------------------------------------------------------------------+ |
5 | | Copyright CiviCRM LLC (c) 2004-2013 | | |
6 | +--------------------------------------------------------------------+ | |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
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. | | |
12 | | | | |
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. | | |
17 | | | | |
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 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | {if $action eq 1 or $action eq 2} | |
27 | {include file="CRM/Mailing/Form/Component.tpl"} | |
28 | {else} | |
29 | ||
30 | <div id="ltype"> | |
31 | <p></p> | |
32 | <div class="form-item"> | |
33 | {strip} | |
34 | {* handle enable/disable actions*} | |
4d17a233 CW |
35 | {include file="CRM/common/enableDisableApi.tpl"} |
36 | {include file="CRM/common/crmeditable.tpl"} | |
6a488035 TO |
37 | <table cellpadding="0" cellspacing="0" border="0"> |
38 | <thead class="sticky"> | |
39 | <th>{ts}Name{/ts}</th> | |
40 | <th>{ts}Type{/ts}</th> | |
41 | <th>{ts}Subject{/ts}</th> | |
42 | <th>{ts}Body Text{/ts}</th> | |
43 | <th>{ts}Body HTML{/ts}</th> | |
44 | <th>{ts}Default?{/ts}</th> | |
45 | <th>{ts}Enabled?{/ts}</th> | |
46 | <th></th> | |
47 | </thead> | |
48 | {foreach from=$rows item=row} | |
d615ccf5 CW |
49 | <tr id="mailing_component-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}"> |
50 | <td class="crm-editable" data-field="name">{$row.name}</td> | |
6a488035 TO |
51 | <td>{$row.component_type}</td> |
52 | <td>{$row.subject}</td> | |
53 | <td>{$row.body_text}</td> | |
54 | <td>{$row.body_html|escape}</td> | |
55 | <td>{if $row.is_default eq 1}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Default{/ts}" />{/if} </td> | |
56 | <td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> | |
57 | <td>{$row.action|replace:'xx':$row.id}</td> | |
58 | </tr> | |
59 | {/foreach} | |
60 | </table> | |
61 | {/strip} | |
62 | ||
63 | {if $action ne 1 and $action ne 2} | |
64 | <br/> | |
65 | <div class="action-link"> | |
66 | <a href="{crmURL q="action=add&reset=1"}" class="button"><span><div class="icon add-icon"></div>{ts}Add Mailing Component{/ts}</span></a> | |
67 | </div> | |
68 | {/if} | |
69 | </div> | |
70 | </div> | |
232624b1 | 71 | {/if} |