committed by
Steve Smith
136 changed files with 342 additions and 335 deletions
@ -1,55 +1,56 @@ |
|||||
@using System.Collections.Generic |
@using System.Collections.Generic |
||||
@using Microsoft.AspNetCore.Http |
@using Microsoft.AspNetCore.Http |
||||
@using Microsoft.AspNetCore.Http.Authentication |
@using Microsoft.AspNetCore.Http.Authentication |
||||
|
@using Microsoft.eShopWeb.Web.ViewModels.Account |
||||
@model RegisterViewModel |
@model RegisterViewModel |
||||
@{ |
@{ |
||||
ViewData["Title"] = "Register"; |
ViewData["Title"] = "Register"; |
||||
} |
} |
||||
<div class="brand-header-block"> |
<div class="brand-header-block"> |
||||
<ul class="container"> |
<ul class="container"> |
||||
<li class="active" style="margin-right: 65px;">Already have an account? <a asp-action="Signin">LOGIN</a></li> |
<li class="active" style="margin-right: 65px;">Already have an account? <a asp-action="Signin">LOGIN</a></li> |
||||
</ul> |
</ul> |
||||
</div> |
</div> |
||||
<div class="container account-login-container"> |
<div class="container account-login-container"> |
||||
<div class="row"> |
<div class="row"> |
||||
<div class="col-md-12"> |
<div class="col-md-12"> |
||||
<section> |
<section> |
||||
<form asp-controller="Account" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal"> |
<form asp-controller="Account" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal"> |
||||
<div asp-validation-summary="All" class="text-danger"></div> |
<div asp-validation-summary="All" class="text-danger"></div> |
||||
<div class="form-group"> |
<div class="form-group"> |
||||
<label asp-for="Email" class="col-md-2 control-label"></label> |
<label asp-for="Email" class="col-md-2 control-label"></label> |
||||
<div class="col-md-10"> |
<div class="col-md-10"> |
||||
<input asp-for="Email" class="form-control" /> |
<input asp-for="Email" class="form-control" /> |
||||
<span asp-validation-for="Email" class="text-danger"></span> |
<span asp-validation-for="Email" class="text-danger"></span> |
||||
</div> |
|
||||
</div> |
|
||||
<div class="form-group"> |
|
||||
<label asp-for="Password" class="col-md-2 control-label"></label> |
|
||||
<div class="col-md-10"> |
|
||||
<input asp-for="Password" class="form-control" /> |
|
||||
<span asp-validation-for="Password" class="text-danger"></span> |
|
||||
</div> |
|
||||
</div> |
</div> |
||||
<div class="form-group"> |
</div> |
||||
<label asp-for="ConfirmPassword" class="col-md-2 control-label"></label> |
<div class="form-group"> |
||||
<div class="col-md-10"> |
<label asp-for="Password" class="col-md-2 control-label"></label> |
||||
<input asp-for="ConfirmPassword" class="form-control" /> |
<div class="col-md-10"> |
||||
<span asp-validation-for="ConfirmPassword" class="text-danger"></span> |
<input asp-for="Password" class="form-control" /> |
||||
</div> |
<span asp-validation-for="Password" class="text-danger"></span> |
||||
</div> |
</div> |
||||
<div class="form-group"> |
</div> |
||||
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> REGISTER </button> |
<div class="form-group"> |
||||
|
<label asp-for="ConfirmPassword" class="col-md-2 control-label"></label> |
||||
|
<div class="col-md-10"> |
||||
|
<input asp-for="ConfirmPassword" class="form-control" /> |
||||
|
<span asp-validation-for="ConfirmPassword" class="text-danger"></span> |
||||
</div> |
</div> |
||||
<p> |
</div> |
||||
Note that for demo purposes you don't need to register! Use the credentials shown below the |
<div class="form-group"> |
||||
<a asp-action="signin">login screen</a>. |
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> REGISTER </button> |
||||
</p> |
</div> |
||||
</form> |
<p> |
||||
</section> |
Note that for demo purposes you don't need to register! Use the credentials shown below the |
||||
</div> |
<a asp-action="signin">login screen</a>. |
||||
|
</p> |
||||
|
</form> |
||||
|
</section> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
|
</div> |
||||
|
|
||||
@section Scripts { |
@section Scripts { |
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } |
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } |
||||
} |
} |
||||
|
|||||
@ -1,60 +1,60 @@ |
|||||
@using Microsoft.eShopWeb.ViewModels.Account |
@using Microsoft.eShopWeb.Web.ViewModels.Account |
||||
@model LoginViewModel |
@model LoginViewModel |
||||
@{ |
@{ |
||||
ViewData["Title"] = "Log in"; |
ViewData["Title"] = "Log in"; |
||||
} |
} |
||||
<div class="brand-header-block"> |
<div class="brand-header-block"> |
||||
<ul class="container"> |
<ul class="container"> |
||||
@*<li><a asp-area="" asp-controller="Account" asp-action="Register">REGISTER</a></li>*@ |
@*<li><a asp-area="" asp-controller="Account" asp-action="Register">REGISTER</a></li>*@ |
||||
<li class="active" style="margin-right: 65px;">LOGIN</li> |
<li class="active" style="margin-right: 65px;">LOGIN</li> |
||||
</ul> |
</ul> |
||||
</div> |
</div> |
||||
<div class="container account-login-container"> |
<div class="container account-login-container"> |
||||
<div class="row"> |
<div class="row"> |
||||
<div class="col-md-12"> |
<div class="col-md-12"> |
||||
<section> |
<section> |
||||
<form asp-controller="Account" asp-action="SignIn" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal"> |
<form asp-controller="Account" asp-action="SignIn" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal"> |
||||
<h4>ARE YOU REGISTERED?</h4> |
<h4>ARE YOU REGISTERED?</h4> |
||||
<div asp-validation-summary="All" class="text-danger"></div> |
<div asp-validation-summary="All" class="text-danger"></div> |
||||
<div class="form-group"> |
<div class="form-group"> |
||||
<label asp-for="Email" class="control-label form-label"></label> |
<label asp-for="Email" class="control-label form-label"></label> |
||||
<input asp-for="Email" class="form-control form-input form-input-center" /> |
<input asp-for="Email" class="form-control form-input form-input-center" /> |
||||
<span asp-validation-for="Email" class="text-danger"></span> |
<span asp-validation-for="Email" class="text-danger"></span> |
||||
</div> |
</div> |
||||
<div class="form-group"> |
<div class="form-group"> |
||||
<label asp-for="Password" class="control-label form-label"></label> |
<label asp-for="Password" class="control-label form-label"></label> |
||||
<input asp-for="Password" class="form-control form-input form-input-center" /> |
<input asp-for="Password" class="form-control form-input form-input-center" /> |
||||
<span asp-validation-for="Password" class="text-danger"></span> |
<span asp-validation-for="Password" class="text-danger"></span> |
||||
</div> |
</div> |
||||
<div class="form-group"> |
<div class="form-group"> |
||||
<div class="checkbox"> |
<div class="checkbox"> |
||||
<label asp-for="RememberMe"> |
<label asp-for="RememberMe"> |
||||
<input asp-for="RememberMe" /> |
<input asp-for="RememberMe" /> |
||||
@Html.DisplayNameFor(m => m.RememberMe) |
@Html.DisplayNameFor(m => m.RememberMe) |
||||
</label> |
</label> |
||||
</div> |
|
||||
</div> |
</div> |
||||
<div class="form-group"> |
</div> |
||||
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> LOG IN </button> |
<div class="form-group"> |
||||
</div> |
<button type="submit" class="btn btn-default btn-brand btn-brand-big"> LOG IN </button> |
||||
<p> |
</div> |
||||
<a asp-action="Register" asp-route-returnurl="@ViewData["ReturnUrl"]" class="text">Register as a new user?</a> |
<p> |
||||
</p> |
<a asp-action="Register" asp-route-returnurl="@ViewData["ReturnUrl"]" class="text">Register as a new user?</a> |
||||
<p> |
</p> |
||||
Note that for demo purposes you don't need to register and can login with these credentials: |
<p> |
||||
</p> |
Note that for demo purposes you don't need to register and can login with these credentials: |
||||
<p> |
</p> |
||||
User: <b>demouser@microsoft.com</b> |
<p> |
||||
</p> |
User: <b>demouser@microsoft.com</b> |
||||
<p> |
</p> |
||||
Password: <b>Pass@word1</b> |
<p> |
||||
</p> |
Password: <b>Pass@word1</b> |
||||
</form> |
</p> |
||||
</section> |
</form> |
||||
</div> |
</section> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
|
</div> |
||||
|
|
||||
@section Scripts { |
@section Scripts { |
||||
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } |
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } |
||||
} |
} |
||||
|
|||||
@ -1 +1 @@ |
|||||
@using Microsoft.eShopWeb.Views.Manage |
@using Microsoft.eShopWeb.Web.Views.Manage |
||||
@ -1,7 +1,7 @@ |
|||||
@using Microsoft.eShopWeb |
@using Microsoft.eShopWeb.Web |
||||
@using Microsoft.eShopWeb.ViewModels |
@using Microsoft.eShopWeb.Web.ViewModels |
||||
@using Microsoft.eShopWeb.ViewModels.Account |
@using Microsoft.eShopWeb.Web.ViewModels.Account |
||||
@using Microsoft.eShopWeb.ViewModels.Manage |
@using Microsoft.eShopWeb.Web.ViewModels.Manage |
||||
@using Microsoft.AspNetCore.Identity |
@using Microsoft.AspNetCore.Identity |
||||
@using Infrastructure.Identity |
@using Microsoft.eShopWeb.Infrastructure.Identity |
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue