demarches-normaliennes/app/views/users/dossiers/show/_header.html.haml

29 lines
1.5 KiB
Text
Raw Normal View History

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')
= pending_correction_badge(:for_user) if dossier.pending_correction?
2023-03-14 11:04:19 +01:00
%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})
- if dossier.show_procedure_state_warning?
= render(partial: 'users/dossiers/procedure_removed_banner', locals: { dossier: dossier })
- elsif current_user.owns?(dossier)
.header-actions
= render partial: 'invites/dropdown', locals: { dossier: dossier, morphing: false }
- if dossier.can_be_updated_by_user? && !current_page?(modifier_dossier_path(dossier))
= link_to t('views.users.dossiers.show.header.edit_dossier'), modifier_dossier_path(dossier), class: 'fr-btn fr-btn-sm',
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 })
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))