2018-08-08 17:09:02 +02:00
|
|
|
.sub-header
|
|
|
|
.container
|
2023-03-14 11:04:19 +01:00
|
|
|
%h1
|
|
|
|
= dossier.procedure.libelle
|
|
|
|
= status_badge(dossier.state, 'super')
|
|
|
|
%h2
|
|
|
|
= t('views.users.dossiers.show.header.dossier_number', dossier_id: dossier.id)
|
|
|
|
- if dossier.depose_at.present?
|
|
|
|
= t('views.users.dossiers.show.header.submit_date', date_du_dossier: I18n.l(dossier.depose_at))
|
2018-08-08 17:09:02 +02:00
|
|
|
|
2023-03-14 11:04:19 +01:00
|
|
|
= render(partial: 'users/dossiers/expiration_banner', locals: {dossier: dossier})
|
2021-11-22 14:51:52 +01:00
|
|
|
|
2022-04-14 11:08:17 +02:00
|
|
|
- if dossier.show_procedure_state_warning?
|
|
|
|
= render(partial: 'users/dossiers/procedure_removed_banner', locals: { dossier: dossier })
|
|
|
|
- elsif current_user.owns?(dossier)
|
2019-07-29 10:45:49 +02:00
|
|
|
.header-actions
|
2022-12-28 16:47:52 +01:00
|
|
|
= render partial: 'invites/dropdown', locals: { dossier: dossier, morphing: false }
|
2019-07-29 10:49:49 +02:00
|
|
|
- if dossier.can_be_updated_by_user? && !current_page?(modifier_dossier_path(dossier))
|
2023-01-06 15:45:18 +01:00
|
|
|
= link_to t('views.users.dossiers.show.header.edit_dossier'), modifier_dossier_path(dossier), class: 'fr-btn fr-btn-sm',
|
2022-12-01 10:49:16 +01:00
|
|
|
title: { label: t('views.users.dossiers.show.header.edit_dossier_title') }
|
2022-03-22 15:00:26 +01:00
|
|
|
= render(partial: 'users/dossiers/show/print_dossier', locals: { dossier: dossier })
|
2018-09-20 14:05:18 +02:00
|
|
|
|
2021-12-24 18:10:50 +01:00
|
|
|
%nav.tabs
|
|
|
|
%ul
|
|
|
|
= dynamic_tab_item(t('views.users.dossiers.show.header.summary'), dossier_path(dossier))
|
|
|
|
= dynamic_tab_item(t('views.users.dossiers.show.header.request'), [demande_dossier_path(dossier), modifier_dossier_path(dossier)])
|
|
|
|
= dynamic_tab_item(t('views.users.dossiers.show.header.mailbox'), messagerie_dossier_path(dossier))
|