Add bottom margin to consent checkbox, mark mobile number as required

2022-03-24
Luca 3 years ago
parent 673aa60bcd
commit c585115e2a

@ -336,7 +336,7 @@ function guest_register()
div('col', [ div('col', [
form_text( form_text(
'mobile', 'mobile',
__('Mobile'), __('Mobile') . ' ' . entry_required(),
$mobile, $mobile,
false, false,
40, 40,

@ -177,7 +177,7 @@ function form_checkbox($name, $label, $selected, $value = 'checked', $html_id =
$html_id = $name; $html_id = $name;
} }
return '<div class="checkbox"><label>' return '<div class="checkbox mb-3"><label>'
. '<input type="checkbox" id="' . $html_id . '" name="' . $name . '" value="' . htmlspecialchars((string)$value) . '" ' . '<input type="checkbox" id="' . $html_id . '" name="' . $name . '" value="' . htmlspecialchars((string)$value) . '" '
. ($selected ? ' checked="checked"' : '') . ' /> ' . ($selected ? ' checked="checked"' : '') . ' /> '
. $label . $label

Loading…
Cancel
Save