aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Web/Views/Account/Register.cshtml
blob: e436d7223114615e285b738d1870673167e2ee2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@model RegisterUserWebModel
@{
	ViewData["Title"] = "Register";
}

<form asp-controller="Account" asp-action="Register" method="post">
	<input type="text" asp-for="FirstName" placeholder="FirstName">
	<span asp-validation-for="FirstName" class="form-error"></span>

	<input type="text" asp-for="LastName" placeholder="LastName">
	<span asp-validation-for="LastName" class="form-error"></span>

	<input type="text" asp-for="Username" placeholder="Username">
	<span asp-validation-for="Username" class="form-error"></span>
	
	<input type="password" asp-for="Password" placeholder="Password">
	<span asp-validation-for="Password" class="form-error"></span>

	<input type="submit">

	@if (Model != null)
	{
		<p class="form-error">
			Couldn't register account!
		</p>
	}
</form>