diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/BasicTheme.cs b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/BasicTheme.cs index a9aeedd167..01d3a35db2 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/BasicTheme.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/BasicTheme.cs @@ -15,7 +15,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic case StandardLayouts.Application: return "~/Themes/Basic/Layouts/Application.cshtml"; case StandardLayouts.Account: - return "~/Themes/Basic/Layouts/Application.cshtml"; + return "~/Themes/Basic/Layouts/Account.cshtml"; case StandardLayouts.Empty: return "~/Themes/Basic/Layouts/Empty.cshtml"; default: diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Layouts/Account.cshtml b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Layouts/Account.cshtml new file mode 100644 index 0000000000..80c181d09e --- /dev/null +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Layouts/Account.cshtml @@ -0,0 +1,48 @@ +@using Volo.Abp.AspNetCore.Mvc.AntiForgery +@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Bundling +@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Themes.Basic.Components.MainNavbar +@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Themes.Basic.Components.PageAlerts +@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Components +@inject IAbpAntiForgeryManager AbpAntiForgeryManager +@inject IBrandingProvider BrandingProvider +@{ + Layout = null; + AbpAntiForgeryManager.SetCookie(); + var containerClass = ViewBag.FluidLayout == true ? "container-fluid" : "container"; //TODO: Better and type-safe options +} + + + + + + + + + @(ViewBag.Title == null ? BrandingProvider.AppName : ViewBag.Title) + + + + @RenderSection("styles", false) + + + + @(await Component.InvokeAsync()) + +
+ + + @(await Component.InvokeAsync()) + @RenderBody() + + +
+ + + + + + + @RenderSection("scripts", false) + + + \ No newline at end of file diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml index bd118b8019..2faa35532b 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml +++ b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Login.cshtml @@ -4,33 +4,27 @@ @inherits Volo.Abp.Account.Web.Pages.Account.AccountPage @inject Volo.Abp.Settings.ISettingManager SettingManager

@L["Login"]

- - -
- - - - @L["Login"] - @if (string.Equals(await SettingManager.GetOrNullAsync(AccountSettingNames.IsSelfRegistrationEnabled), "true", StringComparison.OrdinalIgnoreCase)) - { - @L["Register"] - } - -
- @if (Model.ExternalLogins.Any()) +
+ + + + @L["Login"] + @if (string.Equals(await SettingManager.GetOrNullAsync(AccountSettingNames.IsSelfRegistrationEnabled), "true", StringComparison.OrdinalIgnoreCase)) { - -

Use another service to log in.

- -
- @foreach (var provider in Model.ExternalLogins) - { - @provider.DisplayName - } -
- -
+ @L["Register"] } + -
\ No newline at end of file +@if (Model.ExternalLogins.Any()) +{ +

Use another service to log in.

+
+
+ @foreach (var provider in Model.ExternalLogins) + { + @provider.DisplayName + } +
+
+} \ No newline at end of file diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml index c9a98394f5..dd8b9d0ff0 100644 --- a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml +++ b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml @@ -2,13 +2,9 @@ @model Volo.Abp.Account.Web.Pages.Account.RegisterModel @inherits Volo.Abp.Account.Web.Pages.Account.AccountPage

@L["Register"]

- - -
- - - - @L["Register"] - -
-
\ No newline at end of file +
+ + + + @L["Register"] + \ No newline at end of file diff --git a/modules/account/src/Volo.Abp.Account.Web/Pages/Account/_ViewStart.cshtml b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/_ViewStart.cshtml new file mode 100644 index 0000000000..54f5b26aaa --- /dev/null +++ b/modules/account/src/Volo.Abp.Account.Web/Pages/Account/_ViewStart.cshtml @@ -0,0 +1,5 @@ +@using Volo.Abp.AspNetCore.Mvc.UI.Theming +@inject IThemeManager ThemeManager +@{ + Layout = ThemeManager.CurrentTheme.GetAccountLayout(); +} \ No newline at end of file