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:
parent
2e0ef84941
commit
817662f7d9
4 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
.column.procedure-preview
|
||||
- if procedure
|
||||
= render partial: 'layouts/commencer/procedure_description', locals: { procedure: procedure }
|
||||
= render partial: 'shared/procedure_description', locals: { procedure: procedure }
|
||||
- else
|
||||
= render partial: 'layouts/commencer/no_procedure'
|
||||
|
||||
|
|
|
@ -21,4 +21,4 @@
|
|||
.procedure-form__preview.sticky--top
|
||||
%h3.procedure-form__preview-title Aperçu
|
||||
.procedure-preview
|
||||
= render partial: 'layouts/commencer/procedure_description', locals: { procedure: @procedure }
|
||||
= render partial: 'shared/procedure_description', locals: { procedure: @procedure }
|
||||
|
|
|
@ -21,4 +21,4 @@
|
|||
.procedure-form__preview.sticky--top
|
||||
%h3.procedure-form__preview-title Aperçu
|
||||
.procedure-preview
|
||||
= render partial: 'layouts/commencer/procedure_description', locals: { procedure: @procedure }
|
||||
= render partial: 'shared/procedure_description', locals: { procedure: @procedure }
|
||||
|
|
Loading…
Reference in a new issue