2018-08-08 17:09:02 +02:00
.sub-header
.container
2018-09-05 11:58:34 +02:00
= render partial: 'shared/dossiers/status_badge', locals: { dossier: dossier }
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
Dossier nº #{dossier.id}
- if dossier.en_construction_at.present?
= "- Déposé le #{l(dossier.en_construction_at, format: '%d %B %Y')}"
2018-08-08 17:09:02 +02: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))
= link_to "Modifier mon 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
%button.button.dropdown-button.icon-only{ title: 'imprimer' }
%span.icon.printer
%ul.print-menu.dropdown-content
%li
= link_to "Tout le dossier", dossier_path(dossier, format: :pdf), target: "_blank", rel: "noopener", class: "menu-item menu-link"
2018-09-20 14:05:18 +02:00
2018-08-08 17:09:02 +02:00
%ul.tabs
2018-09-06 14:02:02 +02:00
= dynamic_tab_item('Résumé', dossier_path(dossier))
2018-09-06 15:26:14 +02:00
= dynamic_tab_item('Demande', [demande_dossier_path(dossier), modifier_dossier_path(dossier)])
2018-09-06 14:02:02 +02:00
= dynamic_tab_item('Messagerie', messagerie_dossier_path(dossier))