817662f7d9
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.
22 lines
666 B
Text
22 lines
666 B
Text
- procedure = @procedure || @dossier&.procedure || nil
|
|
|
|
- content_for :content do
|
|
.two-columns.procedure-context
|
|
.columns-container
|
|
|
|
.column.procedure-preview
|
|
- if procedure
|
|
= render partial: 'shared/procedure_description', locals: { procedure: procedure }
|
|
- else
|
|
= render partial: 'layouts/commencer/no_procedure'
|
|
|
|
.column.procedure-context-content
|
|
= yield
|
|
|
|
- content_for :footer do
|
|
- if procedure
|
|
= render partial: 'users/procedure_footer', locals: { procedure: procedure, dossier: @dossier }
|
|
- else
|
|
= render partial: 'users/dossiers/index_footer'
|
|
|
|
= render template: 'layouts/application'
|