registration fixes

This commit is contained in:
jojo aquino 2025-04-27 23:07:35 +01:00
parent 48a9b721c0
commit f6712dbb20
2 changed files with 7 additions and 3 deletions

View File

@ -39,8 +39,8 @@
<div class="col"> <div class="col">
<label class="form-label">Register As</label> <label class="form-label">Register As</label>
<div> <div>
<div class="form-check form-check-inline"><input id="IsPrincipal" class="form-check-input" type="radio" name="RoleType" checked value="@(nameof(UserType.Principal))" asp-for="RoleType" /><label class="form-check-label" for="IsPrincipal">Principal</label></div> <div class="form-check form-check-inline"><input id="IsPrincipal" class="form-check-input" type="radio" name="RoleType" checked value="Principal" asp-for="RoleType" /><label class="form-check-label" for="IsPrincipal">Principal</label></div>
<div class="form-check form-check-inline"><input id="IsNotaryPublic" class="form-check-input" type="radio" name="RoleType" value="@(nameof(UserType.Notary))" asp-for="RoleType" /><label class="form-check-label" for="IsNotaryPublic">Notary Public </label></div> <div class="form-check form-check-inline"><input id="IsNotaryPublic" class="form-check-input" type="radio" name="RoleType" value="Notary" asp-for="RoleType" /><label class="form-check-label" for="IsNotaryPublic">Notary Public </label></div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -17,7 +17,11 @@ namespace EnotaryoPH.Web.Pages
_passwordService = passwordService; _passwordService = passwordService;
} }
public void OnGet() => RoleType = nameof(UserType.Principal); public void OnGet()
{
RoleType = nameof(UserType.Principal);
BirthDate = DateTime.Now.AddYears(-18);
}
public IActionResult OnPost() public IActionResult OnPost()
{ {