demarches-normaliennes/app/views/experts/avis/_header.html.haml
2023-03-30 17:41:21 +02:00

26 lines
1.4 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.sub-header
.container
.flex.justify-between
%nav.fr-breadcrumb{ "aria-label" => "vous êtes ici :", role: "navigation" }
%button.fr-breadcrumb__button{ "aria-controls" => "breadcrumb-1", "aria-expanded" => "false" } Voir le fil dAriane
#breadcrumb-1.fr-collapse
%ol.fr-breadcrumb__list
%li= link_to('Avis', expert_all_avis_path, class: 'fr-breadcrumb__link')
%li
= link_to(dossier.procedure.libelle.truncate_words(10), procedure_expert_avis_index_path(avis.procedure), class: "fr-breadcrumb__link")
= procedure_badge(dossier.procedure)
%li= content_tag("a","Dossier nº #{dossier.id}", class: 'fr-breadcrumb__link', 'aria-current': 'page')
.header-actions
.fr-download
= link_to telecharger_pjs_expert_avis_path(avis.procedure, avis), download: :download, class: "menu-item menu-link fr-download__link" do
Télécharger le dossier et toutes ses pièces jointes
%span.fr-download__detail
ZIP
%nav.tabs
%ul
= dynamic_tab_item('Demande', expert_avis_path(avis.procedure, avis))
= dynamic_tab_item('Avis', instruction_expert_avis_path(avis.procedure, avis), notification: avis.answer.blank?)
- if avis.procedure.allow_expert_messaging
= dynamic_tab_item('Messagerie', messagerie_expert_avis_path(avis.procedure, avis))