2022-09-02 10:22:00 +02:00
|
|
|
#breadcrumbs.sub-header
|
2021-04-19 16:32:50 +02:00
|
|
|
.container.flex.justify-between.align-baseline.column
|
2022-08-17 13:53:07 +02:00
|
|
|
%nav.fr-breadcrumb.mt-0{ role: "navigation", aria: { label: t('you_are_here', scope: [:layouts, :breadcrumb]) } }
|
|
|
|
%button.fr-breadcrumb__button{ aria: { expanded: "false", controls: "breadcrumb-1" } }
|
|
|
|
= t('show', scope: [:layouts, :breadcrumb])
|
|
|
|
|
|
|
|
.fr-collapse#breadcrumb-1
|
|
|
|
%ol.fr-breadcrumb__list
|
|
|
|
%li= link_to t('root', scope: [:layouts, :breadcrumb]), root_path, class: 'fr-breadcrumb__link'
|
2022-08-22 10:43:11 +02:00
|
|
|
|
2022-08-17 13:53:07 +02:00
|
|
|
- steps.each.with_index do |step, i|
|
|
|
|
- if i == steps.size - 1
|
2022-08-31 12:44:00 +02:00
|
|
|
%li{ aria: { current: "page" } }
|
2022-08-17 13:53:07 +02:00
|
|
|
%span.fr-breadcrumb__link= step[0]
|
|
|
|
- else
|
|
|
|
%li= link_to step[0], step[1], class: 'fr-breadcrumb__link'
|
|
|
|
|
2018-11-14 16:28:02 +01:00
|
|
|
- if defined?(preview) && preview
|
2021-06-10 12:16:07 +02:00
|
|
|
.mb-2
|
2022-08-17 13:53:07 +02:00
|
|
|
= link_to t('preview', scope: [:layouts, :breadcrumb]), apercu_admin_procedure_path(@procedure), target: "_blank", rel: "noopener", class: 'button'
|
|
|
|
= link_to t('continue', scope: [:layouts, :breadcrumb]), admin_procedure_path(@procedure), title: t('continue_title', scope: [:layouts, :breadcrumb]), class: 'button accepted'
|
2022-06-23 13:51:58 +02:00
|
|
|
|
2021-04-19 16:32:50 +02:00
|
|
|
- if defined?(metadatas)
|
2022-08-17 13:53:07 +02:00
|
|
|
.metadatas.pb-3
|
2022-09-06 09:07:41 +02:00
|
|
|
%p.fr-h1.fr-mb-0= t('created_at', scope: [:layouts, :breadcrumb], number: @procedure.id, date: @procedure.created_at.strftime('%d/%m/%Y'))
|
2022-08-17 13:53:07 +02:00
|
|
|
- if @procedure.close?
|
2022-09-06 09:07:41 +02:00
|
|
|
%p.fr-h2= t('closed_at', scope: [:layouts, :breadcrumb], date: @procedure.closed_at.strftime('%d/%m/%Y'))
|
2022-08-17 13:53:07 +02:00
|
|
|
%p
|
|
|
|
- if @procedure.locked?
|
|
|
|
= t('published', scope: [:layouts, :breadcrumb])
|
|
|
|
= link_to procedure_lien(@procedure), procedure_lien(@procedure)
|
|
|
|
- else
|
|
|
|
= t('draft', scope: [:layouts, :breadcrumb])
|