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)
2019-02-18 11:59:16 +01:00
- if dossier.en_construction_at.present?
2021-04-17 18:49:00 +02:00
= t('views.users.dossiers.show.header.submit_date', date_du_dossier: I18n.l(dossier.en_construction_at))
2018-08-08 17:09:02 +02:00
2021-11-26 14:31:30 +01:00
= render(partial: 'shared/dossiers/expiration_banner', locals: {dossier: dossier})
2021-11-22 14:51:52 +01:00
2018-09-20 14:05:18 +02:00
- if 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"
2019-12-15 22:10:35 +01:00
%span.dropdown.print-menu-opener
2021-04-17 18:49:00 +02:00
%button.button.dropdown-button.icon-only{ title: t('views.users.dossiers.show.header.print'), 'aria-label': 'imprimer', 'aria-expanded' => 'false', 'aria-controls' => 'print-menu' }
2019-12-15 22:10:35 +01:00
%span.icon.printer
2020-09-14 11:28:24 +02:00
%ul#print-menu.print-menu.dropdown-content
2019-12-15 22:10:35 +01:00
%li
2021-04-17 18:49:00 +02:00
= link_to t('views.users.dossiers.show.header.print_dossier'), dossier_path(dossier, format: :pdf), target: "_blank", rel: "noopener", class: "menu-item menu-link"
2018-09-20 14:05:18 +02:00
2020-03-19 14:47:09 +01:00
2018-08-08 17:09:02 +02:00
%ul.tabs
2021-04-17 18:49:00 +02:00
= 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))