2023-01-06 17:26:28 +01:00
|
|
|
= render Dropdown::MenuComponent.new(wrapper: :span, wrapper_options: { class: ['help-dropdown']}, menu_options: { id: "help-menu" }) do |menu|
|
|
|
|
- menu.with_button_inner_html do
|
2022-04-13 15:44:29 +02:00
|
|
|
= t('help')
|
2023-02-21 19:15:39 +01:00
|
|
|
|
|
|
|
- title = dossier.brouillon? ? t("help_dropdown.help_brouillon_title") : t("help_dropdown.help_filled_dossier")
|
2019-03-25 16:04:30 +01:00
|
|
|
|
2023-01-06 17:26:28 +01:00
|
|
|
- if dossier.messagerie_available?
|
|
|
|
- menu.with_item do
|
|
|
|
= render partial: 'shared/help/dropdown_items/messagerie_item', locals: { dossier: dossier, title: title }
|
2019-03-25 16:04:30 +01:00
|
|
|
|
2023-01-06 17:26:28 +01:00
|
|
|
- elsif dossier.procedure.service.present?
|
|
|
|
- menu.with_item do
|
|
|
|
= render partial: 'shared/help/dropdown_items/service_item',
|
|
|
|
locals: { service: dossier.procedure.service, title: title }
|
|
|
|
|
|
|
|
- menu.with_item do
|
|
|
|
= render partial: 'shared/help/dropdown_items/faq_item'
|