Skip to content

Commit

Permalink
Ajout de college (#4721)
Browse files Browse the repository at this point in the history
* feat: ajout de college

* feat: ajout du paramètre collegien sur l'outil de contribution

* fix: replacement dans l'ordre
  • Loading branch information
jenovateurs authored Nov 21, 2024
1 parent 3c1e0ff commit 8f2cad8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
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

0 comments on commit 8f2cad8

Please sign in to comment.