Files
studenthousedashboard/StudentHouseDashboard/WebApp/Pages/Register.cshtml
2023-03-29 11:29:25 +02:00

30 lines
849 B
Plaintext

@page
@model WebApp.Pages.RegisterModel
@{
ViewData["Title"] = "Register";
}
<h1>@ViewData["Title"]</h1>
@if (ViewData["confirm"] != null)
{
<div class="alert alert-primary" role="alert">
@ViewData["confirm"]
</div>
}
<form method="post">
<div class="mb-3">
<label asp-for="MyUser.Role" class="form-label">Role: </label>
<input asp-for="MyUser.Role" class="form-control" />
</div>
<div class="mb-3">
<label asp-for="MyUser.Name" class="form-label">Name: </label>
<input asp-for="MyUser.Name" class="form-control" />
</div>
<div class="mb-3">
<label asp-for="MyUser.Password" class="form-label">Password: </label>
<input asp-for="MyUser.Password" class="form-control" />
</div>
<input type="submit" value="Submit" class="btn btn-primary" />
</form>