dossier: extract demarche overview to a partial
This commit is contained in:
parent
e3055ec1de
commit
1cf7568bb4
2 changed files with 10 additions and 9 deletions
9
app/views/new_user/dossiers/_demarche_overview.html.haml
Normal file
9
app/views/new_user/dossiers/_demarche_overview.html.haml
Normal file
|
@ -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)
|
|
@ -6,15 +6,7 @@
|
|||
.two-columns
|
||||
.columns-container
|
||||
.column.preview
|
||||
.procedure-logos
|
||||
= image_tag @dossier.procedure.decorate.logo_img
|
||||
- if @dossier.procedure.euro_flag
|
||||
= image_tag "flag_of_europe.svg"
|
||||
|
||||
%h2.procedure-title
|
||||
= @dossier.procedure.libelle
|
||||
.procedure-description
|
||||
= h string_to_html(@dossier.procedure.description)
|
||||
= render partial: "new_user/dossiers/demarche_overview", locals: { procedure: @dossier.procedure }
|
||||
|
||||
.column.identity-form
|
||||
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: @dossier }
|
||||
|
|
Loading…
Reference in a new issue