//Bulkmail checkbox
$form->assign('multipleBulk', $multipleBulk);
$js = array('id' => "Email_" . $blockId . "_IsBulkmail" , 'aria-label' => ts('Bulk Mailing for Email %1?', [1 => $blockId]));
- if ($multipleBulk) {
- $form->addElement('advcheckbox', "email[$blockId][is_bulkmail]", NULL, '', $js);
- }
- else {
- if (!$blockEdit) {
- $js['onClick'] = 'singleSelect( this.id );';
- }
- $form->addElement('radio', "email[$blockId][is_bulkmail]", '', '', '1', $js);
+ if (!$blockEdit) {
+ $js['onClick'] = 'singleSelect( this.id );';
}
+ $form->addElement('advcheckbox', "email[$blockId][is_bulkmail]", NULL, '', $js);
//is_Primary radio
$js = array('id' => "Email_" . $blockId . "_IsPrimary", 'aria-label' => ts('Email %1 is primary?', [1 => $blockId]));