diff --git a/src/app/form/form.component.html b/src/app/form/form.component.html index f0c150208b81b59dc4a6c6875e8af75e46a28f65..7084ec44f22c5bc20537a9a562d802d975bf5393 100644 --- a/src/app/form/form.component.html +++ b/src/app/form/form.component.html @@ -928,6 +928,16 @@ </div> </ng-container> </div> + <div *ngIf="currentPage == 17" class="page"> + <div class="title"> + <h3>Acceptez-vous le Pass numérique APTIC ?</h3> + </div> + <app-radio-form + [selectedOption]="isInArray('passNumerique', 'labelsQualifications')" + (selectedEvent)="updateChoice('passNumerique', 'labelsQualifications')" + > + </app-radio-form> + </div> </form> </div> <div diff --git a/src/app/form/form.component.ts b/src/app/form/form.component.ts index 2dc5cc06b7ad52378dd2b87baecdf2bbab5a235a..af0c6f70fe6ab87ca8c921c6cec610993e257995 100644 --- a/src/app/form/form.component.ts +++ b/src/app/form/form.component.ts @@ -48,7 +48,7 @@ export class FormComponent implements OnInit { public structureId: string; //New var form - public currentPage = 14; + public currentPage = 17; public progressStatus = 0; public nbPagesForm = 20; public accountForm: FormGroup; @@ -275,7 +275,7 @@ export class FormComponent implements OnInit { } // Check if a FormControl value is in FormArray - public isInArray(term: string, formControlName): boolean { + public isInArray(term: string, formControlName: string): boolean { if (this.structureForm.controls[formControlName].value) { return this.structureForm.controls[formControlName].value.includes(term); } @@ -366,6 +366,7 @@ export class FormComponent implements OnInit { this.getStructureControl('nbTablets').valid && this.getStructureControl('nbNumericTerminal').valid, }; + this.pagesValidation[17] = { valid: this.getStructureControl('labelsQualifications').valid }; this.updatePageValid(); }