public function assignToTemplate() {
$notifyingStatuses = array('Pending from waitlist', 'Pending from approval', 'Expired', 'Cancelled');
$notifyingStatuses = array_intersect($notifyingStatuses, CRM_Event_PseudoConstant::participantStatus());
- $statuses = implode(', ', $notifyingStatuses);
- $status = ts('Participants whose status is changed FROM Pending Pay Later TO Registered or Attended will receive a confirmation email and their payment status will be set to completed. If this is not you want to do, you can change their participant status by editing their event registration record directly.');
+ $this->assign('status', TRUE);
if (!empty($notifyingStatuses)) {
- $status .= '<br />' . ts("Participants whose status is changed TO any of the following will be automatically notified via email: %1", array(1 => $statuses));
+ $this->assign('notifyingStatuses', implode(', ', $notifyingStatuses));
}
- $this->assign('status', $status);
}
}
'result' => TRUE,
),
15 => array(
- 'title' => ts('Participant status - change (emails sent)'),
+ 'title' => ts('Participant status - change'),
'class' => 'CRM_Event_Form_Task_ParticipantStatus',
'result' => TRUE,
),
{if $context EQ 'statusChange'} {* Update Participant Status task *}
{ts}Update the status for each participant individually, OR change all statuses to:{/ts}
{$form.status_change.html} {help id="id-status_change"}
- <div class="status">{$status}</div>
+ {if $status}
+ <div class="status">
+ {ts}Participants whose status is changed FROM Pending Pay Later TO Registered or Attended will receive a confirmation email and their payment status will be set to completed. If this is not you want to do, you can change their participant status by editing their event registration record directly.{/ts}
+ {if $notifyingStatuses}
+ <br />
+ {ts 1=$notifyingStatuses}Participants whose status is changed TO any of the following will be automatically notified via email: %1{/ts}
+ {/if}
+ </div>
+ {/if}
{else}
{if $statusProfile EQ 1} {* Update Participant Status in batch task *}
<div class="status">{$status}</div>