From 885c85b97e77a54b061fd68a29c469218ab425d1 Mon Sep 17 00:00:00 2001 From: Jeremie BRISON <ext.sopra.jbrison@grandlyon.com> Date: Mon, 23 Nov 2020 11:08:43 +0100 Subject: [PATCH] =?UTF-8?q?fix(other)=20:=20Fix=20design=20'Autres'=20in?= =?UTF-8?q?=20'D=C3=A9marches'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../structure-details.component.html | 13 ++++++++++--- .../structure-details.component.ts | 6 ++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/app/structure-list/components/structure-details/structure-details.component.html b/src/app/structure-list/components/structure-details/structure-details.component.html index c81d453cb..66b1cfefe 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.html +++ b/src/app/structure-list/components/structure-details/structure-details.component.html @@ -66,10 +66,17 @@ <app-svg-icon [type]="'ico'" [icon]="'demarches'" [iconClass]="'icon-32'"></app-svg-icon> <h2>Démarches</h2> </div> - <div fxLayout="row wrap" fxLayoutGap="24px"> - <div *ngFor="let accompagnement of structure.accompagnementDesDemarches"> - <app-logo-card [name]="accompagnement"></app-logo-card> + <div fxLayout="column"> + <div fxLayout="row wrap" fxLayoutGap="24px"> + <div *ngFor="let accompagnement of structure.accompagnementDesDemarches"> + <app-logo-card [name]="accompagnement"></app-logo-card> + </div> </div> + <p *ngIf="isOtherSection"> + Tout ce qui est en lien avec la création d'entreprise ex : consultation de sites de références (BPI, Je créé + dans ma région, ...), inscription à des newsletters, aide pour trouver des sites (CMA, CCI, Urssaf,...), + recherches d'infos sur moteur de recherche... + </p> </div> </div> <!-- Services --> diff --git a/src/app/structure-list/components/structure-details/structure-details.component.ts b/src/app/structure-list/components/structure-details/structure-details.component.ts index 995d148ac..691f95295 100644 --- a/src/app/structure-list/components/structure-details/structure-details.component.ts +++ b/src/app/structure-list/components/structure-details/structure-details.component.ts @@ -22,6 +22,7 @@ export class StructureDetailsComponent implements OnInit { public baseSkills: Module[]; public accessRights: Module[]; public printMode = false; + public isOtherSection = false; constructor(route: ActivatedRoute, private printService: PrintService, private searchService: SearchService) { route.url.subscribe((url) => { @@ -46,6 +47,11 @@ export class StructureDetailsComponent implements OnInit { this.printService.onDataReady(); } }); + const index = this.structure.accompagnementDesDemarches.indexOf('Autres'); + if (index > -1) { + this.structure.accompagnementDesDemarches.splice(index, 1); + this.isOtherSection = true; + } } public close(): void { -- GitLab