Change pane title for repeat configuration block
authorunknown <priyanka.karan26@gmail.com>
Thu, 6 Nov 2014 21:47:30 +0000 (21:47 +0000)
committerunknown <priyanka.karan26@gmail.com>
Thu, 6 Nov 2014 21:47:30 +0000 (21:47 +0000)
CRM/Core/Form/RecurringEntity.php
templates/CRM/Core/Form/RecurringEntity.tpl

index 7525890a2b665a11d567c908e844d7bf13a117c3..85c390ab5fabfab984e369e94465a97faa377bd5 100644 (file)
@@ -146,6 +146,12 @@ class CRM_Core_Form_RecurringEntity {
   }\r
 \r
   static function buildQuickForm(&$form) {\r
+    if (self::$_entityTable) {\r
+      $entityType = explode("_", self::$_entityTable);\r
+      if ($entityType[1]) {\r
+        $form->assign('entityType', ucwords($entityType[1]));\r
+      }\r
+    }\r
     $form->assign('currentEntityId', self::$_entityId);\r
     $form->assign('entityTable', self::$_entityTable);\r
     $form->assign('scheduleReminderId', self::$_scheduleReminderID);\r
index 50fedf2bbc323148dd548f8ae0762775089cef10..671471d3b60f8c80c333aae2c2724c2dc185589b 100644 (file)
@@ -25,7 +25,9 @@
 *}\r
 \r
 <div class="crm-block crm-form-block crm-core-form-recurringentity-block crm-accordion-wrapper" id="recurring-entity-block">\r
-    <div class="crm-accordion-header">Repeat Configuration</div>\r
+    <div class="crm-accordion-header">\r
+      Repeat {if $entityType}{$entityType}{/if}\r
+    </div>\r
     <div class="crm-accordion-body">\r
         <div class="crm-submit-buttons">\r
             {include file="CRM/common/formButtons.tpl" location="top"}\r