demarches-normaliennes/app/views/layouts/procedure_context.html.haml
Pierre de La Morinerie 62ee710382 sign_in: remove hack for displaying the procedure context
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.
2019-01-16 14:25:12 +01:00

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'