2019-11-19 14:22:53 +01:00
|
|
|
.dropdown.invite-user-action
|
2020-09-14 11:28:24 +02:00
|
|
|
%button.button.dropdown-button{ 'aria-expanded' => 'false', 'aria-controls' => 'invite-content' }
|
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
|
|
|
|
2020-09-14 11:28:24 +02:00
|
|
|
#invite-content.dropdown-content.fade-in-down
|
2018-09-20 14:03:52 +02:00
|
|
|
= render partial: "invites/form", locals: { dossier: dossier }
|