|
|
@@ -1,3 +1,8 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+$date_of_birth_parts = explode("-", $user->date_of_birth);
|
|
|
+
|
|
|
+?>
|
|
|
<script>
|
|
|
var userId = <?=$user->id?>;
|
|
|
</script>
|
|
|
@@ -85,7 +90,24 @@ var userId = <?=$user->id?>;
|
|
|
<div class="row mb-1">
|
|
|
<label class="col-sm-4 col-form-label" for="date-of-birth">Date of Birth</label>
|
|
|
<div class="col-sm">
|
|
|
- <input class="form-control" type="date" name="date_of_birth" id="date-of-birth" placeholder="YYYY-MM-DD" value="<?=htmlspecialchars($user->date_of_birth)?>" required />
|
|
|
+ <select class="form-control w-auto d-inline-block" name="date_of_birth_day" id="date-of-birth-day">
|
|
|
+ <option value="">Day</option>
|
|
|
+ <?php
|
|
|
+ Form::renderDayOptions($date_of_birth_parts[2]);
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ <select class="form-control w-auto d-inline-block" name="date_of_birth_month" id="date-of-birth-month">
|
|
|
+ <option value="">Month</option>
|
|
|
+ <?php
|
|
|
+ Form::renderMonthOptions($date_of_birth_parts[1]);
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ <select class="form-control w-auto d-inline-block" name="date_of_birth_year" id="date-of-birth-year">
|
|
|
+ <option value="">Year</option>
|
|
|
+ <?php
|
|
|
+ Form::renderYearOptionsDescending(null, null, $date_of_birth_parts[0]);
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|