diff --git a/src/MusicStore.Spa/MusicStore.Spa.xproj b/src/MusicStore.Spa/MusicStore.Spa.xproj
index 8a12e79474..ceeb8a3678 100644
--- a/src/MusicStore.Spa/MusicStore.Spa.xproj
+++ b/src/MusicStore.Spa/MusicStore.Spa.xproj
@@ -13,6 +13,7 @@
- Thank you for confirming your email. Please @Html.ActionLink("Click here to Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })
+ Thank you for confirming your email. Please Click here to Log in.
@ViewBag.Title.
@ViewBag.Title.
Associate your @ViewBag.LoginProvider account.
-@using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
-{
- @Html.AntiForgeryToken()
-
+
@section Scripts {
- @*TODO : Until script helpers are available, adding script references manually*@
- @*@Scripts.Render("~/bundles/jqueryval")*@
-
-
+ @{await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
}
\ No newline at end of file
diff --git a/src/MusicStore/Views/Account/ExternalLoginFailure.cshtml b/src/MusicStore/Views/Account/ExternalLoginFailure.cshtml
index 3be4ab37d4..cb96d08e07 100644
--- a/src/MusicStore/Views/Account/ExternalLoginFailure.cshtml
+++ b/src/MusicStore/Views/Account/ExternalLoginFailure.cshtml
@@ -5,4 +5,4 @@
@ViewBag.Title.
Unsuccessful login with service.
-
+
\ No newline at end of file
diff --git a/src/MusicStore/Views/Account/ForgotPassword.cshtml b/src/MusicStore/Views/Account/ForgotPassword.cshtml
index 063998e4b4..605b048f9f 100644
--- a/src/MusicStore/Views/Account/ForgotPassword.cshtml
+++ b/src/MusicStore/Views/Account/ForgotPassword.cshtml
@@ -1,20 +1,19 @@
-@model MusicStore.Models.ForgotPasswordViewModel
+@model ForgotPasswordViewModel
@{
ViewBag.Title = "Forgot your password?";
}
@ViewBag.Title.
-@using (Html.BeginForm("ForgotPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
-{
- @Html.AntiForgeryToken()
+
@section Scripts {
- @*TODO : Until script helpers are available, adding script references manually*@
- @*@Scripts.Render("~/bundles/jqueryval")*@
-
-
+ @{await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
}
diff --git a/src/MusicStore/Views/Account/ForgotPasswordConfirmation.cshtml b/src/MusicStore/Views/Account/ForgotPasswordConfirmation.cshtml
index 2ba9d0ca72..80bb848fbe 100644
--- a/src/MusicStore/Views/Account/ForgotPasswordConfirmation.cshtml
+++ b/src/MusicStore/Views/Account/ForgotPasswordConfirmation.cshtml
@@ -10,6 +10,6 @@
Please check your email to reset your password.
- For demo purpose only: @Html.ActionLink("Click here to reset the password: ", "ResetPassword", new { code = ViewBag.Code }); + For demo purpose only: Click here to reset the password
\ No newline at end of file diff --git a/src/MusicStore/Views/Account/Login.cshtml b/src/MusicStore/Views/Account/Login.cshtml index 27a628c27c..69867f4987 100644 --- a/src/MusicStore/Views/Account/Login.cshtml +++ b/src/MusicStore/Views/Account/Login.cshtml @@ -1,5 +1,4 @@ -@using MusicStore.Models -@model LoginViewModel +@model LoginViewModel @{ ViewBag.Title = "Log in"; @@ -9,31 +8,29 @@- @Html.ActionLink("Register as a new user", "Register") + Register as a new user?
- @*Enable this once you have account confirmation enabled for password reset functionality*@- @Html.ActionLink("Forgot your password?", "ForgotPassword") + Forgot your password?
- } +- Demo/testing purposes only: The sample displays the code and user id in the page: @Html.ActionLink("Click here to confirm your email: ", "ConfirmEmail", new { code = ViewBag.Code, userId = ViewBag.UserId }) + Demo/testing purposes only: The sample displays the code and user id in the page: Click here to confirm your email:
\ No newline at end of file diff --git a/src/MusicStore/Views/Account/ResetPassword.cshtml b/src/MusicStore/Views/Account/ResetPassword.cshtml index 7ee7e8276a..504ce647d8 100644 --- a/src/MusicStore/Views/Account/ResetPassword.cshtml +++ b/src/MusicStore/Views/Account/ResetPassword.cshtml @@ -1,33 +1,34 @@ -@model MusicStore.Models.ResetPasswordViewModel +@model ResetPasswordViewModel @{ ViewBag.Title = "Reset password"; }- Your password has been reset. Please @Html.ActionLink("click here to log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" }) + Your password has been reset. Please Click here to log in.
-Enabled
- } +Disabled
- } +Browser is curently remembered for two factor:
- } +Browser is curently not remembered for two factor:
- } +| @account.LoginProvider |
@if (ViewBag.ShowRemoveButton)
{
- using (Html.BeginForm("RemoveLogin", "Manage"))
- {
- @Html.AntiForgeryToken()
+
- @Html.Hidden("loginProvider", account.LoginProvider)
- @Html.Hidden("providerKey", account.ProviderKey)
+
+
- }
+ Add another service to log in.- using (Html.BeginForm("LinkLogin", "Manage")) - { - @Html.AntiForgeryToken() + @ViewBag.Title.You do not have a local username/password for this site. Add a local account so you can log in without an external login. -@using (Html.BeginForm("SetPassword", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() - -Create Local Login+Set your password- @Html.ValidationSummary("", new { @class = "text-danger" }) +
- @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-2 control-label" })
+
- @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
+
+
- @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
+
- @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
+
+
@@ -33,11 +31,8 @@
-}
+@ViewBag.Title.-@using (Html.BeginForm("VerifyPhoneNumber", "Manage", FormMethod.Post, new { @class = "form-horizontal", role = "form" })) -{ - @Html.AntiForgeryToken() - @Html.Hidden("phoneNumber", @Model.PhoneNumber) +Enter verification codeFor DEMO only: You can type in this code in the below text box to proceed: @ViewBag.Code @@ -16,11 +14,12 @@ Please change this code to register an SMS service in IdentityConfig to send a text message. - @Html.ValidationSummary("", new { @class = "text-danger" }) +
- @Html.LabelFor(m => m.Code, new { @class = "col-md-2 control-label" })
+
- @Html.TextBoxFor(m => m.Code, new { @class = "form-control" })
+
+
@@ -28,11 +27,8 @@
-}
+- @Html.Label(null, "New Arrivals!", new { style = "color: red" }) - @Html.ActionLink(Model.Title, "Details", "Store", new { id = Model.AlbumId }, new { id = "NewArrivalsPanel" }) + + @Model.Title
- @Html.ActionLink(item.Album.Title,
- "Details", "Store", new { id = item.AlbumId }, null)
+ @item.Album.Title
|
@item.Album.Price
diff --git a/src/MusicStore/Views/Store/Browse.cshtml b/src/MusicStore/Views/Store/Browse.cshtml
index 6d962d0d06..9b015e759d 100644
--- a/src/MusicStore/Views/Store/Browse.cshtml
+++ b/src/MusicStore/Views/Store/Browse.cshtml
@@ -1,4 +1,4 @@
-@model MusicStore.Models.Genre
+@model Genre
@{
ViewBag.Title = "Browse Albums";
}
@@ -11,7 +11,7 @@
@foreach (var album in Model.Albums)
{
| Price: - @Html.DisplayFor(model => model.Price) + \ No newline at end of file diff --git a/src/MusicStore/Views/Store/Index.cshtml b/src/MusicStore/Views/Store/Index.cshtml index 06f782f647..3a403089fe 100644 --- a/src/MusicStore/Views/Store/Index.cshtml +++ b/src/MusicStore/Views/Store/Index.cshtml @@ -1,4 +1,4 @@ -@model IEnumerable
|
@foreach (AuthenticationDescription p in Model.OtherLogins) - { + { }