Update UserManagement.razor

pull/5575/head
Ahmet 5 years ago
parent 2eb24e2e59
commit abbe5d47e0

@ -86,13 +86,13 @@
<CloseButton Clicked="CloseCreateModalAsync"/> <CloseButton Clicked="CloseCreateModalAsync"/>
</ModalHeader> </ModalHeader>
<ModalBody> <ModalBody>
<Tabs @bind-SelectedTab="@CreateModalSelectedTab"> <EditForm id="IdentityUserCreateForm" Model="@NewEntity" OnValidSubmit="CreateEntityAsync">
<Items> <Tabs @bind-SelectedTab="@CreateModalSelectedTab">
<Tab Name="UserInformations">@L["UserInformations"]</Tab> <Items>
<Tab Name="Roles">@L["Roles"]</Tab> <Tab Name="UserInformations">@L["UserInformations"]</Tab>
</Items> <Tab Name="Roles">@L["Roles"]</Tab>
<Content> </Items>
<EditForm id="IdentityUserCreateForm" Model="@NewEntity" OnValidSubmit="CreateEntityAsync"> <Content>
<TabPanel Name="UserInformations"> <TabPanel Name="UserInformations">
<Field> <Field>
<FieldLabel>@L["DisplayName:UserName"]</FieldLabel> <FieldLabel>@L["DisplayName:UserName"]</FieldLabel>
@ -137,9 +137,9 @@
} }
} }
</TabPanel> </TabPanel>
</EditForm> </Content>
</Content> </Tabs>
</Tabs> </EditForm>
</ModalBody> </ModalBody>
<ModalFooter> <ModalFooter>
<Button Color="Color.Secondary" Clicked="CloseCreateModalAsync">@L["Cancel"]</Button> <Button Color="Color.Secondary" Clicked="CloseCreateModalAsync">@L["Cancel"]</Button>
@ -160,15 +160,15 @@
<CloseButton Clicked="CloseEditModalAsync"/> <CloseButton Clicked="CloseEditModalAsync"/>
</ModalHeader> </ModalHeader>
<ModalBody> <ModalBody>
<input type="hidden" name="ConcurrencyStamp" @bind-value="EditingEntity.ConcurrencyStamp"/> <EditForm id="IdentityUserEditForm" Model="@EditingEntity" OnValidSubmit="UpdateEntityAsync">
<input type="hidden" name="ConcurrencyStamp" @bind-value="EditingEntity.ConcurrencyStamp"/>
<Tabs @bind-SelectedTab="@EditModalSelectedTab"> <Tabs @bind-SelectedTab="@EditModalSelectedTab">
<Items> <Items>
<Tab Name="UserInformations">@L["UserInformations"]</Tab> <Tab Name="UserInformations">@L["UserInformations"]</Tab>
<Tab Name="Roles">@L["Roles"]</Tab> <Tab Name="Roles">@L["Roles"]</Tab>
</Items> </Items>
<Content> <Content>
<EditForm id="IdentityUserEditForm" Model="@EditingEntity" OnValidSubmit="UpdateEntityAsync">
<TabPanel Name="UserInformations"> <TabPanel Name="UserInformations">
<Field> <Field>
<FieldLabel>@L["DisplayName:UserName"]</FieldLabel> <FieldLabel>@L["DisplayName:UserName"]</FieldLabel>
@ -213,9 +213,9 @@
} }
} }
</TabPanel> </TabPanel>
</EditForm> </Content>
</Content> </Tabs>
</Tabs> </EditForm>
</ModalBody> </ModalBody>
<ModalFooter> <ModalFooter>
<Button Color="Color.Secondary" Clicked="CloseEditModalAsync">@L["Cancel"]</Button> <Button Color="Color.Secondary" Clicked="CloseEditModalAsync">@L["Cancel"]</Button>

Loading…
Cancel
Save