Fix for upcomming lan

This commit is contained in:
pmp 2026-09-13 15:24:56 +02:00
parent 24e797ee35
commit aafedc7d8c
2 changed files with 4 additions and 4 deletions

View file

@ -20,8 +20,8 @@ public class ParticipantRegistrationRequest
public string SurName { get; set; } = string.Empty; public string SurName { get; set; } = string.Empty;
[Required] [Required]
[RegularExpression(@"^([1-9]|1[1-3])$", [RegularExpression(@"^([1-9]|1[0-2])$",
ErrorMessage = "Årkurs måste vara 1–9 eller 11–13.")] ErrorMessage = "Årkurs måste vara 1–9 eller 10–12.")]
public string Grade { get; set; } = string.Empty; public string Grade { get; set; } = string.Empty;
public string? PhoneNumber { get; set; } public string? PhoneNumber { get; set; }

View file

@ -461,9 +461,9 @@ export default function RegisterPage() {
))} ))}
</optgroup> </optgroup>
<optgroup label="Gymnasium"> <optgroup label="Gymnasium">
{["11", "12", "13"].map((g) => ( {["10", "11", "12"].map((g) => (
<option key={`gym${g}`} value={g}> <option key={`gym${g}`} value={g}>
Gymnasiet {g} Gymnasiet år {Number(g) - 9}
</option> </option>
))} ))}
</optgroup> </optgroup>