Merge pull request #2495 from civicrm/4.4
[civicrm-core.git] / templates / CRM / Mailing / Page / Component.tpl
index 8dc5f8e163d1d7d94b2afe2b866addd497af172b..6df09388cfb8b361bd01b9a169e6802f3cbeb26d 100644 (file)
@@ -32,7 +32,8 @@
     <div class="form-item">
        {strip}
        {* handle enable/disable actions*}
-       {include file="CRM/common/enableDisable.tpl"}
+       {include file="CRM/common/enableDisableApi.tpl"}
+       {include file="CRM/common/crmeditable.tpl"}
        <table cellpadding="0" cellspacing="0" border="0">
         <thead class="sticky">
         <th>{ts}Name{/ts}</th>
@@ -45,8 +46,8 @@
         <th></th>
         </thead>
        {foreach from=$rows item=row}
-         <tr id="row_{$row.id}" class="{cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
-           <td>{$row.name}</td>
+         <tr id="mailing_component-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class}{if NOT $row.is_active} disabled{/if}">
+           <td class="crm-editable" data-field="name">{$row.name}</td>
            <td>{$row.component_type}</td>
            <td>{$row.subject}</td>
            <td>{$row.body_text}</td>