procedure: move description to views/shared

Now that the description is used not only in the layout, but also in the
procedure form, better to make it an official shared partial.
This commit is contained in:
Pierre de La Morinerie 2019-10-22 14:41:32 +02:00
parent 2e0ef84941
commit 817662f7d9
4 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@
.column.procedure-preview .column.procedure-preview
- if procedure - if procedure
= render partial: 'layouts/commencer/procedure_description', locals: { procedure: procedure } = render partial: 'shared/procedure_description', locals: { procedure: procedure }
- else - else
= render partial: 'layouts/commencer/no_procedure' = render partial: 'layouts/commencer/no_procedure'

View file

@ -21,4 +21,4 @@
.procedure-form__preview.sticky--top .procedure-form__preview.sticky--top
%h3.procedure-form__preview-title Aperçu %h3.procedure-form__preview-title Aperçu
.procedure-preview .procedure-preview
= render partial: 'layouts/commencer/procedure_description', locals: { procedure: @procedure } = render partial: 'shared/procedure_description', locals: { procedure: @procedure }

View file

@ -21,4 +21,4 @@
.procedure-form__preview.sticky--top .procedure-form__preview.sticky--top
%h3.procedure-form__preview-title Aperçu %h3.procedure-form__preview-title Aperçu
.procedure-preview .procedure-preview
= render partial: 'layouts/commencer/procedure_description', locals: { procedure: @procedure } = render partial: 'shared/procedure_description', locals: { procedure: @procedure }