Skip to content
Snippets Groups Projects
Commit 0e82b75c authored by Jérémie BRISON's avatar Jérémie BRISON
Browse files

fix(form): add page(isPassNumeric)

parent cd586281
No related branches found
No related tags found
3 merge requests!68Recette,!67Dev,!66Fix/form design create structure
......@@ -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
......
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment