1 @model Projects.Models.User
4 ViewBag.Title = "Login";
7 <h2>@ViewBag.Title</h2>
9 <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
10 <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
12 @using (Html.BeginForm())
14 @Html.AntiForgeryToken()
16 @Html.ValidationSummary(true, "", new { @class = "text-danger" })
17 <div class="form-group">
18 @Html.LabelFor(model => model.login, htmlAttributes: new { @class = "control-label col-md-2" })
19 <div class="col-md-10">
20 @Html.EditorFor(model => model.login, new { htmlAttributes = new { @class = "form-control" } })
21 @Html.ValidationMessageFor(model => model.login, "", new { @class = "text-danger" })
24 <div class="form-group">
25 @Html.LabelFor(model => model.password, htmlAttributes: new { @class = "control-label col-md-2" })
26 <div class="col-md-10">
27 @Html.EditorFor(model => model.password, new { htmlAttributes = new { @class = "form-control" } })
28 @Html.ValidationMessageFor(model => model.password, "", new { @class = "text-danger" })
32 <div class="form-group">
33 <div class="col-md-offset-2 col-md-10">
34 <input type="submit" value="Zaloguj się" class="btn btn-default" />