2023-03-17 11:30:20 +01:00
|
|
|
%nav.fr-sidemenu{ "aria-labelledby" => "fr-sidemenu-title" }
|
2023-03-14 16:50:25 +01:00
|
|
|
.fr-sidemenu__inner
|
2023-03-17 11:30:20 +01:00
|
|
|
%button.fr-sidemenu__btn{ "aria-controls" => "fr-sidemenu-wrapper", "aria-expanded" => "false", hidden: "" } Dans cette rubrique
|
2023-03-14 16:50:25 +01:00
|
|
|
#fr-sidemenu-wrapper.fr-collapse
|
|
|
|
%ul.fr-sidemenu__list
|
2023-03-16 15:26:40 +01:00
|
|
|
- url = instruction_expert_avis_path(@avis.procedure, @avis)
|
|
|
|
- current_page = current_page?(url)
|
2023-03-17 11:30:20 +01:00
|
|
|
%li{ class: "fr-sidemenu__item fr-sidemenu__item#{current_page ? '--active' : ''}" }
|
|
|
|
%a.fr-sidemenu__link{ 'aria-current': current_page ? 'page' : nil, href: url, target: "_self" } Donner votre avis
|
2023-03-14 16:50:25 +01:00
|
|
|
|
|
|
|
- if @dossier.avis_for_expert(current_expert).present?
|
2023-03-16 15:26:40 +01:00
|
|
|
- url = avis_list_expert_avis_path(@avis.procedure, @avis)
|
|
|
|
- current_page = current_page?(url)
|
2023-03-17 11:30:20 +01:00
|
|
|
%li{ class: "fr-sidemenu__item fr-sidemenu__item#{current_page ? '--active' : ''}" }
|
|
|
|
%a.fr-sidemenu__link{ 'aria-current': current_page ? 'page' : nil,href: url, target: "_self" } Voir les avis
|
2023-03-14 16:50:25 +01:00
|
|
|
|
2023-03-16 10:46:10 +01:00
|
|
|
- if !@dossier.termine?
|
2023-03-16 15:26:40 +01:00
|
|
|
- url = avis_new_expert_avis_path(@avis.procedure, @avis)
|
|
|
|
- current_page = current_page?(url)
|
2023-03-17 11:30:20 +01:00
|
|
|
%li{ class: "fr-sidemenu__item fr-sidemenu__item#{current_page ? '--active' : ''}" }
|
|
|
|
%a.fr-sidemenu__link{ 'aria-current': current_page ? 'page' : nil,href: url, target: "_self" } Demander un nouvel avis
|