2023-06-05 11:11:09 +02:00
|
|
|
#breadcrumbs.sub-header
|
2023-05-31 12:15:53 +02:00
|
|
|
.fr-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-10-06 15:10:20 +02:00
|
|
|
= link_to t('preview', scope: [:layouts, :breadcrumb]), apercu_admin_procedure_path(@procedure), target: "_blank", rel: "noopener", class: 'fr-btn fr-btn--secondary'
|
|
|
|
= link_to t('continue', scope: [:layouts, :breadcrumb]), admin_procedure_path(@procedure), title: t('continue_title', scope: [:layouts, :breadcrumb]), class: 'fr-btn fr-ml-2w fr-btn--icon-right fr-icon-arrow-right-fill'
|
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
|
2023-06-19 15:19:58 +02:00
|
|
|
%h1.fr-h6.fr-mb-1w
|
|
|
|
= @procedure.libelle
|
|
|
|
%span.fr-text--sm
|
|
|
|
= 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?
|
2023-06-19 15:19:58 +02:00
|
|
|
%span.fr-badge.fr-badge--warning
|
|
|
|
= t('closed_at', scope: [:layouts, :breadcrumb], date: @procedure.closed_at.strftime('%d/%m/%Y'))
|
|
|
|
|
|
|
|
- elsif @procedure.locked?
|
|
|
|
.flex
|
|
|
|
%span.fr-badge.fr-badge--success.fr-mr-1w
|
|
|
|
= t('published', scope: [:layouts, :breadcrumb])
|
|
|
|
= link_to commencer_url(@procedure.path), commencer_url(@procedure.path), class: "fr-link"
|
|
|
|
|
|
|
|
- else
|
|
|
|
%span.fr-badge.fr-badge--info
|
2022-08-17 13:53:07 +02:00
|
|
|
= t('draft', scope: [:layouts, :breadcrumb])
|