28 lines
1.4 KiB
Text
28 lines
1.4 KiB
Text
.sub-header
|
||
.container
|
||
= render partial: 'shared/dossiers/status_badge', locals: { dossier: dossier }
|
||
|
||
.title-container
|
||
%span.icon.folder
|
||
%h1= dossier.procedure.libelle
|
||
%h2
|
||
Dossier nº #{dossier.id}
|
||
- if dossier.en_construction_at.present?
|
||
= "- Déposé le #{l(dossier.en_construction_at, format: '%d %B %Y')}"
|
||
|
||
- if current_user.owns?(dossier)
|
||
.header-actions
|
||
= render partial: 'invites/dropdown', locals: { dossier: dossier }
|
||
- 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"
|
||
%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"
|
||
|
||
%ul.tabs
|
||
= dynamic_tab_item('Résumé', dossier_path(dossier))
|
||
= dynamic_tab_item('Demande', [demande_dossier_path(dossier), modifier_dossier_path(dossier)])
|
||
= dynamic_tab_item('Messagerie', messagerie_dossier_path(dossier))
|