demarches-normaliennes/app/views/invites/_dropdown.html.haml

15 lines
559 B
Text
Raw Normal View History

.dropdown.invite-user-action
%button.button.dropdown-button{ 'aria-expanded' => 'false', 'aria-controls' => 'invite-content' }
%span.icon.person
- if dossier.invites.count > 0
2021-04-17 18:49:00 +02:00
= t('views.invites.dropdown.view_invited_people')
%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')
#invite-content.dropdown-content.fade-in-down
= render partial: "invites/form", locals: { dossier: dossier }