2022-05-11 16:08:48 +02:00
|
|
|
.dropdown.invite-user-action{ data: { controller: 'menu-button', popover: 'true' } }
|
|
|
|
%button.button.dropdown-button{ data: { menu_button_target: 'button' } }
|
2018-09-11 17:51:44 +02:00
|
|
|
%span.icon.person
|
|
|
|
- if dossier.invites.count > 0
|
2021-04-17 18:49:00 +02:00
|
|
|
= t('views.invites.dropdown.view_invited_people')
|
2018-09-11 17:51:44 +02:00
|
|
|
%span.badge= dossier.invites.count
|
|
|
|
- else
|
2019-09-30 17:49:57 +02:00
|
|
|
- if dossier.read_only?
|
2021-04-17 18:49:00 +02:00
|
|
|
= t('views.invites.dropdown.invite_to_view')
|
2019-09-30 17:49:57 +02:00
|
|
|
- else
|
2021-04-17 18:49:00 +02:00
|
|
|
= t('views.invites.dropdown.invite_to_edit')
|
2018-09-20 14:03:52 +02:00
|
|
|
|
2022-05-11 16:08:48 +02:00
|
|
|
#invite-content.dropdown-content.fade-in-down{ data: { menu_button_target: 'menu' } }
|
2018-09-20 14:03:52 +02:00
|
|
|
= render partial: "invites/form", locals: { dossier: dossier }
|