|
@@ -6,6 +6,12 @@ $date_start_parts = explode("-", $date_start);
|
|
|
$date_deadline = explode(" ", date("Y-m-d H:i:s", strtotime($project->dts_deadline . " UTC")))[0];
|
|
$date_deadline = explode(" ", date("Y-m-d H:i:s", strtotime($project->dts_deadline . " UTC")))[0];
|
|
|
$date_deadline_parts = explode("-", $date_deadline);
|
|
$date_deadline_parts = explode("-", $date_deadline);
|
|
|
|
|
|
|
|
|
|
+$date_report_parts = [0, 0, 0];
|
|
|
|
|
+if($project->dts_report) {
|
|
|
|
|
+ $date_report = explode(" ", date("Y-m-d H:i:s", strtotime($project->dts_report . " UTC")))[0];
|
|
|
|
|
+ $date_report_parts = explode("-", $date_report);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
?>
|
|
?>
|
|
|
<div class="container mt-3 py-4">
|
|
<div class="container mt-3 py-4">
|
|
|
<h2>
|
|
<h2>
|
|
@@ -121,6 +127,24 @@ $date_deadline_parts = explode("-", $date_deadline);
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="row mb-1">
|
|
|
|
|
+ <label class="col-sm-4 col-form-label" for="date-report">Report Month</label>
|
|
|
|
|
+ <div class="col-sm">
|
|
|
|
|
+ <input name="date_report_day" id="date-report-day" value="12" type="hidden" />
|
|
|
|
|
+ <select class="form-control w-auto d-inline-block" name="date_report_month" id="date-report-month">
|
|
|
|
|
+ <option value="">Month</option>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ Form::renderMonthOptions($date_report_parts[1]);
|
|
|
|
|
+ ?>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ <select class="form-control w-auto d-inline-block" name="date_report_year" id="date-report-year">
|
|
|
|
|
+ <option value="">Year</option>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ Form::renderYearOptions(2017, date("Y") + 1, $date_report_parts[0]);
|
|
|
|
|
+ ?>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<hr />
|
|
<hr />
|