From df475dc30644dd86224fdc26f3826ca92a241525 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Wed, 27 Jan 2021 15:25:58 +0100 Subject: [PATCH] Make siren_siret on annuaire education optional --- app/schemas/etablissement-annuaire-education.json | 1 - app/views/shared/champs/annuaire_education/_show.html.haml | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/schemas/etablissement-annuaire-education.json b/app/schemas/etablissement-annuaire-education.json index 2adce12ff..0ed7e6c96 100644 --- a/app/schemas/etablissement-annuaire-education.json +++ b/app/schemas/etablissement-annuaire-education.json @@ -170,7 +170,6 @@ "type_contrat_prive", "nom_commune", "code_commune", - "siren_siret", "libelle_academie", "code_academie", "libelle_nature", diff --git a/app/views/shared/champs/annuaire_education/_show.html.haml b/app/views/shared/champs/annuaire_education/_show.html.haml index baed3184d..18e458621 100644 --- a/app/views/shared/champs/annuaire_education/_show.html.haml +++ b/app/views/shared/champs/annuaire_education/_show.html.haml @@ -9,9 +9,10 @@ %tr %th.libelle L’identifiant de l’etablissement : %td= champ.data['identifiant_de_l_etablissement'] - %tr - %th.libelle SIREN/SIRET : - %td= champ.data['siren_siret'] + - if champ.data['siren_siret'].present? + %tr + %th.libelle SIREN/SIRET : + %td= champ.data['siren_siret'] %tr %th.libelle Commune : %td= "#{champ.data['nom_commune']} (#{champ.data['code_commune']})"