diff --git a/aspnetcore/blazor/components/quickgrid.md b/aspnetcore/blazor/components/quickgrid.md index bdf0348b5707..c68b5895f426 100644 --- a/aspnetcore/blazor/components/quickgrid.md +++ b/aspnetcore/blazor/components/quickgrid.md @@ -138,7 +138,25 @@ To provide a UI for pagination, add a [`Paginator` component](xref:Microsoft.Asp In the running app, page through the items using a rendered `Paginator` component. -QuickGrid renders additional empty rows to fill in the final page of data when used with a `Paginator` component. In .NET 9 or later, empty data cells (`
+ Thank you for confirming your email. Please Click here to Log in. +
+Unsuccessful login with service.
++ For more information on how to enable reset password please see this article. +
+ +@**@ + +@section Scripts { + @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } +} diff --git a/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Account/ForgotPasswordConfirmation.cshtml b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Account/ForgotPasswordConfirmation.cshtml new file mode 100644 index 000000000000..ab9bf44c8deb --- /dev/null +++ b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Account/ForgotPasswordConfirmation.cshtml @@ -0,0 +1,8 @@ +@{ + ViewData["Title"] = "Forgot Password Confirmation"; +} + ++ Please check your email to reset your password. +
diff --git a/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Account/Lockout.cshtml b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Account/Lockout.cshtml new file mode 100644 index 000000000000..2cc946d5c475 --- /dev/null +++ b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Account/Lockout.cshtml @@ -0,0 +1,8 @@ +@{ + ViewData["Title"] = "Locked out"; +} + +This account has been locked out, please try again later.
++ @Localizer["There are no external authentication services configured. See this article " + + "for details on setting up this ASP.NET application to support logging in via external services."] +
++ Your password has been reset. Please Click here to log in. +
diff --git a/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Account/SendCode.cshtml b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Account/SendCode.cshtml new file mode 100644 index 000000000000..04794ee93a4c --- /dev/null +++ b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Account/SendCode.cshtml @@ -0,0 +1,21 @@ +@model SendCodeViewModel +@{ + ViewData["Title"] = "Send Verification Code"; +} + +@Localizer["Use this area to provide additional information."]
+| + Winning provider + | ++ @requestCultureFeature.Provider.GetType().Name; + | +
|---|---|
| + Request Culture + | ++ @requestCulture.Culture.DisplayName (@requestCulture.Culture) + | +
| + Request UICulture + | ++ @requestCulture.UICulture.DisplayName (@requestCulture.UICulture) + | +
| + Thread culture + | ++ @CultureInfo.CurrentCulture.DisplayName (@CultureInfo.CurrentCulture) + | +
| + Thread UI culture + | ++ @CultureInfo.CurrentUICulture.DisplayName (@CultureInfo.CurrentUICulture) + | +
| + Current date (invariant full) + | ++ @DateTime.Now.ToString("F", System.Globalization.CultureInfo.InvariantCulture); + | +
| + Current date (invariant) + | ++ @DateTime.Now.ToString(System.Globalization.CultureInfo.InvariantCulture); + | +
| + Current date (request full) + | ++ @DateTime.Now.ToString("F"); + | +
| + Current date (request) + | ++ @DateTime.Now.ToString(); + | +
| + Current time (invariant) + | ++ @DateTime.Now.ToString("T", System.Globalization.CultureInfo.InvariantCulture); + | +
| + Current time (request) + | ++ @DateTime.Now.ToString("T"); + | +
| + Big number 4 (invariant) + | ++ @{ + + string msg = (Math.Pow(2, 42) + 0.42).ToString("N", CultureInfo.InvariantCulture); + } + @msg + + | +
| + Big number (request) + | ++ @{ + msg = (Math.Pow(2, 42) + 0.42).ToString("N"); + } + @msg + | +
| + Negative big number (invariant) + | ++ @{ + + msg = (-Math.Pow(2, 42) + 0.42).ToString("N", CultureInfo.InvariantCulture); + } + @msg + | +
| + Negative big number (request) + | ++ @{ + + msg = (-Math.Pow(2, 42) + 0.42).ToString("N"); + } + @msg + | +
| + Money (invariant) + | ++ @{ + + msg = (2199.50).ToString("C", CultureInfo.InvariantCulture); + } + @msg + | +
| + Money(request) + | ++ @{ + msg = (2199.50).ToString("C"); + } + @msg + |
| + Negative Money(invariant) + | ++ @{ + + msg = (-2199.50).ToString("C", CultureInfo.InvariantCulture); + } + @msg + | +
| + Negative Money(request) + | ++ @{ + msg = (-2199.50).ToString("C"); + } + @msg + | +
@Localizer["Use this area to provide additional information."]
diff --git a/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Book/Index.cshtml b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Book/Index.cshtml new file mode 100644 index 000000000000..df0d0790b9c4 --- /dev/null +++ b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Book/Index.cshtml @@ -0,0 +1,120 @@ +@using Microsoft.AspNetCore.Mvc.Localization + +@* The IViewLocalizer can be injected into the view. It does two things of interest: + 1. It can HTML encode *parameters* passed to resource strings (not the resource strings themselves, as they may contain + HTML) automatically, and return the result as an IHtmlContent so Razor won't HTML encode it again; + 2. It looks for localization resources for this view based on the view path, e.g. if the view's path is + "MyApplication/Views/Home/Index.cshtml", then the corresponding resource base path will be "MyApplication.Views.Home.Index" *@ + +@inject IViewLocalizer Localizer + +@{ + ViewData["Title"] = Localizer["Home Page"]; +} + + + +@Localizer["Use this area to provide additional information."]
diff --git a/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Home/About2.cshtml b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Home/About2.cshtml new file mode 100644 index 000000000000..018245df35cc --- /dev/null +++ b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Home/About2.cshtml @@ -0,0 +1,11 @@ +@using Microsoft.AspNetCore.Mvc.Localization + +@inject IViewLocalizer Localizer + +@{ + ViewData["Title"] = Localizer["About"]; +} +@Localizer["Use this area to provide additional information."]
diff --git a/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Home/Contact.cshtml b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Home/Contact.cshtml new file mode 100644 index 000000000000..c5a1b1e7131e --- /dev/null +++ b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Home/Contact.cshtml @@ -0,0 +1,21 @@ +@using Microsoft.AspNetCore.Mvc.Localization + +@inject IViewLocalizer Localizer + +@{ + ViewData["Title"] = Localizer["Contact"]; +} +@Localizer["Use this area to provide additional information."]
diff --git a/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Info/Contact.cshtml b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Info/Contact.cshtml new file mode 100644 index 000000000000..c5a1b1e7131e --- /dev/null +++ b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Info/Contact.cshtml @@ -0,0 +1,21 @@ +@using Microsoft.AspNetCore.Mvc.Localization + +@inject IViewLocalizer Localizer + +@{ + ViewData["Title"] = Localizer["Contact"]; +} +@Localizer["Use this area to provide additional information."]
diff --git a/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Info/Index.cshtml b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Info/Index.cshtml new file mode 100644 index 000000000000..df0d0790b9c4 --- /dev/null +++ b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Info/Index.cshtml @@ -0,0 +1,120 @@ +@using Microsoft.AspNetCore.Mvc.Localization + +@* The IViewLocalizer can be injected into the view. It does two things of interest: + 1. It can HTML encode *parameters* passed to resource strings (not the resource strings themselves, as they may contain + HTML) automatically, and return the result as an IHtmlContent so Razor won't HTML encode it again; + 2. It looks for localization resources for this view based on the view path, e.g. if the view's path is + "MyApplication/Views/Home/Index.cshtml", then the corresponding resource base path will be "MyApplication.Views.Home.Index" *@ + +@inject IViewLocalizer Localizer + +@{ + ViewData["Title"] = Localizer["Home Page"]; +} + + + +@ViewData["StatusMessage"]
++ Phone Numbers can used as a second factor of verification in two-factor authentication. + See this article + for details on setting up this ASP.NET application to support two-factor authentication using SMS. +
+ @*@(Model.PhoneNumber ?? "None") [ + @if (Model.PhoneNumber != null) + { + Change + @: | + Remove + } + else + { + Add + } + ]*@ ++ There are no two-factor authentication providers configured. See this article + for setting up this application to support two-factor authentication. +
+ @*@if (Model.TwoFactor) + { + + } + else + { + + }*@ +@ViewData["StatusMessage"]
+@if (Model.CurrentLogins.Count > 0) +{ +| @account.LoginProvider | ++ @if ((bool)ViewData["ShowRemoveButton"]) + { + + } + else + { + @: + } + | +
+ You do not have a local username/password for this site. Add a local + account so you can log in without an external login. +
+ + + +@section Scripts { + @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } +} diff --git a/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Manage/VerifyPhoneNumber.cshtml b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Manage/VerifyPhoneNumber.cshtml new file mode 100644 index 000000000000..3d9a06d1c6d1 --- /dev/null +++ b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Manage/VerifyPhoneNumber.cshtml @@ -0,0 +1,30 @@ +@model VerifyPhoneNumberViewModel +@{ + ViewData["Title"] = "Verify Phone Number"; +} + +@Localizer["Use this area to provide additional information."]
diff --git a/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Test/Index.cshtml b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Test/Index.cshtml new file mode 100644 index 000000000000..df0d0790b9c4 --- /dev/null +++ b/aspnetcore/fundamentals/localization/sample/8.x/Localization/Views/Test/Index.cshtml @@ -0,0 +1,120 @@ +@using Microsoft.AspNetCore.Mvc.Localization + +@* The IViewLocalizer can be injected into the view. It does two things of interest: + 1. It can HTML encode *parameters* passed to resource strings (not the resource strings themselves, as they may contain + HTML) automatically, and return the result as an IHtmlContent so Razor won't HTML encode it again; + 2. It looks for localization resources for this view based on the view path, e.g. if the view's path is + "MyApplication/Views/Home/Index.cshtml", then the corresponding resource base path will be "MyApplication.Views.Home.Index" *@ + +@inject IViewLocalizer Localizer + +@{ + ViewData["Title"] = Localizer["Home Page"]; +} + + + +