Merge pull request #7772 from betagouv/display_partial_entreprise_information

feat(api_entreprise): n'affiche que le siret si mode dégradé
This commit is contained in:
LeSim 2022-09-16 15:00:37 +02:00 committed by GitHub
commit 3fd6e0b7b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,13 @@
%table.table.vertical.dossier-champs - if etablissement.as_degraded_mode?
%table.table.vertical.dossier-champs
%tbody
%tr
%td.libelle{ colspan: 2 } ⚠ LʼINSEE est indisponible, les informations sur lʼentreprise arriveront dʼici quelques jours.
%tr
%td.libelle SIRET :
%td= etablissement.siret
- else
%table.table.vertical.dossier-champs
%tbody %tbody
- if etablissement.diffusable_commercialement == false && profile != 'instructeur' - if etablissement.diffusable_commercialement == false && profile != 'instructeur'
%tr %tr