Parent /child text on event dashboard
authorunknown <priyanka.karan26@gmail.com>
Sun, 7 Sep 2014 11:08:52 +0000 (12:08 +0100)
committerdeepak-srivastava <deepak.srivastava.0303@gmail.com>
Fri, 3 Oct 2014 08:55:16 +0000 (09:55 +0100)
CRM/Core/Form/RecurringEntity.php
CRM/Event/BAO/Event.php
templates/CRM/Event/Page/DashBoard.tpl

index 5f8ae2c68f4486224bfe7647f47f0cb4418e08b1..412cac8fdb378ba9c8a66374ec742c772d910e36 100644 (file)
@@ -93,7 +93,7 @@ class CRM_Core_Form_RecurringEntity {
     $form->addFormRule(array('CRM_Core_Form_RecurringEntity', 'formRule'));
     $form->addDate('repeat_absolute_date', ts('On'), FALSE, array('formatType' => 'mailing'));
     $form->addDate('exclude_date', ts('Exclude Date(s)'), FALSE);
-    $select = $form->add('select', 'exclude_date_list', ts(''), $form->_excludeDateInfo, FALSE, array('style' => 'width:200px;', 'size' => 4));
+    $select = $form->add('select', 'exclude_date_list', ts(''), $form->_excludeDateInfo, FALSE, array('style' => 'width:150px;', 'size' => 4));
     $select->setMultiple(TRUE);
     $form->addElement('button','add_to_exclude_list','>>','onClick="addToExcludeList(document.getElementById(\'exclude_date\').value);"'); 
     $form->addElement('button','remove_from_exclude_list', '<<', 'onClick="removeFromExcludeList(\'exclude_date_list\')"'); 
index a941e2b1ea09f455aa1f7290d5f6d97058c0e4c5..e56c286297ece9f56da2d8ed85d1f058646f5ba1 100644 (file)
@@ -404,7 +404,7 @@ SELECT     civicrm_event.id as id, civicrm_event.title as event_title, civicrm_e
            civicrm_event.slot_label_id,
            civicrm_event.summary as summary,
            civicrm_pcp_block.id as is_pcp_enabled,
-           civicrm_recurring_entity.id as is_repeating_event
+           civicrm_recurring_entity.parent_id as is_repeating_event
 FROM       civicrm_event
 LEFT JOIN  civicrm_option_value ON (
            civicrm_event.event_type_id = civicrm_option_value.value AND
index 8ed876fb7bc439e960d69fe95b59b404cb12fc67..3245caba67f26cd5c4be3fda43359b062debbaf3 100644 (file)
     <tbody>
     {foreach from=$eventSummary.events item=values key=id}
     <tr class="crm-event_{$id}">
-        <td class="crm-event-eventTitle"><a href="{crmURL p="civicrm/event/info" q="reset=1&id=`$id`"}" title="{ts}View event info page{/ts}">{$values.eventTitle}</a></td>
+        <td class="crm-event-eventTitle"><a href="{crmURL p="civicrm/event/info" q="reset=1&id=`$id`"}" title="{ts}View event info page{/ts}">{$values.eventTitle}</a>
+            {if $values.is_repeating_event}
+                <br/>
+                {if $values.is_repeating_event eq $id}
+                    <span>Repeating Event - (Parent)</span>
+                {else}
+                    <span>Repeating Event - (Child)</span>
+                {/if}
+            {/if}
+        </td>
         <td class="crm-event-id">{$id}</td>
         <td class="crm-event-eventType">{$values.eventType}</td>
         <td class="crm-event-isPublic">{$values.isPublic}</td>