demarches-normaliennes/app/views/shared/champs/siret/_etablissement.html.haml

26 lines
994 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- case siret
- when :invalid_length
%p.fr-error-text= t('errors.messages.invalid_siret_length')
- when :invalid_checksum
%p.fr-error-text= t('errors.messages.invalid_siret_checksum')
- when :not_found
%p.fr-error-text
Nous navons pas trouvé détablissement correspondant à ce numéro de SIRET.
= link_to('Plus dinformations', t("links.common.faq.erreur_siret_url"), **external_link_attributes)
- when :network_error
%p.fr-error-text= t('errors.messages.siret_network_error')
- when :api_entreprise_down
%p.fr-error-text= t('errors.messages.api_entreprise_down')
- when :empty
// NOOP
- else
- if siret.present? # NOTE: probably always true because siret is a symbol or the string value
- if siret == etablissement&.siret && raison_sociale_or_name(etablissement).present?
= render EditableChamp::EtablissementTitreComponent.new(etablissement: etablissement)
- else
%p.fr-info-text Ce SIRET existe, nous en récupérons les informations.