profile field added
This commit is contained in:
parent
5d0cf0f510
commit
398d4c557f
@ -49,7 +49,15 @@
|
||||
</div>
|
||||
<div class="form-group label-container">
|
||||
<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">
|
||||
<input type="text" matInput placeholder="gender" [(ngModel)]="gender" >
|
||||
</mat-form-field> -->
|
||||
@ -92,17 +100,26 @@
|
||||
<mat-form-field class="example-full-width" *ngIf="isEditable == true">
|
||||
<mat-label>Experience</mat-label>
|
||||
<input type="text" matInput placeholder="Experience" [(ngModel)]="exp">
|
||||
</mat-form-field>
|
||||
<!-- <mat-form-field class="example-full-width" *ngIf="isEditable == true">
|
||||
<mat-label>Experience</mat-label>
|
||||
<mat-select placeholder="Experience" [(ngModel)]="exp" required>
|
||||
<mat-option>--</mat-option>
|
||||
<mat-option *ngFor="let expdata of experience" [value]="expdata.exp">
|
||||
{{expdata.exp}}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field> -->
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div class="form-group label-container">
|
||||
<label>Skills <span style="margin-left: 4rem;">-</span></label>
|
||||
<a style="padding: 10px;" *ngIf="isEditable == false">{{practitionerdetails.skills}}</a>
|
||||
<mat-form-field class="example-full-width" *ngIf="isEditable == true">
|
||||
<mat-label>Skills</mat-label>
|
||||
<mat-select [(ngModel)]="skills" multiple>
|
||||
<mat-option *ngFor="let skillsDetails of skillsOption" [value]="skillsDetails.name">{{skillsDetails.name}}</mat-option>
|
||||
</mat-select>
|
||||
</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 class="form-group label-container">
|
||||
<label>Fees <span style="margin-left: 6.7rem;">-</span></label>
|
||||
<a style="padding: 10px;">{{practitionerdetails.fees}}</a>
|
||||
|
||||
@ -42,7 +42,9 @@ export class ConsultantSettingComponent implements OnInit {
|
||||
working_customize:any= false;
|
||||
|
||||
userName:any = [];
|
||||
// gender: any=[];
|
||||
gender: any=[];
|
||||
description:any=[];
|
||||
skills:any = [];
|
||||
dob: any=[];
|
||||
languages: any=[];
|
||||
designtion: any=[];
|
||||
@ -51,6 +53,8 @@ export class ConsultantSettingComponent implements OnInit {
|
||||
id: any;
|
||||
public end_User_Url = environment.endUserUrl;
|
||||
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) {}
|
||||
|
||||
|
||||
@ -139,6 +143,8 @@ workingDialog(action,obj) {
|
||||
"dob": null,
|
||||
"designtion": null,
|
||||
"gender": null,
|
||||
"description":null,
|
||||
"skills": null,
|
||||
"isActive": "1",
|
||||
|
||||
}]
|
||||
@ -148,13 +154,15 @@ workingDialog(action,obj) {
|
||||
console.log(this.practitionerdetails)
|
||||
this.id=this.practitionerdetails.id
|
||||
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.exp=this.practitionerdetails.exp
|
||||
this.languages=this.practitionerdetails.languages
|
||||
this.qualification=this.practitionerdetails.qualification
|
||||
this.designtion=this.practitionerdetails.designtion
|
||||
// console.log(this.gender)
|
||||
console.log(this.gender)
|
||||
this.workinghours = JSON.parse(this.practitionerdetails.workingHours)
|
||||
// this.workinghours = this.practitionerdetails.workingHours
|
||||
console.log(this.workinghours)
|
||||
@ -309,13 +317,16 @@ workingDialog(action,obj) {
|
||||
"languages": this.languages,
|
||||
"dob": this.dob,
|
||||
"designtion": this.qualification,
|
||||
// "gender": this.gender,
|
||||
"gender": this.gender,
|
||||
"description": this.description,
|
||||
"skills": this.skills,
|
||||
"userName": this.userName,
|
||||
"userId":userid
|
||||
}
|
||||
if(this.usersList['practitionerInfos'].length>0) {
|
||||
param.id = this.id
|
||||
}
|
||||
console.log(param)
|
||||
this._con.createPractitionerInfo(param).subscribe(res => {
|
||||
if (res.status == 200) {
|
||||
this.getUsersList()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user