Merge pull request #2937 from seamuslee001/master
[civicrm-core.git] / templates / CRM / Badge / Page / Layout.tpl
index 6701144f42d6dc737c129d9cb4406229966576b3..e84ed6007b751502de5b112fd087e301cb78c4df 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -35,7 +35,8 @@
     <div id="badge-layout">
       {strip}
       {* handle enable/disable actions*}
-        {include file="CRM/common/enableDisable.tpl"}
+        {include file="CRM/common/enableDisableApi.tpl"}
+        {include file="CRM/common/crmeditable.tpl"}
         {include file="CRM/common/jsortable.tpl"}
         <table id="options" class="display">
           <thead>
           </tr>
           </thead>
           {foreach from=$rows item=row}
-            <tr id="row_{$row.id}"
-                class="{cycle values="odd-row,even-row"} {$row.class} crm-badge-layout {if NOT $row.is_active} disabled{/if}">
-              <td class="crm-badge-layout-title">{$row.title}</td>
-              <td class="crm-badge-layout-description">{$row.description}</td>
+            <tr id="print_label-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class} crm-badge-layout {if NOT $row.is_active} disabled{/if}">
+              <td class="crm-badge-layout-title crm-editable" data-field="title">{$row.title}</td>
+              <td class="crm-badge-layout-description crm-editable" data-field="description" data-type="textarea">{$row.description}</td>
               <td id="row_{$row.id}_status" class="crm-badge-layout-is_active">
                 {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}
               </td>