amelioration(app/views/invites/_dropdown.html.haml): passe le popover d'invitation sur le nouveau menu
This commit is contained in:
parent
e53d350a6f
commit
2c8781ff98
4 changed files with 19 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
||||||
- invites = dossier.invites.load
|
- invites = dossier.invites.load
|
||||||
.dropdown.invite-user-action{ data: { controller: 'menu-button', popover: 'true' } }
|
= render Dropdown::MenuComponent.new(wrapper: :span, wrapper_options: {class: 'invite-user-action'}, button_options: { class: ['fr-btn--secondary'] }, menu_options: { id: 'invite-content' }) do |menu|
|
||||||
%button.button.dropdown-button{ data: { menu_button_target: 'button' } }
|
- menu.with_button_inner_html do
|
||||||
%span.icon.person
|
%span.icon.person
|
||||||
- if invites.present?
|
- if invites.present?
|
||||||
= t('views.invites.dropdown.view_invited_people')
|
= t('views.invites.dropdown.view_invited_people')
|
||||||
|
@ -10,6 +10,5 @@
|
||||||
= t('views.invites.dropdown.invite_to_view')
|
= t('views.invites.dropdown.invite_to_view')
|
||||||
- else
|
- else
|
||||||
= t('views.invites.dropdown.invite_to_edit')
|
= t('views.invites.dropdown.invite_to_edit')
|
||||||
|
- menu.with_form do
|
||||||
#invite-content.dropdown-content.fade-in-down{ data: { menu_button_target: 'menu' } }
|
|
||||||
= render partial: "invites/form", locals: { dossier: dossier, invites: invites }
|
= render partial: "invites/form", locals: { dossier: dossier, invites: invites }
|
||||||
|
|
|
@ -67,21 +67,21 @@
|
||||||
|
|
||||||
- if instructeur_dossier && expert_dossier
|
- if instructeur_dossier && expert_dossier
|
||||||
%td.action-col.follow-col
|
%td.action-col.follow-col
|
||||||
.dropdown{ data: { controller: 'menu-button' } }
|
= render Dropdown::MenuComponent.new(wrapper: :div, button_options: {class: ['fr-btn--sm']}) do |menu|
|
||||||
%button.button.dropdown-button{ data: { menu_button_target: 'button' } }
|
- menu.with_button_inner_html do
|
||||||
Actions
|
Actions
|
||||||
.dropdown-content{ data: { menu_button_target: 'menu' } }
|
|
||||||
%ul.dropdown-items
|
- menu.with_item do
|
||||||
%li
|
= link_to(instructeur_dossier_path(procedure_id, p.dossier_id), role: 'menuitem') do
|
||||||
= link_to(instructeur_dossier_path(procedure_id, p.dossier_id)) do
|
%span.icon.in-progress>
|
||||||
%span.icon.in-progress>
|
.dropdown-description
|
||||||
.dropdown-description
|
Voir le dossier
|
||||||
Voir le dossier
|
|
||||||
%li
|
- menu.with_item do
|
||||||
= link_to(expert_avis_path(procedure_id, @dossier_avis_ids_h[p.dossier_id])) do
|
= link_to(expert_avis_path(procedure_id, @dossier_avis_ids_h[p.dossier_id]), role: 'menuitem') do
|
||||||
%span.icon.in-progress>
|
%span.icon.in-progress>
|
||||||
.dropdown-description
|
.dropdown-description
|
||||||
Donner mon avis
|
Donner mon avis
|
||||||
|
|
||||||
- elsif instructeur_dossier
|
- elsif instructeur_dossier
|
||||||
- if hidden_by_administration
|
- if hidden_by_administration
|
||||||
|
|
|
@ -10,5 +10,5 @@
|
||||||
|
|
||||||
.container
|
.container
|
||||||
- if !@dossier.read_only?
|
- if !@dossier.read_only?
|
||||||
= link_to t('views.users.dossiers.demande.edit_dossier'), modifier_dossier_path(@dossier), class: 'button accepted edit-form', title: "Modifier mon dossier tant qu'il n'est pas passé en instruction"
|
= link_to t('views.users.dossiers.demande.edit_dossier'), modifier_dossier_path(@dossier), class: 'fr-btn fr-btn-sm', 'title'=> "Modifier mon dossier tant qu'il n'est pas passé en instruction"
|
||||||
.clearfix
|
.clearfix
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
.header-actions
|
.header-actions
|
||||||
= render partial: 'invites/dropdown', locals: { dossier: dossier }
|
= render partial: 'invites/dropdown', locals: { dossier: dossier }
|
||||||
- if dossier.can_be_updated_by_user? && !current_page?(modifier_dossier_path(dossier))
|
- if dossier.can_be_updated_by_user? && !current_page?(modifier_dossier_path(dossier))
|
||||||
= link_to t('views.users.dossiers.show.header.edit_dossier'), modifier_dossier_path(dossier), class: 'button accepted edit-form',
|
= link_to t('views.users.dossiers.show.header.edit_dossier'), modifier_dossier_path(dossier), class: 'fr-btn fr-btn-sm',
|
||||||
title: { label: t('views.users.dossiers.show.header.edit_dossier_title') }
|
title: { label: t('views.users.dossiers.show.header.edit_dossier_title') }
|
||||||
= render(partial: 'users/dossiers/show/print_dossier', locals: { dossier: dossier })
|
= render(partial: 'users/dossiers/show/print_dossier', locals: { dossier: dossier })
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue