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