demarches-normaliennes/app/views/shared/dossiers/_identite_entreprise.html.haml
2020-04-30 11:39:54 +02:00

103 lines
3.7 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.

%table.table.vertical.dossier-champs
%tbody
- if etablissement.diffusable_commercialement == false && profile != 'instructeur'
%tr
%td= t('warning_for_private_info', etablissement: raison_sociale_or_name(etablissement), scope: 'views.shared.dossiers.identite_entreprise')
- else
%tr
%th.libelle Dénomination :
%td= raison_sociale_or_name(etablissement)
%tr
%th.libelle SIRET :
%td= etablissement.siret
- if etablissement.siret != etablissement.entreprise.siret_siege_social
%tr
%th.libelle SIRET du siège social:
%td= etablissement.entreprise.siret_siege_social
%tr
%th.libelle Forme juridique :
%td= sanitize(etablissement.entreprise.forme_juridique)
%tr
%th.libelle Libellé NAF :
%td= etablissement.libelle_naf
%tr
%th.libelle Code NAF :
%td= etablissement.naf
%tr
%th.libelle Date de création :
%td= try_format_date(etablissement.entreprise.date_creation)
- if profile == 'instructeur'
%tr
%th.libelle
Effectif mensuel
= try_format_mois_effectif(etablissement)
(URSSAF)
%td= etablissement.entreprise_effectif_mensuel
%tr
%th.libelle
Effectif moyen annuel
= etablissement.entreprise_effectif_annuel_annee
(URSSAF)
%td= etablissement.entreprise_effectif_annuel
%tr
%th.libelle Effectif de l'organisation (INSEE) :
%td
= effectif(etablissement)
%tr
%th.libelle Numéro de TVA intracommunautaire :
%td= etablissement.entreprise.numero_tva_intracommunautaire
%tr
%th.libelle Adresse :
%td
- etablissement.adresse.split("\n").each do |line|
= line
%br
%tr
%th.libelle Capital social :
%td= pretty_currency(etablissement.entreprise.capital_social)
%tr
%th.libelle Exercices :
%td
- if profile == 'instructeur'
- etablissement.exercices.each_with_index do |exercice, index|
= "#{exercice.date_fin_exercice.year} : "
= pretty_currency(exercice.ca)
%br
- elsif etablissement.exercices.present?
= t('activemodel.models.exercices_summary', count: etablissement.exercices.count)
- if etablissement.entreprise_attestation_sociale.attached?
%tr
%th.libelle Attestation sociale
%td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_sociale)
- if etablissement.entreprise_attestation_fiscale.attached?
%tr
%th.libelle Attestation fiscale
%td= link_to "Consulter l'attestation", url_for(etablissement.entreprise_attestation_fiscale)
- if etablissement.association?
%tr
%th.libelle Numéro RNA :
%td= etablissement.association_rna
%tr
%th.libelle Titre :
%td= etablissement.association_titre
%tr
%th.libelle Objet :
%td= etablissement.association_objet
%tr
%th.libelle Date de création :
%td= try_format_date(etablissement.association_date_creation)
%tr
%th.libelle Date de publication :
%td= try_format_date(etablissement.association_date_publication)
%tr
%th.libelle Date de déclaration :
%td= try_format_date(etablissement.association_date_declaration)
%p
= link_to '➡ Autres informations sur lorganisme sur « entreprise.data.gouv.fr »',
"https://entreprise.data.gouv.fr/etablissement/#{etablissement.siret}",
target: "_blank"