dossier: extract demarche overview to a partial

This commit is contained in:
Pierre de La Morinerie 2018-10-04 09:31:26 +02:00 committed by gregoirenovel
parent e3055ec1de
commit 1cf7568bb4
2 changed files with 10 additions and 9 deletions

View 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)

View file

@ -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 }