Browse Source

Update Manage.razor

pull/5575/head
Ahmet 6 years ago
parent
commit
f22f2341eb
  1. 80
      modules/account/src/Volo.Abp.Account.Blazor/Pages/Account/Manage.razor

80
modules/account/src/Volo.Abp.Account.Blazor/Pages/Account/Manage.razor

@ -11,51 +11,55 @@
@if (ChangePasswordModel != null) @if (ChangePasswordModel != null)
{ {
<TabPanel Name="Password"> <TabPanel Name="Password">
<Field> <EditForm id="ChangePasswordForm" Model="@ChangePasswordModel" OnValidSubmit="ChangePasswordAsync">
<FieldLabel>@L["DisplayName:CurrentPassword"]</FieldLabel> <Field>
<TextEdit Role="TextRole.Password" @bind-text="@ChangePasswordModel.CurrentPassword" /> <FieldLabel>@L["DisplayName:CurrentPassword"]</FieldLabel>
</Field> <TextEdit Role="TextRole.Password" @bind-text="@ChangePasswordModel.CurrentPassword"/>
<Field> </Field>
<FieldLabel>@L["DisplayName:NewPassword"]</FieldLabel> <Field>
<TextEdit Role="TextRole.Password" @bind-text="@ChangePasswordModel.NewPassword" /> <FieldLabel>@L["DisplayName:NewPassword"]</FieldLabel>
</Field> <TextEdit Role="TextRole.Password" @bind-text="@ChangePasswordModel.NewPassword"/>
<Field> </Field>
<FieldLabel>@L["DisplayName:NewPasswordConfirm"]</FieldLabel> <Field>
<TextEdit Role="TextRole.Password" @bind-text="@ChangePasswordModel.NewPasswordConfirm" /> <FieldLabel>@L["DisplayName:NewPasswordConfirm"]</FieldLabel>
</Field> <TextEdit Role="TextRole.Password" @bind-text="@ChangePasswordModel.NewPasswordConfirm"/>
<Field> </Field>
<Button Color="Color.Primary" Clicked="@ChangePasswordAsync">@L["Save"]</Button> <Field>
</Field> <Button form="ChangePasswordForm" Color="Color.Primary" Clicked="@ChangePasswordAsync">@L["Save"]</Button>
</Field>
</EditForm>
</TabPanel> </TabPanel>
} }
@if (PersonalInfoModel != null) @if (PersonalInfoModel != null)
{ {
<TabPanel Name="PersonalInfo"> <TabPanel Name="PersonalInfo">
<Field> <EditForm id="UpdatePersonalInfoForm" Model="@PersonalInfoModel" OnValidSubmit="UpdatePersonalInfoAsync">
<FieldLabel>@L["DisplayName:UserName"]</FieldLabel> <Field>
<TextEdit @bind-text="@PersonalInfoModel.UserName" /> <FieldLabel>@L["DisplayName:UserName"]</FieldLabel>
</Field> <TextEdit @bind-text="@PersonalInfoModel.UserName"/>
<Fields> </Field>
<Field ColumnSize="ColumnSize.Is6"> <Fields>
<FieldLabel>@L["DisplayName:Name"]</FieldLabel> <Field ColumnSize="ColumnSize.Is6">
<TextEdit @bind-text="@PersonalInfoModel.Name" /> <FieldLabel>@L["DisplayName:Name"]</FieldLabel>
<TextEdit @bind-text="@PersonalInfoModel.Name"/>
</Field>
<Field ColumnSize="ColumnSize.Is6">
<FieldLabel>@L["DisplayName:Surname"]</FieldLabel>
<TextEdit @bind-text="@PersonalInfoModel.Surname"/>
</Field>
</Fields>
<Field>
<FieldLabel>@L["DisplayName:Email"]</FieldLabel>
<TextEdit @bind-text="@PersonalInfoModel.Email"/>
</Field>
<Field>
<FieldLabel>@L["DisplayName:PhoneNumber"]</FieldLabel>
<TextEdit @bind-text="@PersonalInfoModel.PhoneNumber"/>
</Field> </Field>
<Field ColumnSize="ColumnSize.Is6"> <Field>
<FieldLabel>@L["DisplayName:Surname"]</FieldLabel> <Button form="UpdatePersonalInfoForm" Color="Color.Primary" Clicked="@UpdatePersonalInfoAsync">@L["Save"]</Button>
<TextEdit @bind-text="@PersonalInfoModel.Surname" />
</Field> </Field>
</Fields> </EditForm>
<Field>
<FieldLabel>@L["DisplayName:Email"]</FieldLabel>
<TextEdit @bind-text="@PersonalInfoModel.Email" />
</Field>
<Field>
<FieldLabel>@L["DisplayName:PhoneNumber"]</FieldLabel>
<TextEdit @bind-text="@PersonalInfoModel.PhoneNumber" />
</Field>
<Field>
<Button Color="Color.Primary" Clicked="@UpdatePersonalInfoAsync">@L["Save"]</Button>
</Field>
</TabPanel> </TabPanel>
} }
</Content> </Content>

Loading…
Cancel
Save