diff options
Diffstat (limited to 'Views/Account/Login.cshtml')
-rw-r--r-- | Views/Account/Login.cshtml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Views/Account/Login.cshtml b/Views/Account/Login.cshtml new file mode 100644 index 0000000..893155c --- /dev/null +++ b/Views/Account/Login.cshtml @@ -0,0 +1,31 @@ +@model MyDarling.Models.LoginModel +<!DOCTYPE html> +<html> + +<head> + <meta name="viewport" content="width=device-width" /> + <title>Login Page</title> + <link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> +</head> + +<body> + <div class="m-1 p-1"> + <div class="text-danger" asp-validation-summary="All"></div> + <form asp-action="Login" asp-controller="Account" method="post"> + <input type="hidden" asp-for="ReturnUrl" /> + <div class="form-group"> + <label asp-for="Name"></label> + <div asp-validation-for="Name" class="text-danger"></div> + <input name="Name" class="form-control" value="@Model.Name"/> + </div> + <div class="form-group"> + <label asp-for="Password"></label> + <div asp-validation-for="Password" class="text-danger"></div> + <input name="Password" type="password" class="form-control" value="@Model.Password"/> + </div> + <button class="btn btn-primary mt-2" type="submit">Log In</button> + </form> + </div> +</body> + +</html>
\ No newline at end of file |