2018-08-08 17:09:02 +02:00
.sub-header
.container
2020-03-24 15:55:03 +01:00
= status_badge(dossier.state)
2018-08-08 17:09:02 +02:00
2018-08-10 15:32:39 +02:00
.title-container
%span.icon.folder
%h1= dossier.procedure.libelle
2019-02-18 11:59:16 +01:00
%h2
2021-04-17 18:49:00 +02:00
= t('views.users.dossiers.show.header.dossier_number', dossier_id: dossier.id)
2021-12-06 15:49:17 +01:00
- 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
2021-12-02 15:54:18 +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
= render partial: 'invites/dropdown', locals: { dossier: dossier }
2019-07-29 10:49:49 +02:00
- if dossier.can_be_updated_by_user? && !current_page?(modifier_dossier_path(dossier))
2021-04-17 18:49:00 +02:00
= link_to t('views.users.dossiers.show.header.edit_dossier'), modifier_dossier_path(dossier), class: 'button accepted edit-form', 'title'=> "Vous pouvez modifier votre dossier tant qu'il n'est passé en instruction"
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))