|
|
@@ -1,3 +1,9 @@
|
|
|
+<?php
|
|
|
+/**
|
|
|
+ * @var Customer $customer
|
|
|
+ * @var string $page_title
|
|
|
+ */
|
|
|
+?>
|
|
|
<div class="container mt-3 py-4">
|
|
|
<h2><?=htmlspecialchars($page_title)?></h2>
|
|
|
|
|
|
@@ -42,7 +48,9 @@
|
|
|
<label class="col-sm-4 col-form-label" for="country">Country</label>
|
|
|
<div class="col-sm">
|
|
|
<select class="form-control" name="country" id="country">
|
|
|
- <?=Form::renderCountryOptions($customer->country)?>
|
|
|
+ <?php
|
|
|
+ Form::renderCountryOptions($customer->country);
|
|
|
+ ?>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -75,7 +83,7 @@
|
|
|
<?php
|
|
|
foreach(range(1, 12) as $month) {
|
|
|
$display_month = sprintf("%02d", $month);
|
|
|
- $selected = ($customer->year_cycle_month == $month) ? "selected" : "";
|
|
|
+ $selected = ((int) $customer->year_cycle_month === $month) ? "selected" : "";
|
|
|
?>
|
|
|
<option value="<?=$month?>" <?=$selected?>><?=$display_month?></option>
|
|
|
<?php
|
|
|
@@ -88,6 +96,10 @@
|
|
|
|
|
|
<div class="row my-3">
|
|
|
<div class="col-sm offset-sm-4">
|
|
|
+ <div class="form-check">
|
|
|
+ <input class="form-check-input" type="checkbox" name="show_in_map_overview" id="show-in-map-overview" value="1" <?=Form::checked($customer->show_in_map_overview)?> />
|
|
|
+ <label for="show-in-map-overview">Show in Map Overview</label>
|
|
|
+ </div>
|
|
|
<div class="form-check">
|
|
|
<input class="form-check-input" type="checkbox" name="email_after_test" id="email-after-test" value="1" <?=Form::checked($customer->email_after_test)?> />
|
|
|
<label for="email-after-test">Email After Test</label>
|