Browse Source

Added returnUrl to Manage Account page

pull/5659/head
Ahmet 5 years ago
parent
commit
c0ee874817
  1. 3
      modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/en.json
  2. 4
      modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/tr.json
  3. 11
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml
  4. 4
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs
  5. 1
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyCompanyName.MyProjectName.Blazor.csproj
  6. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyProjectNameBlazorModule.cs

3
modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/en.json

@ -55,6 +55,7 @@
"GoToTheApplication": "Go to the application",
"BackToLogin": "Back to login",
"ProfileTab:Password": "Change password",
"ProfileTab:PersonalInfo": "Personal info"
"ProfileTab:PersonalInfo": "Personal info",
"ReturnToApplication": "Return to application"
}
}

4
modules/account/src/Volo.Abp.Account.Application.Contracts/Volo/Abp/Account/Localization/Resources/tr.json

@ -44,6 +44,7 @@
"LoggedOutTitle": "Çıkış Yaptınız",
"LoggedOutText": "Çıkış yaptınız ve birazdan yönlendirileceksiniz.",
"ReturnToText": "{0} uygulamasına dönmek için tıklayın.",
"OrLoginWith": "Veya bunlarla giriş yap;",
"ForgotPassword": "Şifremi unuttum",
"SendPasswordResetLink_Information": "E-posta adresinize bir şifre sıfırlama bağlantısı gönderilecektir. Birkaç dakika içerisinde bir e-posta almazsanız lütfen tekrar deneyin.",
"PasswordResetMailSentMessage": "E-posta adresinize bir şifre sıfırlama bağlantısı gönderilmiştir. Lütfen e-posta adresinizi kontrol ediniz. Eğer 15 dakika içinde, bu e-postayı gelen kutusunda bulamazsanız, gereksiz veya istenmeyen e-posta kutularına bakınız.",
@ -54,6 +55,7 @@
"GoToTheApplication": "Uygulamaya git",
"BackToLogin": "Girişe dön",
"ProfileTab:Password": "Şifre değiştir",
"ProfileTab:PersonalInfo": "Kişisel bilgiler"
"ProfileTab:PersonalInfo": "Kişisel bilgiler",
"ReturnToApplication": "Uygulamaya geri dön"
}
}

11
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml

@ -13,6 +13,17 @@
<abp-script-bundle name="@typeof(ManageModel).FullName"/>
}
@if (!Model.ReturnUrl.IsNullOrWhiteSpace())
{
<abp-row class="mb-2">
<abp-column>
<a class="btn btn-primary" href="@Model.ReturnUrl">
<i class="fa fa-chevron-left mr-2"></i>@L["ReturnToApplication"]
</a>
</abp-column>
</abp-row>
}
e
<div id="ProfileManagementWrapper">
<abp-card>
<abp-card-body>

4
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml.cs

@ -10,6 +10,10 @@ namespace Volo.Abp.Account.Web.Pages.Account
{
public class ManageModel : AccountPageModel
{
[HiddenInput]
[BindProperty(SupportsGet = true)]
public string ReturnUrl { get; set; }
public ProfileManagementPageCreationContext ProfileManagementPageCreationContext { get; private set; }
protected ProfileManagementPageOptions Options { get; }

1
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyCompanyName.MyProjectName.Blazor.csproj

@ -19,7 +19,6 @@
<ItemGroup>
<ProjectReference Include="..\..\..\..\..\modules\identity\src\Volo.Abp.Identity.Blazor\Volo.Abp.Identity.Blazor.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\account\src\Volo.Abp.Account.Blazor\Volo.Abp.Account.Blazor.csproj" />
<ProjectReference Include="..\..\..\..\..\modules\tenant-management\src\Volo.Abp.TenantManagement.Blazor\Volo.Abp.TenantManagement.Blazor.csproj" />
</ItemGroup>

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyProjectNameBlazorModule.cs

@ -14,7 +14,6 @@ using Volo.Abp.Autofac.WebAssembly;
using Volo.Abp.Modularity;
using Volo.Abp.UI.Navigation;
using Volo.Abp.Identity.Blazor;
using Volo.Abp.Account.Blazor;
using Volo.Abp.AutoMapper;
using Volo.Abp.TenantManagement.Blazor;
@ -25,7 +24,6 @@ namespace MyCompanyName.MyProjectName.Blazor
typeof(MyProjectNameHttpApiClientModule),
typeof(AbpAspNetCoreComponentsWebAssemblyBasicThemeModule),
typeof(AbpIdentityBlazorModule),
typeof(AbpAccountBlazorModule),
typeof(AbpTenantManagementBlazorModule)
)]
public class MyProjectNameBlazorModule : AbpModule

Loading…
Cancel
Save