Przeglądaj źródła

Make country field mandatory

Alan Lam 3 lat temu
rodzic
commit
5aea828a24
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      views/components/address_fields.php

+ 1 - 1
views/components/address_fields.php

@@ -52,7 +52,7 @@ else {
 	<div class="col-6">
 		<div class="mb-3">
 			<label class="form-label" for="country"><?=htmlspecialchars(__("Country"))?></label>
-			<select class="form-select" name="country" id="country">
+			<select class="form-select" name="country" id="country" required>
 				<option value=""><?=htmlspecialchars(__("Select Country"))?></option>
 				<?php
 				foreach(Address::getCountryOptions() as $value => $display) {