From 4eedd15439c0e54b131454b0f76f7b39d65c9ff8 Mon Sep 17 00:00:00 2001 From: Etienne LOUPIAS <eloupias@grandlyon.com> Date: Fri, 13 Sep 2024 15:59:03 +0200 Subject: [PATCH] feat(orientation): only free or underCondition for skills orientation --- .../base-skills/base-skills.component.html | 5 ++++- .../orientation-form-view/orientation-form-view.component.ts | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/form/orientation-form-view/base-skills/base-skills.component.html b/src/app/form/orientation-form-view/base-skills/base-skills.component.html index 497d1e252..b192e6529 100644 --- a/src/app/form/orientation-form-view/base-skills/base-skills.component.html +++ b/src/app/form/orientation-form-view/base-skills/base-skills.component.html @@ -1,5 +1,8 @@ <div class="orientationForm"> - <h2>Quel est le besoin numérique de la personne ?</h2> + <div class="title"> + <h2>Quel est le besoin numérique de la personne ?</h2> + <p>Seules les offres gratuites ou soumises à une adhésion à faible coût vous seront proposées</p> + </div> <div class="tagList"> <app-tag-item diff --git a/src/app/form/orientation-form-view/orientation-form-view.component.ts b/src/app/form/orientation-form-view/orientation-form-view.component.ts index a6cc58a54..930374472 100644 --- a/src/app/form/orientation-form-view/orientation-form-view.component.ts +++ b/src/app/form/orientation-form-view/orientation-form-view.component.ts @@ -311,6 +311,11 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked this.filters = this.filtersForm.value.filters.map((module: Module) => { return new Filter(this.needType, module.id, module.displayText); }); + // For skills orientation, only show by default structures with free or underCondition workshops + if (this.needType === NeedsTypes.baseSkills) { + this.filters.push(new Filter('freeWorkShop', 'yes', 'Accompagnements gratuits')); + this.filters.push(new Filter('freeWorkShop', 'underCondition', 'Accompagnements gratuits sous conditions')); + } this.startsAccompanimentTunnel(); return; } -- GitLab