profile field added
This commit is contained in:
parent
5d0cf0f510
commit
398d4c557f
@ -49,7 +49,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group label-container">
|
<div class="form-group label-container">
|
||||||
<label>Gender <span style="margin-left: 5.5rem;">-</span></label>
|
<label>Gender <span style="margin-left: 5.5rem;">-</span></label>
|
||||||
<a style="padding: 10px;">{{practitionerdetails.gender}}</a>
|
<a *ngIf="isEditable == false" style="padding: 10px;">{{practitionerdetails.gender}}</a>
|
||||||
|
<mat-form-field class="example-full-width" *ngIf="isEditable == true">
|
||||||
|
<mat-label>Gender</mat-label>
|
||||||
|
<mat-select placeholder="Gender" [(ngModel)]="gender" required>
|
||||||
|
<mat-option *ngFor="let genderData of genderOption" [value]="genderData.name">
|
||||||
|
{{genderData.name}}
|
||||||
|
</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
</mat-form-field>
|
||||||
<!-- <mat-form-field class="example-full-width" *ngIf="isEditable == true">
|
<!-- <mat-form-field class="example-full-width" *ngIf="isEditable == true">
|
||||||
<input type="text" matInput placeholder="gender" [(ngModel)]="gender" >
|
<input type="text" matInput placeholder="gender" [(ngModel)]="gender" >
|
||||||
</mat-form-field> -->
|
</mat-form-field> -->
|
||||||
@ -93,15 +101,24 @@
|
|||||||
<mat-label>Experience</mat-label>
|
<mat-label>Experience</mat-label>
|
||||||
<input type="text" matInput placeholder="Experience" [(ngModel)]="exp">
|
<input type="text" matInput placeholder="Experience" [(ngModel)]="exp">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- <mat-form-field class="example-full-width" *ngIf="isEditable == true">
|
</div>
|
||||||
<mat-label>Experience</mat-label>
|
<div class="form-group label-container">
|
||||||
<mat-select placeholder="Experience" [(ngModel)]="exp" required>
|
<label>Skills <span style="margin-left: 4rem;">-</span></label>
|
||||||
<mat-option>--</mat-option>
|
<a style="padding: 10px;" *ngIf="isEditable == false">{{practitionerdetails.skills}}</a>
|
||||||
<mat-option *ngFor="let expdata of experience" [value]="expdata.exp">
|
<mat-form-field class="example-full-width" *ngIf="isEditable == true">
|
||||||
{{expdata.exp}}
|
<mat-label>Skills</mat-label>
|
||||||
</mat-option>
|
<mat-select [(ngModel)]="skills" multiple>
|
||||||
|
<mat-option *ngFor="let skillsDetails of skillsOption" [value]="skillsDetails.name">{{skillsDetails.name}}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field> -->
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="form-group label-container">
|
||||||
|
<label>Description <span style="margin-left: 4rem;">-</span></label>
|
||||||
|
<a style="padding: 10px;" *ngIf="isEditable == false">{{practitionerdetails.description}}</a>
|
||||||
|
<mat-form-field class="example-full-width" *ngIf="isEditable == true">
|
||||||
|
<mat-label>Description</mat-label>
|
||||||
|
<textarea matInput rows="5" cols="40" placeholder="Description" [(ngModel)]="description"></textarea>
|
||||||
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="form-group label-container">
|
<!-- <div class="form-group label-container">
|
||||||
<label>Fees <span style="margin-left: 6.7rem;">-</span></label>
|
<label>Fees <span style="margin-left: 6.7rem;">-</span></label>
|
||||||
|
|||||||
@ -42,7 +42,9 @@ export class ConsultantSettingComponent implements OnInit {
|
|||||||
working_customize:any= false;
|
working_customize:any= false;
|
||||||
|
|
||||||
userName:any = [];
|
userName:any = [];
|
||||||
// gender: any=[];
|
gender: any=[];
|
||||||
|
description:any=[];
|
||||||
|
skills:any = [];
|
||||||
dob: any=[];
|
dob: any=[];
|
||||||
languages: any=[];
|
languages: any=[];
|
||||||
designtion: any=[];
|
designtion: any=[];
|
||||||
@ -51,6 +53,8 @@ export class ConsultantSettingComponent implements OnInit {
|
|||||||
id: any;
|
id: any;
|
||||||
public end_User_Url = environment.endUserUrl;
|
public end_User_Url = environment.endUserUrl;
|
||||||
endUserURL: any;
|
endUserURL: any;
|
||||||
|
genderOption:any = [{'name':'Male'},{'name':'Female'}]
|
||||||
|
skillsOption:any = [{'name':'Assisting with walking from bed to wheelchair'},{'name':'Bathing, dressing and grooming assistance'},{'name':'Medication reminders'},{'name':'Safety and fall prevention'},{'name':'Status reporting to family'},{'name':'Assisting with walking from bed to wheelchair'},{'name':'Bathing, dressing and grooming assistance'},{'name':'Medication reminders'},{'name':'Safety and fall prevention'},{'name':'Status reporting to family'}]
|
||||||
constructor(private notifierService: NotifierService,private formBuilder: FormBuilder, public dialog: MatDialog, public _con:ConsultantService, private fb: FormBuilder, public _api:ConsultantService,private locationStrategy: LocationStrategy) {}
|
constructor(private notifierService: NotifierService,private formBuilder: FormBuilder, public dialog: MatDialog, public _con:ConsultantService, private fb: FormBuilder, public _api:ConsultantService,private locationStrategy: LocationStrategy) {}
|
||||||
|
|
||||||
|
|
||||||
@ -139,6 +143,8 @@ workingDialog(action,obj) {
|
|||||||
"dob": null,
|
"dob": null,
|
||||||
"designtion": null,
|
"designtion": null,
|
||||||
"gender": null,
|
"gender": null,
|
||||||
|
"description":null,
|
||||||
|
"skills": null,
|
||||||
"isActive": "1",
|
"isActive": "1",
|
||||||
|
|
||||||
}]
|
}]
|
||||||
@ -148,13 +154,15 @@ workingDialog(action,obj) {
|
|||||||
console.log(this.practitionerdetails)
|
console.log(this.practitionerdetails)
|
||||||
this.id=this.practitionerdetails.id
|
this.id=this.practitionerdetails.id
|
||||||
this.userName = this.usersList.userName
|
this.userName = this.usersList.userName
|
||||||
// this.gender=this.practitionerdetails.gender
|
this.gender=this.practitionerdetails.gender
|
||||||
|
this.description=this.practitionerdetails.description
|
||||||
|
this.skills=this.practitionerdetails.skills
|
||||||
this.dob=this.practitionerdetails.dob
|
this.dob=this.practitionerdetails.dob
|
||||||
this.exp=this.practitionerdetails.exp
|
this.exp=this.practitionerdetails.exp
|
||||||
this.languages=this.practitionerdetails.languages
|
this.languages=this.practitionerdetails.languages
|
||||||
this.qualification=this.practitionerdetails.qualification
|
this.qualification=this.practitionerdetails.qualification
|
||||||
this.designtion=this.practitionerdetails.designtion
|
this.designtion=this.practitionerdetails.designtion
|
||||||
// console.log(this.gender)
|
console.log(this.gender)
|
||||||
this.workinghours = JSON.parse(this.practitionerdetails.workingHours)
|
this.workinghours = JSON.parse(this.practitionerdetails.workingHours)
|
||||||
// this.workinghours = this.practitionerdetails.workingHours
|
// this.workinghours = this.practitionerdetails.workingHours
|
||||||
console.log(this.workinghours)
|
console.log(this.workinghours)
|
||||||
@ -309,13 +317,16 @@ workingDialog(action,obj) {
|
|||||||
"languages": this.languages,
|
"languages": this.languages,
|
||||||
"dob": this.dob,
|
"dob": this.dob,
|
||||||
"designtion": this.qualification,
|
"designtion": this.qualification,
|
||||||
// "gender": this.gender,
|
"gender": this.gender,
|
||||||
|
"description": this.description,
|
||||||
|
"skills": this.skills,
|
||||||
"userName": this.userName,
|
"userName": this.userName,
|
||||||
"userId":userid
|
"userId":userid
|
||||||
}
|
}
|
||||||
if(this.usersList['practitionerInfos'].length>0) {
|
if(this.usersList['practitionerInfos'].length>0) {
|
||||||
param.id = this.id
|
param.id = this.id
|
||||||
}
|
}
|
||||||
|
console.log(param)
|
||||||
this._con.createPractitionerInfo(param).subscribe(res => {
|
this._con.createPractitionerInfo(param).subscribe(res => {
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
this.getUsersList()
|
this.getUsersList()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user