Add missing files. Add API for client apps.
[wsti_pai.git] / Projects / Views / Login / Login.cshtml
1 @model Projects.Models.User
2
3 @{
4     ViewBag.Title = "Login";
5 }
6
7 <h2>@ViewBag.Title</h2>
8
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>
11
12 @using (Html.BeginForm())
13 {
14     @Html.AntiForgeryToken()
15
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" })
22         </div>
23     </div>
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" })
29         </div>
30     </div>
31
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" />
35         </div>
36     </div>
37 }