From 20c9ad6b54799521204c19ea06ed4baf2dd12d73 Mon Sep 17 00:00:00 2001 From: sriram-at-840620226347 Date: Sat, 17 Oct 2020 18:35:34 +0530 Subject: [PATCH] pd officer link feacture --- .../common-ques/common-ques.component.html | 36 +++++++------- .../common-ques/common-ques.component.scss | 3 ++ .../employer-info.component.scss | 2 + .../employer-info/employer-info.component.ts | 47 ++++++++++--------- 4 files changed, 47 insertions(+), 41 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.html index bb1908c..001ddda 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.html @@ -623,20 +623,18 @@
{{getQuestionControl().at(1).value.address_type ? getAddressTypeNameById(getQuestionControl().at(1).value.address_type) :'Workplace'}} Photographs -
-
+
+

-
+
Workplace Photograph {{i+1}}
-
-
- No Photographs Found
-
+
+
@@ -690,21 +688,19 @@
Business Asset Sighted Photographs -
+
-
+

-
+
Business Sight {{i+1}}
-
-
- No Photographs Found
-
+
+
@@ -742,20 +738,20 @@ Please choose the value -
-
+
+

-
+
Stock Photograph {{i+1}}
-
- No Photographs Found
-
+ +
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.scss index 58e0303..8c3de42 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.scss +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/common-ques/common-ques.component.scss @@ -2,8 +2,11 @@ color: #fff !important; background-color: #e00201 !important; } + ::ng-deep .mat-dialog-container{ + @media (max-width: 768px) { padding: 0px !important; + } } .mat-button, .mat-raised-button{ background-color: #e24533; diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/employer-info/employer-info.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/employer-info/employer-info.component.scss index 0295354..f06eb1e 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/employer-info/employer-info.component.scss +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/employer-info/employer-info.component.scss @@ -47,7 +47,9 @@ width: 100%; } ::ng-deep .mat-dialog-container{ + @media (max-width: 768px) { padding: 0px !important; + } } .whole_form { diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/employer-info/employer-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/employer-info/employer-info.component.ts index e0ea90a..34d482b 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/employer-info/employer-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-questions/employer-info/employer-info.component.ts @@ -1445,27 +1445,32 @@ export class EmployerInfoComponent implements OnInit { let records= this.employerForm.getRawValue() // FOR VERFYING THE IMAGE ARE CAPTURED - if(flag != 'go_back') { - let photCheck=records.questions[2] - let index = this.stepperInfo.findIndex(vv=>vv.form_id == photCheck.form_id); - console.log("Index",index); - - if(photCheck.hasOwnProperty('nameboard_photographs') && photCheck.nameboard_photographs.length <1) { - if(index != -1) { - this.myStepper.selectedIndex = this.stepperInfo[index].stepper_index - } - console.log("asdf"); - this.notifier.notify("info","Minimum 1 photo required on Name Board") - return - } - if(photCheck.hasOwnProperty('office_photographs') && photCheck.office_photographs.length <3) { - if(index != -1) { - this.myStepper.selectedIndex = this.stepperInfo[index].stepper_index - } - this.notifier.notify("info","Minimum 3 photos required on Office Setup") - return - } - } + if(flag != 'go_back') { + + let photCheck=records.questions[8] + + if(photCheck.hasOwnProperty('office_photographs') && photCheck.office_photographs.length <3) { + this.checkingStepperIndex() + let index = this.stepperInfo.findIndex(vv=>vv.form_id == photCheck.form_id); + if(index != -1) { + this.myStepper.selectedIndex = this.stepperInfo[index].stepper_index + } + this.notifier.notify("info","Minimum 3 photos required on Office Setup") + return + } + photCheck=records.questions[9] + + if(photCheck.hasOwnProperty('nameboard_photographs') && photCheck.nameboard_photographs.length <1) { + this.checkingStepperIndex() + let index = this.stepperInfo.findIndex(vv=>vv.form_id == photCheck.form_id); + if(index != -1) { + this.myStepper.selectedIndex = this.stepperInfo[index].stepper_index + } + console.log("asdf"); + this.notifier.notify("info","Minimum 1 photo required on Name Board") + return + } + } // FOR MERGING EMPLOYMENT SECTION,DOCS SIGHTED,OFFICE AND NAME BOARD PHOTOGRAPH INTO SINGLE OBJ if(this.getQuestionControl().at(7).get('docs_sighted')) {