Make some annuaire education fields optional

This commit is contained in:
Paul Chavard 2021-01-26 13:30:16 +01:00
parent 92f6105eb9
commit 1bba12dc3a
2 changed files with 5 additions and 5 deletions

View file

@ -167,11 +167,9 @@
"required": [
"identifiant_de_l_etablissement",
"nom_etablissement",
"statut_public_prive",
"type_contrat_prive",
"nom_commune",
"code_commune",
"nombre_d_eleves",
"siren_siret",
"libelle_academie",
"code_academie",

View file

@ -25,6 +25,8 @@
%tr
%th.libelle Type de contrat privé :
%td= champ.data['type_contrat_prive']
- if champ.data['nombre_d_eleves'].present?
%tr
%th.libelle Nombre délèves :
%td= champ.data['nombre_d_eleves']