demarches-normaliennes/app/views/shared/champs/siret/_etablissement.html.haml
2023-02-27 13:45:16 +01:00

23 lines
792 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
= t('errors.messages.invalid_siret_length')
- when :invalid_checksum
= t('errors.messages.invalid_siret_checksum')
- when :not_found
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
= t('errors.messages.siret_network_error')
- when :api_entreprise_down
= t('errors.messages.api_entreprise_down')
- else
- if siret.present?
- if siret == etablissement&.siret && raison_sociale_or_name(etablissement).present?
= render EditableChamp::EtablissementTitreComponent.new(etablissement: etablissement)
- else
Ce SIRET existe, nous en récupérons les informations.