Browse Source

Minor fixes.

pull/190/head
Halil İbrahim Kalkan 8 years ago
parent
commit
a709ce09a4
  1. 2
      src/Volo.Abp.Identity.Web/ObjectMappings/AbpIdentityWebAutoMapperProfile.cs
  2. 9
      src/Volo.Abp.Identity.Web/Pages/Identity/Roles/CreateModal.cshtml.cs
  3. 12
      src/Volo.Abp.Identity.Web/Pages/Identity/Roles/CreateRoleInfoModel.cs
  4. 2
      src/Volo.Abp.Identity.Web/Pages/Identity/Users/Index.cshtml
  5. 15
      src/Volo.Abp.Identity.Web/Volo.Abp.Identity.Web.csproj

2
src/Volo.Abp.Identity.Web/ObjectMappings/AbpIdentityWebAutoMapperProfile.cs

@ -39,7 +39,7 @@ namespace Volo.Abp.Identity.Web.ObjectMappings
CreateMap<IdentityRoleDto, RoleInfoModel>();
//CreateModal
CreateMap<CreateRoleInfoModel, IdentityRoleCreateDto>();
CreateMap<CreateModalModel.CreateRoleInfoModel, IdentityRoleCreateDto>();
//EditModal
CreateMap<RoleInfoModel, IdentityRoleUpdateDto>();

9
src/Volo.Abp.Identity.Web/Pages/Identity/Roles/CreateModal.cshtml.cs

@ -1,3 +1,4 @@
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc.RazorPages;
@ -26,5 +27,13 @@ namespace Volo.Abp.Identity.Web.Pages.Identity.Roles
return NoContent();
}
public class CreateRoleInfoModel
{
[Required]
[StringLength(IdentityRoleConsts.MaxNameLength)]
[Display(Name = "RoleName")]
public string Name { get; set; }
}
}
}

12
src/Volo.Abp.Identity.Web/Pages/Identity/Roles/CreateRoleInfoModel.cs

@ -1,12 +0,0 @@
using System.ComponentModel.DataAnnotations;
namespace Volo.Abp.Identity.Web.Pages.Identity.Roles
{
public class CreateRoleInfoModel
{
[Required]
[StringLength(IdentityRoleConsts.MaxNameLength)]
[Display(Name = "RoleName")]
public string Name { get; set; }
}
}

2
src/Volo.Abp.Identity.Web/Pages/Identity/Users/Index.cshtml

@ -34,7 +34,7 @@
<thead>
<tr>
<th>@L["Actions"]</th>
<th>@L["RoleName"]</th>
<th>@L["UserName"]</th>
<th>@L["EmailAddress"]</th>
<th>@L["PhoneNumber"]</th>
</tr>

15
src/Volo.Abp.Identity.Web/Volo.Abp.Identity.Web.csproj

@ -16,21 +16,6 @@
<EmbeddedResource Include="Localization\Resources\**\*.json" />
</ItemGroup>
<ItemGroup>
<Content Remove="Pages\Identity\Roles\CreateModal.cshtml" />
<Content Remove="Pages\Identity\Roles\EditModal.cshtml" />
<Content Remove="Pages\Identity\Roles\Index.cshtml" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Remove="wwwroot\modules\identity\views\roles\index.css" />
<EmbeddedResource Remove="wwwroot\modules\identity\views\roles\index.es5.js" />
<EmbeddedResource Remove="wwwroot\modules\identity\views\roles\index.es5.min.js" />
<EmbeddedResource Remove="wwwroot\modules\identity\views\roles\index.js" />
<EmbeddedResource Remove="wwwroot\modules\identity\views\roles\index.less" />
<EmbeddedResource Remove="wwwroot\modules\identity\views\roles\index.min.css" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Volo.Abp.AspNetCore.Mvc.UI.Bootstrap\Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.csproj" />
<ProjectReference Include="..\Volo.Abp.Identity.Application.Contracts\Volo.Abp.Identity.Application.Contracts.csproj" />

Loading…
Cancel
Save