Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model OverTime.Models.UserModel
- @{
- ViewBag.Title = "Register";
- Layout = "~/Views/Shared/_Layout.cshtml";
- }
- <h2>@ViewBag.Title</h2>
- @using (Html.BeginForm("CreateUser", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
- {
- @Html.AntiForgeryToken()
- <div class="form-horizontal">
- <h4>Create a new account.</h4>
- <hr />
- @*@Html.ValidationSummary(false, "", new { @class = "text-danger" })*@
- <div class="form-group">
- @Html.LabelFor(model => model.username, new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.TextBoxFor(model => model.username, new { @class = "form-control" })
- @Html.ValidationMessageFor(model => model.username)
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.email, new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.TextBoxFor(model => model.email, new { @class = "form-control" })
- @Html.ValidationMessageFor(model => model.email, "", new { @class = "error" })
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(model => model.password, new { @class = "control-label col-md-2" })
- <div class="col-md-10">
- @Html.PasswordFor(model => model.password, new { @class = "form-control" })
- @Html.ValidationMessageFor(model => model.password)
- </div>
- </div>
- <div class="form-group">
- @Html.LabelFor(m => m.confirmPassword, new { @class = "col-md-2 control-label" })
- <div class="col-md-10">
- @Html.PasswordFor(m => m.confirmPassword, new { @class = "form-control" })
- @Html.ValidationMessageFor(model => model.confirmPassword)
- </div>
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <input type="submit" value="Register" class="btn btn-default" />
- </div>
- </div>
- </div>
- }
- @section Scripts {
- @Scripts.Render("~/bundles/jqueryval")
- }
Advertisement
Add Comment
Please, Sign In to add comment