Neighbourhood check
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 3203770..9ead99c 100644
--- 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
@@ -57,4 +57,43 @@
hr{
width: 100%;
border-bottom: 2px solid lightcoral;
+ }
+ @-webkit-keyframes highlight-fade {
+ 0% {
+ background: orange;
+ }
+ 100% {
+ background: white;
+ }
+ }
+ @-moz-keyframes highlight-fade {
+ 0% {
+ background: orange;
+ }
+ 100% {
+ background: white;
+ }
+ }
+ @-ms-keyframes highlight-fade {
+ 0% {
+ background: orange;
+ }
+ 100% {
+ background: white;
+ }
+ }
+ @keyframes highlight-fade {
+ 0% {
+ background: orange;
+ }
+ 100% {
+ background: white;
+ }
+ }
+ .field_highlight {
+ -webkit-animation: highlight-fade 4s ease-out;
+ -moz-animation: highlight-fade 4s ease-out;
+ -o-animation: highlight-fade 4s ease-out;
+ animation: highlight-fade 4s ease-out;
+ // background: blue;
}
\ No newline at end of file
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 8509481..fbc92ee 100644
--- 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
@@ -37,20 +37,15 @@ export class EmployerInfoComponent implements OnInit {
form_id:5,
stepper_index:3,
is_dynamic:true
- },{
- form_name:'Neighbourhood Details',
- form_id:19,
- stepper_index:4,
- is_dynamic:true
},{
form_name:'Final Remarks',
form_id:20,
- stepper_index:5,
+ stepper_index:4,
is_dynamic:true
},{
form_name:'Submit',
form_id:'COMMENTS',
- stepper_index:5,
+ stepper_index:4,
is_dynamic:true
},]
// public person_met_entered:FormControl= new FormControl('')
@@ -157,7 +152,7 @@ export class EmployerInfoComponent implements OnInit {
questions:this._formBuilder.array([this.addGeneralControls(),this.addAddressControls(),
this.addEmployerInfoForm(),this.addNeighbourhoodControls(),this.addFinalRemarksControls(),
this._formBuilder.group({
- final_comments:[''],
+ final_comments:['',Validators.required],
final_visit_status:['',Validators.compose([Validators.required])],
company_existence_neighbour_confirmed:['',Validators.required],
company_existence_years:[''],
@@ -1251,7 +1246,15 @@ export class EmployerInfoComponent implements OnInit {
}
}
if(firstInvalidField != undefined){
- firstInvalidField.scrollIntoView({behavior: "smooth", block: "end", inline: "nearest"})
+ // firstInvalidField.scrollIntoView({behavior: "smooth", block: "end", inline: "nearest"})
+ setTimeout(()=>{
+ firstInvalidField.scrollIntoView({block: "start", inline: "nearest"})
+ // firstInvalidField.style.background = 'red'
+ firstInvalidField.classList.remove('field_highlight')
+ setTimeout(()=>{
+ firstInvalidField.classList.add('field_highlight')
+ },300)
+ },500)
// this.myStepper.selectedIndex = 0;
}
@@ -1343,6 +1346,7 @@ export class EmployerInfoComponent implements OnInit {
records.pdid = this.pdDetails.pd_id;
records.formid = "25";
records.fk_createdby = this.users;
+ records.is_form_validated = flag == 'go_back' ? '0' : '1'
this.quesService.savePDFormDetailsWithID(records).subscribe(result=>{
if(result['dataStatus']) {
if(flag != 'go_back') {
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html
index 7fe17ff..92ceb09 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html
@@ -395,7 +395,7 @@
No Document
-
+ -->
PD History
@@ -420,7 +420,7 @@
No History
- -->
+