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": [ "required": [
"identifiant_de_l_etablissement", "identifiant_de_l_etablissement",
"nom_etablissement", "nom_etablissement",
"statut_public_prive",
"type_contrat_prive", "type_contrat_prive",
"nom_commune", "nom_commune",
"code_commune", "code_commune",
"nombre_d_eleves",
"siren_siret", "siren_siret",
"libelle_academie", "libelle_academie",
"code_academie", "code_academie",

View file

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