dossier: add page for etablissement
This commit is contained in:
parent
310f4b92d1
commit
93f1a53dfc
9 changed files with 229 additions and 0 deletions
35
app/views/new_user/dossiers/etablissement.html.haml
Normal file
35
app/views/new_user/dossiers/etablissement.html.haml
Normal file
|
@ -0,0 +1,35 @@
|
|||
- content_for(:title, "Informations sur l’établissement")
|
||||
|
||||
- content_for :footer do
|
||||
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
|
||||
|
||||
.etablissement
|
||||
.container
|
||||
%h1 Informations sur l’établissement
|
||||
|
||||
%p
|
||||
Nous avons récupéré auprès de l’INSEE et d’Infogreffe les informations suivantes concernant votre établissement.
|
||||
|
||||
%p
|
||||
Ces informations seront jointes à votre dossier.
|
||||
|
||||
.etablissement-infos.card.featured
|
||||
- etablissement = @dossier.etablissement
|
||||
%h2.card-title= raison_sociale_or_name(etablissement)
|
||||
|
||||
= render partial: 'new_user/dossiers/etablissement/infos_entreprise', locals: { etablissement: etablissement }
|
||||
|
||||
- if etablissement.association?
|
||||
= render partial: 'new_user/dossiers/etablissement/infos_association', locals: { etablissement: etablissement }
|
||||
|
||||
.actions
|
||||
= link_to 'Utiliser un autre numéro SIRET', siret_dossier_path(@dossier), class: 'button'
|
||||
|
||||
- if @dossier.procedure.use_api_carto
|
||||
/ Until the old layout is gone, we need to disable turbolinks
|
||||
/ to avoid the map loading twice (once for the turbolinks preview,
|
||||
/ once when turbolinks notices the layout are differents and reloads
|
||||
/ the page.)
|
||||
= link_to 'Continuer avec ces informations', users_dossier_carte_path(@dossier), class: 'button primary', data: { turbolinks: false }
|
||||
- else
|
||||
= link_to 'Continuer avec ces informations', brouillon_dossier_path(@dossier), class: 'button primary'
|
|
@ -0,0 +1,24 @@
|
|||
%ul.etablissement-infos-association
|
||||
%li
|
||||
Numéro d’enregistrement au Registre National des Associations :
|
||||
= etablissement.association_rna
|
||||
|
||||
%li
|
||||
Titre :
|
||||
= etablissement.association_titre
|
||||
|
||||
%li
|
||||
Objet :
|
||||
= etablissement.association_objet
|
||||
|
||||
%li
|
||||
Date de création :
|
||||
= etablissement.association_date_creation&.strftime('%d/%m/%Y')
|
||||
|
||||
%li
|
||||
Date de déclaration :
|
||||
= etablissement.association_date_declaration&.strftime('%d/%m/%Y')
|
||||
|
||||
%li
|
||||
Date de publication :
|
||||
= etablissement.association_date_publication&.strftime('%d/%m/%Y')
|
|
@ -0,0 +1,49 @@
|
|||
%ul.etablissement-infos-entreprise
|
||||
%li
|
||||
Siret :
|
||||
= etablissement.siret
|
||||
|
||||
- if etablissement.siret != etablissement.entreprise.siret_siege_social
|
||||
%li
|
||||
SIRET siègle social :
|
||||
= etablissement.entreprise.siret_siege_social
|
||||
|
||||
%li
|
||||
Forme juridique :
|
||||
= etablissement.entreprise.forme_juridique
|
||||
|
||||
%li
|
||||
Libellé NAF :
|
||||
= etablissement.libelle_naf
|
||||
|
||||
%li
|
||||
Code NAF :
|
||||
= etablissement.naf
|
||||
|
||||
%li
|
||||
Date de création :
|
||||
= etablissement.entreprise.date_creation&.strftime('%d/%m/%Y')
|
||||
|
||||
%li
|
||||
Effectif organisation :
|
||||
= effectif(etablissement)
|
||||
|
||||
%li
|
||||
Code effectif :
|
||||
= etablissement.entreprise.code_effectif_entreprise
|
||||
|
||||
%li
|
||||
Numéro TVA intracommunautaire :
|
||||
= etablissement.entreprise.numero_tva_intracommunautaire
|
||||
|
||||
%li
|
||||
Adresse :
|
||||
- etablissement.adresse.split("\n").each do |line|
|
||||
= line
|
||||
|
||||
%li
|
||||
Capital social :
|
||||
= pretty_currency(etablissement.entreprise.capital_social)
|
||||
|
||||
- if etablissement.exercices.present?
|
||||
%p.etablissement-exercices Les exercices comptables des trois dernières années seront joints à votre dossier.
|
Loading…
Add table
Add a link
Reference in a new issue