From 2aa7e53ef6fec9dea12e34fb8c8a3be9928fcfd6 Mon Sep 17 00:00:00 2001 From: Surendiran Date: Mon, 29 May 2023 15:49:30 +0530 Subject: [PATCH] Edit Business in setting page --- .../consultant-service/consultant.service.ts | 8 + .../consultant-setting.component.html | 142 +++++++- .../consultant-setting.component.scss | 27 ++ .../consultant-setting.component.ts | 312 ++++++++++++++++-- ng-seed/src/environments/environment.ts | 4 +- 5 files changed, 466 insertions(+), 27 deletions(-) diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-service/consultant.service.ts b/ng-seed/src/app/appoinment/consultant-setting/consultant-service/consultant.service.ts index 64bced2..89b57fb 100644 --- a/ng-seed/src/app/appoinment/consultant-setting/consultant-service/consultant.service.ts +++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-service/consultant.service.ts @@ -42,6 +42,14 @@ export class ConsultantService { return this._http.post(this.apiUrl + "getPractitionerInfo",param) } + addFormDetails(addParams:any): Observable { + + return this._http.post(this.apiUrl + 'createBusinessDetails', addParams) + // .pipe( + // catchError(this.handleError('role', [])) + // ) + } + handleError(arg0: string, arg1: undefined[]): (err: any, caught: Observable) => import("rxjs").ObservableInput { throw new Error('Method not implemented.'); } diff --git a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html index 40c2cb1..cd28aac 100644 --- a/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html +++ b/ng-seed/src/app/appoinment/consultant-setting/consultant-setting/consultant-setting.component.html @@ -570,16 +570,148 @@ - + + - --> +
+ +
+ + - {{BusinessDetailsdata.busName}} + + Business Name + + Name is required + Limit exceed + +
+ +
+ + - {{BusinessDetailsdata.email}} + + Email + + + +
+
+ + - {{BusinessDetailsdata.contactNo}} + + Mobile No + + Contact No is required + Invalid Contact No + Contact No must be at least 10 characters + Limit exceed + +
+
+ + - {{BusinessDetailsdata.address}} + + Address + + Address is required + Limit exceed + +
+
+ + - {{BusinessDetailsdata.country}} + + Country + + Select Country + {{ country.flag }}   {{ country.name }} + Invalid option + + Country is required + +
+
+ + - {{BusinessDetailsdata.state}} + + State + + -- Select Your State -- + {{ state.name }} + Invalid option + + State is required + +
+
+ + - {{BusinessDetailsdata.city}} + + City + + -- Select Your City -- + {{ city.name }} + Invalid option + + City is required + +
+
+ + - {{BusinessDetailsdata.currency}} + + Type Of Currency + + currency is required + +
+
+
+ +
+
+ Upload Below 2MB
Supported File (jpg,jpeg and png)
+
+
+ + + +
+ + +
+ + Appointment Booking Link @@ -590,15 +722,15 @@
-

Here's your personal booking page. share this link with customers so they can book your Services directly.

- Appointment booking URL +

Here's your personal booking page. Edit and share this link with customers so they can book your Services directly.

+ Appoinment booking domain