diff --git a/src/app/form/form.component.html b/src/app/form/form.component.html index 46be894612de46b0ed1708fc72c56fa148e108bd..1da0881fb961dd886b17274aa5e6e38a075b99b7 100644 --- a/src/app/form/form.component.html +++ b/src/app/form/form.component.html @@ -938,6 +938,27 @@ le site des services et démarches en ligne dans la Métropole de Lyon </p> </div> + <div *ngIf="currentPage == 24" class="page"> + <div class="title"> + <h3>Voulez-vous inviter d’autres personnes dans cette structure ?</h3> + <p class="notRequired">facultatif</p> + </div> + <div class="collapse" [ngClass]="{ notCollapsed: true }"> + <div fxLayout="column"> + <div class="collapseHeader" fxLayout="row" fxLayoutAlign=" center"> + <div class="titleCollapse">J’ajoute d'autres personnes dans cette structure</div> + <div class="logo"> + <svg class="show" aria-hidden="true"> + <use [attr.xlink:href]="'assets/form/sprite.svg#show'"></use> + </svg> + <svg class="hide" aria-hidden="true"> + <use [attr.xlink:href]="'assets/form/sprite.svg#hide'"></use> + </svg> + </div> + </div> + </div> + </div> + </div> <div *ngIf="currentPage == nbPagesForm && !profile" class="page" fxLayout="column" fxLayoutGap="69px"> <svg aria-hidden="true"> <use [attr.xlink:href]="'assets/form/sprite.svg#emailVerification'"></use> diff --git a/src/app/form/form.component.ts b/src/app/form/form.component.ts index ac1c929e873d3914943f80ab6fbb934b9289094f..f0222f40b5d25e6bd0432f368276112348d85116 100644 --- a/src/app/form/form.component.ts +++ b/src/app/form/form.component.ts @@ -40,7 +40,7 @@ export class FormComponent implements OnInit { //New var form public currentPage = 0; public progressStatus = 0; - public nbPagesForm = 24; + public nbPagesForm = 25; public accountForm: FormGroup; public isPageValid: boolean; public pagesValidation = []; @@ -198,6 +198,7 @@ export class FormComponent implements OnInit { freeWifi: new FormControl(structure.freeWifi, Validators.required), }); + // Init hours form this.hoursForm = new FormGroup({ monday: this.createDay(structure.hours.monday), tuesday: this.createDay(structure.hours.tuesday), @@ -343,6 +344,7 @@ export class FormComponent implements OnInit { this.pagesValidation[21] = { valid: this.getStructureControl('description').valid }; this.pagesValidation[22] = { valid: this.getStructureControl('lockdownActivity').valid }; this.pagesValidation[23] = { valid: this.userAcceptSavedDate }; + this.pagesValidation[24] = { valid: true }; this.updatePageValid(); }