62ee710382
Before there was no way to display the informations about a procedure without having a dossier. Thus an empty dossier was created. Now we can display the informations of a procedure using a @procedure instance variable, so we can move this hack away.
22 lines
683 B
Text
22 lines
683 B
Text
- procedure = @procedure || @dossier&.procedure || nil
|
|
|
|
- content_for :content do
|
|
.two-columns.procedure-context
|
|
.columns-container
|
|
|
|
.column.procedure-preview
|
|
- if procedure
|
|
= render partial: 'layouts/commencer/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: 'new_user/procedure_footer', locals: { procedure: procedure, dossier: @dossier }
|
|
- else
|
|
= render partial: 'new_user/dossiers/index_footer'
|
|
|
|
= render template: 'layouts/application'
|