Browse Source

add property.

pull/6135/head
Ilkay Ilknur 6 years ago
parent
commit
414d47bf12
  1. 14
      modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/CreateModal.cshtml
  2. 18
      modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/EditModal.cshtml
  3. 8
      modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Users/CreateModal.cshtml
  4. 8
      modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Users/EditModal.cshtml
  5. 10
      modules/tenant-management/src/Volo.Abp.TenantManagement.Web/Pages/TenantManagement/Tenants/CreateModal.cshtml
  6. 8
      modules/tenant-management/src/Volo.Abp.TenantManagement.Web/Pages/TenantManagement/Tenants/EditModal.cshtml

14
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/CreateModal.cshtml

@ -17,11 +17,11 @@
<abp-modal-header title="@L["NewRole"].Value"></abp-modal-header> <abp-modal-header title="@L["NewRole"].Value"></abp-modal-header>
<abp-modal-body> <abp-modal-body>
<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)
@ -29,6 +29,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()"

18
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Roles/EditModal.cshtml

@ -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()"

8
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Users/CreateModal.cshtml

@ -34,6 +34,14 @@
<abp-select asp-for="UserInfo.ExtraProperties[propertyInfo.Name]" <abp-select asp-for="UserInfo.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="UserInfo.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()"

8
modules/identity/src/Volo.Abp.Identity.Web/Pages/Identity/Users/EditModal.cshtml

@ -36,6 +36,14 @@
<abp-select asp-for="UserInfo.ExtraProperties[propertyInfo.Name]" <abp-select asp-for="UserInfo.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="UserInfo.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()"

10
modules/tenant-management/src/Volo.Abp.TenantManagement.Web/Pages/TenantManagement/Tenants/CreateModal.cshtml

@ -21,7 +21,7 @@
<abp-input asp-for="Tenant.AdminEmailAddress" /> <abp-input asp-for="Tenant.AdminEmailAddress" />
<abp-input asp-for="Tenant.AdminPassword" /> <abp-input asp-for="Tenant.AdminPassword" />
@foreach (var propertyInfo in ObjectExtensionManager.Instance.GetProperties<CreateModalModel.TenantInfoModel>()) @foreach (var propertyInfo in ObjectExtensionManager.Instance.GetProperties<CreateModalModel.TenantInfoModel>())
{ {
if (propertyInfo.Type.IsEnum) if (propertyInfo.Type.IsEnum)
@ -29,6 +29,14 @@
<abp-select asp-for="Tenant.ExtraProperties[propertyInfo.Name]" <abp-select asp-for="Tenant.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="Tenant.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()"

8
modules/tenant-management/src/Volo.Abp.TenantManagement.Web/Pages/TenantManagement/Tenants/EditModal.cshtml

@ -25,6 +25,14 @@
<abp-select asp-for="Tenant.ExtraProperties[propertyInfo.Name]" <abp-select asp-for="Tenant.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="Tenant.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()"

Loading…
Cancel
Save