mirror of https://github.com/abpframework/abp.git
7 changed files with 86 additions and 77 deletions
@ -1,31 +1,37 @@ |
|||||
import {Component, Inject} from '@angular/core'; |
import { Component, Inject } from '@angular/core'; |
||||
import {EXTENSIONS_FORM_PROP, FormProp, EXTENSIBLE_FORM_VIEW_PROVIDER} from "@abp/ng.theme.shared/extensions"; |
import { |
||||
import {FormGroup} from "@angular/forms"; |
EXTENSIONS_FORM_PROP, |
||||
|
FormProp, |
||||
|
EXTENSIBLE_FORM_VIEW_PROVIDER, |
||||
|
} from '@abp/ng.theme.shared/extensions'; |
||||
|
import { FormGroup } from '@angular/forms'; |
||||
|
|
||||
@Component({ |
@Component({ |
||||
selector: 'abp-personal-settings-half-row', |
selector: 'abp-personal-settings-half-row', |
||||
template: ` |
template: ` <div class="w-50 d-inline">
|
||||
<div class="w-50 d-inline"> |
<div class="mb-3 form-group"> |
||||
<div class="mb-3 form-group" > |
<label [attr.for]="name" class="form-label">{{ displayName | abpLocalization }} </label> |
||||
<label [attr.for]="name" class="form-label">{{ |
<input |
||||
displayName | abpLocalization |
type="text" |
||||
}} |
[attr.id]="id" |
||||
</label> |
class="form-control" |
||||
<input type="text" [attr.id]="id" class="form-control" [attr.name]="name" [formControlName]="name"/> |
[attr.name]="name" |
||||
</div> |
[formControlName]="name" |
||||
</div>`,
|
/> |
||||
|
</div> |
||||
|
</div>`,
|
||||
styles: [], |
styles: [], |
||||
viewProviders: [EXTENSIBLE_FORM_VIEW_PROVIDER] |
viewProviders: [EXTENSIBLE_FORM_VIEW_PROVIDER], |
||||
}) |
}) |
||||
export class PersonalSettingsHalfRowComponent { |
export class PersonalSettingsHalfRowComponent { |
||||
public displayName: string; |
public displayName: string; |
||||
public name: string; |
public name: string; |
||||
public id: string; |
public id: string; |
||||
public formGroup: FormGroup |
public formGroup: FormGroup; |
||||
|
|
||||
constructor(@Inject(EXTENSIONS_FORM_PROP) private propData: FormProp) { |
constructor(@Inject(EXTENSIONS_FORM_PROP) private propData: FormProp) { |
||||
this.displayName = propData.displayName |
this.displayName = propData.displayName; |
||||
this.name = propData.name |
this.name = propData.name; |
||||
this.id = propData.id |
this.id = propData.id; |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,11 +1,11 @@ |
|||||
import {eAccountComponents} from "../enums"; |
import { eAccountComponents } from '../enums'; |
||||
import { EditFormPropContributorCallback } from '@abp/ng.theme.shared/extensions'; |
import { EditFormPropContributorCallback } from '@abp/ng.theme.shared/extensions'; |
||||
import {UpdateProfileDto} from "@abp/ng.account.core/proxy"; |
import { UpdateProfileDto } from '@abp/ng.account.core/proxy'; |
||||
|
|
||||
export interface AccountConfigOptions { |
export interface AccountConfigOptions { |
||||
redirectUrl?: string; |
redirectUrl?: string; |
||||
editFormPropContributors?: AccountEditFormPropContributors; |
editFormPropContributors?: AccountEditFormPropContributors; |
||||
} |
} |
||||
export type AccountEditFormPropContributors = Partial<{ |
export type AccountEditFormPropContributors = Partial<{ |
||||
[eAccountComponents.PersonalSettings]: EditFormPropContributorCallback<UpdateProfileDto>[]; |
[eAccountComponents.PersonalSettings]: EditFormPropContributorCallback<UpdateProfileDto>[]; |
||||
}>; |
}>; |
||||
Loading…
Reference in new issue