$this->_freqUnits = CRM_Core_SelectValues::getRecurringFrequencyUnits();
//reminder_interval
- $this->add('number', 'start_action_offset', ts('When'), ['class' => 'six', 'min' => 0]);
+ $this->add('number', 'start_action_offset', ts('When (trigger date)'), ['class' => 'six', 'min' => 0]);
$this->addRule('start_action_offset', ts('Value should be a positive number'), 'positiveInteger');
$isActive = ts('Scheduled Reminder Active');
</tr>
<tr class="crm-scheduleReminder-effective_start_date">
<td class="right">{$form.effective_start_date.label}</td>
- <td colspan="3">{$form.effective_start_date.html} <div class="description"></div></td>
+ <td colspan="3">{$form.effective_start_date.html} <div class="description">{ts}Earliest trigger date to <em>include</em>.{/ts}</div></td>
</tr>
<tr class="crm-scheduleReminder-effective_end_date">
<td class="right">{$form.effective_end_date.label}</td>
- <td colspan="3">{$form.effective_end_date.html} <div class="description"></div></td>
+ <td colspan="3">{$form.effective_end_date.html} <div class="description">{ts}Earliest trigger date to <em>exclude</em>.{/ts}</div></td>
</tr>
<tr>
<td class="label" width="20%">{$form.from_name.label}</td>
var $form = $('form.{/literal}{$form.formClass}{literal}'),
recipientMapping = eval({/literal}{$recipientMapping}{literal});
- updatedEffectiveDateDescription($('#entity_0 option:selected').text(), $('#start_action_date option:selected').text());
- $('#entity_0, #start_action_date', $form).change(function() {
- updatedEffectiveDateDescription($('#entity_0 option:selected').text(), $('#start_action_date option:selected').text());
- });
-
$('#absolute_date', $form).change(function() {
$('.crm-scheduleReminder-effective_start_date, .crm-scheduleReminder-effective_end_date').toggle(($(this).val() === null));
});
loadMsgBox();
$('#mode', $form).change(loadMsgBox);
- function updatedEffectiveDateDescription(entityText, startActionDateText) {
- $('.crm-scheduleReminder-effective_start_date .description').text(ts('Earliest %1 %2 to include.', {1: entityText, 2: startActionDateText}));
- $('.crm-scheduleReminder-effective_end_date .description').text(ts('Earliest %1 %2 to exclude.', {1: entityText, 2: startActionDateText}));
- }
-
function populateRecipient() {
var mappingID = $('#entity_0', $form).val() || $('[name^=mappingID]', $form).val();
var recipient = $("#recipient", $form).val();