| @@ -1,11 +1,33 @@ | ||
| @model NTRCalendarMVC.ViewModels.LoginViewModel | ||
|
|
||
| @{ | ||
| ViewBag.Title = "Home Page"; | ||
| } | ||
|
|
||
| <div class="container"> | ||
| @using (Html.BeginForm()) { | ||
| <div class="form-horizontal"> | ||
| @Html.ValidationSummary(true, "", new {@class = "text-danger"}) | ||
| <div class="form-group"> | ||
| <div class="control-label col-md-2"> | ||
| UserID | ||
| </div> | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.UserId, new {htmlAttributes = new {@class = "form-control"}}) | ||
| @Html.ValidationMessageFor(model => model.UserId, "", new {@class = "text-danger"}) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| <div class="col-md-offset-2 col-md-10"> | ||
| <input type="submit" value="Zaloguj" class="btn btn-primary"/> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| } | ||
|
|
||
|
|
||
|
|
||
| @Html.ActionLink("Zarejestruj się", "Register") | ||
|
|
||
| </div> |
| @@ -0,0 +1,51 @@ | ||
| @model NTRCalendarMVC.Person | ||
|
|
||
| @{ | ||
| ViewBag.Title = "Rejestracja"; | ||
| } | ||
|
|
||
| <h2>Rejestracja</h2> | ||
|
|
||
| @using (Html.BeginForm()) { | ||
| @Html.AntiForgeryToken() | ||
|
|
||
| <div class="form-horizontal"> | ||
| @Html.ValidationSummary(true, "", new {@class = "text-danger"}) | ||
| <div class="form-group"> | ||
| <div class="control-label col-md-2"> | ||
| Imię | ||
| </div> | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.FirstName, new {htmlAttributes = new {@class = "form-control"}}) | ||
| @Html.ValidationMessageFor(model => model.FirstName, "", new {@class = "text-danger"}) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| <div class="control-label col-md-2"> | ||
| Nazwisko | ||
| </div> | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.LastName, new {htmlAttributes = new {@class = "form-control"}}) | ||
| @Html.ValidationMessageFor(model => model.LastName, "", new {@class = "text-danger"}) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| <div class="control-label col-md-2"> | ||
| UserID | ||
| </div> | ||
|
|
||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.UserID, new {htmlAttributes = new {@class = "form-control"}}) | ||
| @Html.ValidationMessageFor(model => model.UserID, "", new {@class = "text-danger"}) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| <div class="col-md-offset-2 col-md-10"> | ||
| <input type="submit" value="Zarejestruj się" class="btn btn-primary"/> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| } |