Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajout de college #4721

Merged
merged 3 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions contribuer/public/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,19 @@ fields:
collapsed: false
default: []
types:
- label: Collégien ou collégienne
name: collegien
widget: object
fields:
- label: Conditions à satisfaire simultanément
label_singular: Condition à satisfaire
name: conditions
default: [ ]
widget: list
collapsed: false
types:
- *field_age
- *field_boursier
- label: Lycéen ou lycéenne
name: lyceen
widget: object
Expand Down
3 changes: 3 additions & 0 deletions lib/benefits/compute-javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const PROFILE_STRATEGY = {
}): boolean => {
return situation.demandeur?.scolarite === Scolarite.EnseignementSuperieur
},
collegien: ({ situation }: { situation: Situation }): boolean => {
return situation.demandeur?.scolarite === Scolarite.College
},
lyceen: ({ situation }: { situation: Situation }): boolean => {
return situation.demandeur?.scolarite === Scolarite.Lycee
},
Expand Down
Loading