2015-01-12 23:13:10 +02:00
|
|
|
.page-header
|
|
|
|
|
%h3 Users (#{users.length})
|
|
|
|
|
- if users.present?
|
2018-06-15 18:20:18 -07:00
|
|
|
%table.datatable#users
|
2015-01-12 23:13:10 +02:00
|
|
|
%thead
|
2016-04-03 20:26:00 +05:30
|
|
|
- if ( can? :toggle_user, @role )
|
|
|
|
|
%th.col-md-1
|
2015-01-12 23:13:10 +02:00
|
|
|
%th ID
|
|
|
|
|
%th Name
|
|
|
|
|
%th Email
|
|
|
|
|
%tbody
|
|
|
|
|
- users.each do |user|
|
|
|
|
|
%tr
|
2016-04-03 20:26:00 +05:30
|
|
|
- if ( can? :toggle_user, @role )
|
|
|
|
|
%td.text-right
|
|
|
|
|
= hidden_field_tag "role[user_ids][]", nil
|
2018-06-18 17:44:06 -07:00
|
|
|
= check_box_tag @conference.short_title, @role.id, (@role.user_ids.include? user.id), url: "#{@url}?user[email]=#{user.email}&user[state]=", method: :post, class: 'switch-checkbox'
|
2015-01-12 23:13:10 +02:00
|
|
|
%td= user.id
|
|
|
|
|
%td= user.name
|
|
|
|
|
%td= user.email
|
|
|
|
|
- else
|
|
|
|
|
%h5 No users found!
|