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
|
2023-10-10 15:57:05 +02:00
|
|
|
%li= link_to step[0], '', { aria: { current: "page" } , class: 'fr-breadcrumb__link' }
|
2022-08-17 13:53:07 +02:00
|
|
|
- else
|
|
|
|
%li= link_to step[0], step[1], class: 'fr-breadcrumb__link'
|
|
|
|
|
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
|
|
|
|
|
2022-08-17 13:53:07 +02:00
|
|
|
- if @procedure.close?
|
2023-06-22 15:38:49 +02:00
|
|
|
.flex
|
|
|
|
%span.fr-badge.fr-badge--warning.fr-mr-1w
|
|
|
|
= t('closed', scope: [:layouts, :breadcrumb])
|
|
|
|
= t('since', scope: [:layouts, :breadcrumb], date: l(@procedure.closed_at.to_date))
|
2023-06-19 15:19:58 +02:00
|
|
|
|
|
|
|
- elsif @procedure.locked?
|
2023-06-22 15:38:49 +02:00
|
|
|
= link_to commencer_url(@procedure.path), commencer_url(@procedure.path), class: "fr-link"
|
|
|
|
.flex.fr-mt-1w
|
2024-09-26 11:27:29 +02:00
|
|
|
|
|
|
|
- if @procedure.api_entreprise_token_expired_or_expires_soon?
|
|
|
|
%span.fr-badge.fr-badge--warning.fr-mr-1w
|
|
|
|
= t('to_modify', scope: [:layouts, :breadcrumb])
|
|
|
|
|
2023-06-19 15:19:58 +02:00
|
|
|
%span.fr-badge.fr-badge--success.fr-mr-1w
|
|
|
|
= t('published', scope: [:layouts, :breadcrumb])
|
2023-06-22 15:38:49 +02:00
|
|
|
= t('since', scope: [:layouts, :breadcrumb], number: @procedure.id, date: l(@procedure.published_at.to_date))
|
2023-06-19 15:19:58 +02:00
|
|
|
|
|
|
|
- else
|
2023-07-17 10:41:38 +02:00
|
|
|
%p.fr-mb-1w
|
|
|
|
= t('more_info_on_test', scope: [:layouts, :breadcrumb])
|
2024-04-24 15:50:42 +02:00
|
|
|
= link_to t('go_to_FAQ', scope: [:layouts, :breadcrumb]), t("url_FAQ", scope: [:layouts, :breadcrumb]), title: new_tab_suffix(t('go_to_FAQ', scope: [:layouts, :breadcrumb]))
|
2023-06-22 15:38:49 +02:00
|
|
|
.flex
|
|
|
|
%span.fr-badge.fr-badge--new.fr-mr-1w
|
|
|
|
= t('draft', scope: [:layouts, :breadcrumb])
|
|
|
|
= t('since', scope: [:layouts, :breadcrumb], number: @procedure.id, date: l(@procedure.created_at.to_date))
|