Skip to content

Commit

Permalink
Refs #27340, Modify parent register settings error.
Browse files Browse the repository at this point in the history
  • Loading branch information
junsuwhy committed Jul 24, 2020
1 parent 26dd177 commit 3e0fadc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions civicrm_event_parent/civicrm_event_parent.module
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function civicrm_event_parent_civicrm_buildForm( $formName, &$form ) {
$sel_html = $sel->toHtml();
$sel_html = '<tr class="crm-event-manage-registration-form-block-'.$sel_id.'"><td scope="row" class="label" width="20%"><label for="'.$sel_id.'">'.t('Parent Relationship').'</label></td><td>'.$sel_html.'<br /><span class="description">'.t('Relationship type for registeration agent of participant. When enable this feature with profile option above, event registration will have two form to complete. One is profile crate form, another is normal event register. When a participant go join the event, they will bring to first form of profile to fill in agent information. After that, the form will redirect to normal event registeration. And these two individual will connect with seleted relationship of this option.').'</span></td></tr>';
$sel_html = str_replace("\n", "", $sel_html);
$sel_html = str_replace("'", "\'", $sel_html);
drupal_add_js("jQuery(document).ready(function($){ var parent_relation_html = '{$sel_html}'; $(parent_relation_html).insertBefore('.crm-event-manage-registration-form-block-custom_pre_id'); });",'inline', 'footer');


Expand All @@ -107,6 +108,7 @@ function civicrm_event_parent_civicrm_buildForm( $formName, &$form ) {
$sel_html = $sel->toHtml();
$sel_html = '<tr class="crm-event-manage-registration-form-block-'.$sel_id.'"><td scope="row" class="label" width="20%"><label for="'.$sel_id.'">'.t('Parent Profile').'</label></td><td>'.$sel_html.'<br /><span class="description">'.t('Pre-registeration profile for registration agent. Using this option will also need to config relationship type below. This form will only collect contact data and build relationships. People who enter this form will not count in participant.').'<br />'.t('You may need to visit this event registeration page by <strong>anonymous user</strong> and <strong>logged user</strong>, to make sure whole process fit your needs.').'</span></td></tr>';
$sel_html = str_replace("\n", "", $sel_html);
$sel_html = str_replace("'", "\'", $sel_html);
drupal_add_js("jQuery(document).ready(function($){ var parent_relation_html = '{$sel_html}'; $(parent_relation_html).insertBefore('.crm-event-manage-registration-form-block-custom_pre_id'); });",array('type' => 'inline', 'scope' => 'footer'));

}
Expand Down

0 comments on commit 3e0fadc

Please sign in to comment.