Browse Source

Make DOB fields required

Alan Lam 7 years ago
parent
commit
f32f291b12
1 changed files with 3 additions and 3 deletions
  1. 3 3
      views/register.php

+ 3 - 3
views/register.php

@@ -98,19 +98,19 @@ $newsletter_consent_checked = ($user->newsletter_consent) ? "checked" : "";
 				<div class="row mb-1">
 					<label class="col-sm-4 col-form-label"  for="date-of-birth"><?=htmlspecialchars(__("Date of Birth"))?></label>
 					<div class="col-sm">
-						<select class="form-control w-auto d-inline-block" name="date_of_birth_day" id="date-of-birth-day">
+						<select class="form-control w-auto d-inline-block" name="date_of_birth_day" id="date-of-birth-day" required>
 							<option value=""><?=htmlspecialchars(__("Day"))?></option>
 							<?php
 							Form::renderDayOptions();
 							?>
 						</select>
-						<select class="form-control w-auto d-inline-block" name="date_of_birth_month" id="date-of-birth-month">
+						<select class="form-control w-auto d-inline-block" name="date_of_birth_month" id="date-of-birth-month" required>
 							<option value=""><?=htmlspecialchars(__("Month"))?></option>
 							<?php
 							Form::renderMonthOptions();
 							?>
 						</select>
-						<select class="form-control w-auto d-inline-block" name="date_of_birth_year" id="date-of-birth-year">
+						<select class="form-control w-auto d-inline-block" name="date_of_birth_year" id="date-of-birth-year" required>
 							<option value=""><?=htmlspecialchars(__("Year"))?></option>
 							<?php
 							Form::renderYearOptionsDescending();