|
@@ -1,3 +1,11 @@
|
|
|
|
|
+<?php
|
|
|
|
|
+
|
|
|
|
|
+$unix_default = strtotime("+7 DAYS");
|
|
|
|
|
+$selected_year = date("Y", $unix_default);
|
|
|
|
|
+$selected_month = date("n", $unix_default);
|
|
|
|
|
+$selected_day = date("j", $unix_default);
|
|
|
|
|
+
|
|
|
|
|
+?>
|
|
|
<div class="modal fade" id="modal-assign-tester" tabindex="-1" role="dialog">
|
|
<div class="modal fade" id="modal-assign-tester" tabindex="-1" role="dialog">
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
|
<div class="modal-content">
|
|
<div class="modal-content">
|
|
@@ -52,19 +60,19 @@
|
|
|
<select class="form-control w-auto d-inline-block" name="day" id="assign-day">
|
|
<select class="form-control w-auto d-inline-block" name="day" id="assign-day">
|
|
|
<option value="">Day</option>
|
|
<option value="">Day</option>
|
|
|
<?php
|
|
<?php
|
|
|
- Form::renderDayOptions();
|
|
|
|
|
|
|
+ Form::renderDayOptions($selected_day);
|
|
|
?>
|
|
?>
|
|
|
</select>
|
|
</select>
|
|
|
<select class="form-control w-auto d-inline-block" name="month" id="assign-month">
|
|
<select class="form-control w-auto d-inline-block" name="month" id="assign-month">
|
|
|
<option value="">Month</option>
|
|
<option value="">Month</option>
|
|
|
<?php
|
|
<?php
|
|
|
- Form::renderMonthOptions();
|
|
|
|
|
|
|
+ Form::renderMonthOptions($selected_month);
|
|
|
?>
|
|
?>
|
|
|
</select>
|
|
</select>
|
|
|
<select class="form-control w-auto d-inline-block" name="year" id="assign-year">
|
|
<select class="form-control w-auto d-inline-block" name="year" id="assign-year">
|
|
|
<option value="">Year</option>
|
|
<option value="">Year</option>
|
|
|
<?php
|
|
<?php
|
|
|
- Form::renderYearOptions(date("Y"), date("Y") + 1);
|
|
|
|
|
|
|
+ Form::renderYearOptions(date("Y"), date("Y") + 1, $selected_year);
|
|
|
?>
|
|
?>
|
|
|
</select><br />
|
|
</select><br />
|
|
|
<small class="form-text">Optional. Date the tester should aim to do the test by.</small>
|
|
<small class="form-text">Optional. Date the tester should aim to do the test by.</small>
|