Created
February 19, 2019 07:09
-
-
Save gistlyn/32cafd0820645c604b5abb06941fc301 to your computer and use it in GitHub Desktop.
Server HTML using Razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h3>Sign In using credentials</h3> | |
<form action="/auth/credentials" method="post" class="col-lg-4"> | |
<div class="form-group"> | |
@Html.ValidationSummary(new[]{ "userName","password" }, | |
new { @class = "alert alert-warning" }) | |
@Html.HiddenInputs(new { | |
@continue = Html.Query("continue") ?? "/server-razor/", | |
errorView = "/server-razor/login" | |
}) | |
</div> | |
<div class="form-group"> | |
@Html.FormInput(new { id = "userName" }, new InputOptions { | |
Label = "Email", | |
Help = "Email you signed up with", | |
Size = "lg", | |
}) | |
</div> | |
<div class="form-group"> | |
@Html.FormInput(new { id = "password", type = "password" }, new InputOptions { | |
Label = "Password", | |
Help = "6 characters or more", | |
Size = "lg", | |
PreserveValue = false, | |
}) | |
</div> | |
<div class="form-group"> | |
@Html.FormInput(new { | |
id = "rememberMe", | |
type = "checkbox", | |
@checked = true, | |
}, | |
new InputOptions { Label = "Remember Me" }) | |
</div> | |
<div class="form-group"> | |
<button type="submit" class="btn btn-lg btn-primary">Login</button> | |
</div> | |
<div class="form-group"> | |
<a class="lnk" href="/server-razor/register">Register New User</a> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment