Merge pull request #5856 from tchak/fix-annuaire-education

Make some annuaire education fields optional
This commit is contained in:
Paul Chavard 2021-01-27 13:35:03 +01:00 committed by GitHub
commit c7c2ebd201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,9 +25,11 @@
%tr
%th.libelle Type de contrat privé :
%td= champ.data['type_contrat_prive']
%tr
%th.libelle Nombre délèves :
%td= champ.data['nombre_d_eleves']
- if champ.data['nombre_d_eleves'].present?
%tr
%th.libelle Nombre délèves :
%td= champ.data['nombre_d_eleves']
%tr
%th.libelle Adresse :