Tribes now selectable on signup
This commit is contained in:
@ -62,11 +62,19 @@ function registrationForm(int $eventId, string $targetPage) : string
|
||||
$registerForm
|
||||
);
|
||||
|
||||
$tribes_array = unserialize($event->contributing_tribes);
|
||||
$tribes = '';
|
||||
foreach ($tribes_array as $tribe) {
|
||||
$tribes .= '<option value="' . $tribe . '">' . $tribe . '</option>';
|
||||
}
|
||||
|
||||
|
||||
$registerForm = str_replace('{{startdate}}', $event->startdatum, $registerForm);
|
||||
$registerForm = str_replace('{{enddate}}', $event->enddatum, $registerForm);
|
||||
$registerForm = str_replace('{{amount_reduced}}', $event->amount_reduced, $registerForm);
|
||||
$registerForm = str_replace('{{amount_default}}', $event->amount_default, $registerForm);
|
||||
$registerForm = str_replace('{{amount_social}}', $event->amount_social, $registerForm);
|
||||
$registerForm = str_replace('{{beteiligte_gruppen}}', $tribes, $registerForm);
|
||||
|
||||
|
||||
$registerForm = str_replace('{{URL}}', $targetPage, $registerForm);
|
||||
|
Reference in New Issue
Block a user