diff --git a/src/app/form/form-view/structure-form/structure-form.component.html b/src/app/form/form-view/structure-form/structure-form.component.html index 96c7180545f01124e41735131b3d060c36c1f605..feff1ff4252a649cd10805bf4ae152e93f155dfd 100644 --- a/src/app/form/form-view/structure-form/structure-form.component.html +++ b/src/app/form/form-view/structure-form/structure-form.component.html @@ -85,6 +85,8 @@ [isEditMode]="isEditMode" [structureForm]="structureForm" (radioChange)="onRadioChange($event)" + [isPageValid]="setValidationsForm()" + [title]="'La structure est-elle accessible pour les personnes à mobilité réduite ?'" ></app-structure-pmr> </div> <div *ngIf="currentStep === structureFormStep.structureWebAndSocialNetwork"> diff --git a/src/app/shared/components/structure-pmr/structure-pmr.component.html b/src/app/shared/components/structure-pmr/structure-pmr.component.html index 2212f0be89be0d41ff62f5f813b6e4973999cf04..3b84e5d70c3dd98b6a253a35d49f7bdc1a062d8a 100644 --- a/src/app/shared/components/structure-pmr/structure-pmr.component.html +++ b/src/app/shared/components/structure-pmr/structure-pmr.component.html @@ -8,7 +8,7 @@ [icon]="'arrowBack'" ></app-svg-icon> <div class="titleContent"> - <h3>La structure doit-elle être accessible pour les personnes à mobilité réduite ?</h3> + <h3>{{ title ? title : 'La structure doit-elle être accessible pour les personnes à mobilité réduite ?' }}</h3> </div> </div> <p class="missing-information" *ngIf="isEditMode && !structureForm.get('pmrAccess').valid"> diff --git a/src/app/shared/components/structure-pmr/structure-pmr.component.ts b/src/app/shared/components/structure-pmr/structure-pmr.component.ts index c0e0cf36692113136bb8780758680c15fc33e1e4..e9d4796157689e85ad17c8f9d6554b81ac880739 100644 --- a/src/app/shared/components/structure-pmr/structure-pmr.component.ts +++ b/src/app/shared/components/structure-pmr/structure-pmr.component.ts @@ -10,6 +10,7 @@ export class StructurePmrComponent implements OnInit { @Input() isEditMode: boolean = false; @Input() isPageValid: boolean; @Input() nextPage: Function; + @Input() title?: string; @Output() radioChange = new EventEmitter<any>(); @Output() validateForm = new EventEmitter<any>();