demarches-normaliennes/app/views/experts/avis/_sidemenu.html.haml

22 lines
1.3 KiB
Text
Raw Normal View History

2023-03-17 11:30:20 +01:00
%nav.fr-sidemenu{ "aria-labelledby" => "fr-sidemenu-title" }
.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
#fr-sidemenu-wrapper.fr-collapse
%ul.fr-sidemenu__list
- 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
- if @dossier.avis_for_expert(current_expert).present?
- 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
- if !@dossier.termine?
- 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