clarion/app/views/management/users/_user.html.slim
2014-09-17 14:23:36 +03:00

18 lines
725 B
Plaintext

tr id="user-#{user.id}"
td = user.email
td = user.speaker_profile.try(:first_name) or '-'
td = user.speaker_profile.try(:last_name) or '-'
td
- if user.admin?
span.toggle
= link_to glyph(:check), toggle_admin_management_user_path(user), remote: true, method: :post, data: {confirm: t(:are_you_sure)}, class: 'checked'
- else
span.toggle
= link_to glyph(:unchecked), toggle_admin_management_user_path(user), remote: true, method: :post, data: {confirm: t(:are_you_sure)}, class: 'unchecked'
td
.actions
= link_to management_user_path(user), title: t(:edit)
= glyph(:share)
= link_to edit_management_user_path(user), title: t(:edit)
= glyph(:edit)