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

fix(form) : add page(freeWorkShop)

parent 350ad1a4
No related branches found
No related tags found
3 merge requests!68Recette,!67Dev,!66Fix/form design create structure
......@@ -792,6 +792,16 @@
</div>
</div>
</div>
<div *ngIf="currentPage == 14" class="page">
<div class="title">
<h3>Est-ce accessible pour les personnes à mobilité réduite ?</h3>
</div>
<app-radio-form
[selectedOption]="getStructureControl('pmrAccess').value"
(selectedEvent)="onPmrAccessChange($event)"
>
</app-radio-form>
</div>
</form>
</div>
<div
......
......@@ -186,6 +186,7 @@ export class FormComponent implements OnInit {
),
equipmentsDetails: new FormControl(structure.equipmentsDetails),
equipmentsAccessType: this.loadArrayForCheckbox(structure.equipmentsAccessType, false),
freeWorkShop: new FormControl(structure.freeWorkShop, Validators.required),
});
this.hoursForm = new FormGroup({
......@@ -340,6 +341,7 @@ export class FormComponent implements OnInit {
this.getStructureControl('parentingHelp').valid &&
this.getStructureControl('digitalCultureSecurity').valid,
};
this.pagesValidation[14] = { valid: this.getStructureControl('freeWorkShop').valid };
this.updatePageValid();
}
......@@ -425,4 +427,9 @@ export class FormComponent implements OnInit {
}
});
}
public freeWorkShop(bool: boolean): void {
this.getStructureControl('freeWorkShop').setValue(bool);
this.setValidationsForm();
}
}
......@@ -43,6 +43,7 @@ export class Structure {
public hours: Week;
public equipmentsDetails: string = null;
public equipmentsAccessType: string[] = [];
public freeWorkShop: boolean = false;
public isOpen: boolean = false;
public openedOn: OpeningDay = new OpeningDay();
......
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