-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
611 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
@import "constants"; | ||
@import "colors"; | ||
|
||
.etablissement { | ||
margin-top: $default-padding * 2; | ||
margin-bottom: $default-padding * 2; | ||
|
||
h1 { | ||
margin-bottom: $default-padding * 2; | ||
} | ||
|
||
p { | ||
margin-bottom: $default-padding; | ||
} | ||
|
||
.etablissement-infos { | ||
margin-top: $default-padding * 2; | ||
margin-bottom: $default-padding * 2; | ||
|
||
> * { | ||
margin-bottom: $default-padding; | ||
|
||
&:last-child { | ||
margin-bottom: 0; | ||
} | ||
} | ||
|
||
ul { | ||
line-height: 28px; | ||
list-style-type: disc; | ||
list-style-position: inside; | ||
|
||
// Inner lists | ||
ul { | ||
margin-left: $default-padding; | ||
list-style-type: circle; | ||
} | ||
} | ||
|
||
.etablissement-exercices { | ||
font-style: italic; | ||
} | ||
} | ||
|
||
.actions { | ||
display: flex; | ||
flex-wrap: wrap-reverse; | ||
justify-content: space-between; | ||
|
||
.button { | ||
margin-bottom: $default-padding; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.procedure-logos | ||
= image_tag procedure.decorate.logo_img | ||
- if procedure.euro_flag | ||
= image_tag "flag_of_europe.svg" | ||
|
||
%h2.procedure-title | ||
= procedure.libelle | ||
.procedure-description | ||
= h string_to_html(procedure.description) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |
24 changes: 24 additions & 0 deletions
24
app/views/new_user/dossiers/etablissement/_infos_association.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
49 changes: 49 additions & 0 deletions
49
app/views/new_user/dossiers/etablissement/_infos_entreprise.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
- content_for(:title, "Nouveau dossier (#{@dossier.procedure.libelle})") | ||
|
||
- content_for :footer do | ||
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier } | ||
|
||
.two-columns | ||
.columns-container | ||
.column.preview | ||
= render partial: "new_user/dossiers/demarche_overview", locals: { procedure: @dossier.procedure } | ||
|
||
.column.identity-form | ||
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: @dossier } | ||
|
||
- if !dossier_submission_is_closed?(@dossier) | ||
= form_for current_user, url: siret_dossier_path(@dossier), html: { class: 'form', method: 'post' } do |f| | ||
%h1 Identifier votre établissement | ||
|
||
%p.mb-1 Merci de remplir le numéro de SIRET de votre entreprise, administration ou association pour commencer la démarche. | ||
|
||
= f.label :siret, style: "display: none" | ||
= f.text_field :siret, placeholder: "Numéro SIRET à 14 chiffres", required: true | ||
|
||
= f.hidden_field :dossier_id, value: @dossier.id | ||
|
||
= f.submit "Valider", class: "button large primary expand", data: { disable_with: "Récupération des informations…" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fr: | ||
activemodel: | ||
models: | ||
siret: 'SIRET' | ||
errors: | ||
models: | ||
siret: | ||
attributes: | ||
siret: | ||
format: 'Le numéro SIRET doit comporter 14 chiffres' | ||
checksum: 'Le numéro SIRET comporte une erreur, vérifiez les chiffres composant le numéro' | ||
invalid: 'Le numéro SIRET ne correspond pas à un établissement existant' |
Oops, something went wrong.