$form->add('select', 'custom_post_id', ts('Include Profile') . '<br />' . ts('(bottom of page)'), $mainProfiles);
$form->add('select', 'additional_custom_pre_id', ts('Profile for Additional Participants') . '<br />' . ts('(top of page)'), $addtProfiles);
- $form->add('select', 'additional_custom_post_id', ts('Profile for Additional Participants') . '<br />' . ts('(bottom of page)'), $addtProfiles);
+ // Allow user to NOT provide a bottom profile for Additional Participant registration
+ $form->add('select', 'additional_custom_post_id', ts('Profile for Additional Participants') . '<br />' . ts('(bottom of page)'), array('none' => ts('- no profile -')) + $addtProfiles);
}
function buildMultipleProfileBottom(&$form, $count, $prefix = '', $name = 'Include Profile') {
if ($prefix == 'additional_') {
$mainProfiles = array(
- '' => ts('- same as for main contact -')) + $profiles;
+ '' => ts('- same as for main contact -'), 'none' => ts('- no profile -')) + $profiles;
}
else {
$mainProfiles = array(
{/if}
<tr class='crm-event-manage-registration-form-block-create-new-profile'>
<td class="label"></td>
- <td><a href="{crmURL p='civicrm/admin/uf/group/add' q='reset=1&action=add'}" target="_blank">{ts}Click here for new profile{/ts}</a></td>
+ <td><a href="{crmURL p='civicrm/admin/uf/group/add' q='reset=1&action=add'}" target="_blank">{ts}Click here to create a new profile{/ts}</a></td>
</tr>
</table>
</div>