|
|
@ -17,9 +17,9 @@ |
|
|
<abp-modal-header title="@L["Edit"].Value"></abp-modal-header> |
|
|
<abp-modal-header title="@L["Edit"].Value"></abp-modal-header> |
|
|
<abp-modal-body> |
|
|
<abp-modal-body> |
|
|
<abp-input asp-for="Role.Id" /> |
|
|
<abp-input asp-for="Role.Id" /> |
|
|
|
|
|
|
|
|
<abp-input asp-for="Role.ConcurrencyStamp" /> |
|
|
<abp-input asp-for="Role.ConcurrencyStamp" /> |
|
|
|
|
|
|
|
|
@if (Model.Role.IsStatic) |
|
|
@if (Model.Role.IsStatic) |
|
|
{ |
|
|
{ |
|
|
<abp-input asp-for="Role.Name" readonly="true" /> |
|
|
<abp-input asp-for="Role.Name" readonly="true" /> |
|
|
@ -28,11 +28,11 @@ |
|
|
{ |
|
|
{ |
|
|
<abp-input asp-for="Role.Name" /> |
|
|
<abp-input asp-for="Role.Name" /> |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
<abp-input asp-for="Role.IsDefault" /> |
|
|
<abp-input asp-for="Role.IsDefault" /> |
|
|
|
|
|
|
|
|
<abp-input asp-for="Role.IsPublic" /> |
|
|
<abp-input asp-for="Role.IsPublic" /> |
|
|
|
|
|
|
|
|
@foreach (var propertyInfo in ObjectExtensionManager.Instance.GetProperties<CreateModalModel.RoleInfoModel>()) |
|
|
@foreach (var propertyInfo in ObjectExtensionManager.Instance.GetProperties<CreateModalModel.RoleInfoModel>()) |
|
|
{ |
|
|
{ |
|
|
if (propertyInfo.Type.IsEnum) |
|
|
if (propertyInfo.Type.IsEnum) |
|
|
@ -40,6 +40,14 @@ |
|
|
<abp-select asp-for="Role.ExtraProperties[propertyInfo.Name]" |
|
|
<abp-select asp-for="Role.ExtraProperties[propertyInfo.Name]" |
|
|
label="@propertyInfo.GetLocalizedDisplayName(StringLocalizerFactory)"></abp-select> |
|
|
label="@propertyInfo.GetLocalizedDisplayName(StringLocalizerFactory)"></abp-select> |
|
|
} |
|
|
} |
|
|
|
|
|
else if (!propertyInfo.LookupConfiguration.ApiUrl.IsNullOrEmpty()) |
|
|
|
|
|
{ |
|
|
|
|
|
<abp-select asp-for="Role.ExtraProperties[propertyInfo.Name]" |
|
|
|
|
|
label="@propertyInfo.GetLocalizedDisplayName(StringLocalizerFactory)" |
|
|
|
|
|
autocomplete-api-url="@propertyInfo.LookupConfiguration.ApiUrl" |
|
|
|
|
|
autocomplete-display-property-name="@propertyInfo.LookupConfiguration.DisplayPropertyName" |
|
|
|
|
|
autocomplete-value-property-name="@propertyInfo.LookupConfiguration.ValuePropertyName"></abp-select> |
|
|
|
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
<abp-input type="@propertyInfo.GetInputType()" |
|
|
<abp-input type="@propertyInfo.GetInputType()" |
|
|
|