Do not use readonly checkboxes to render information
Just render `Yes` or `No` instead of a disabled checkbox with these two options in the recent users section of conference#index.
This commit is contained in:
parent
dcd10f170f
commit
f64cd7323f
1 changed files with 1 additions and 4 deletions
|
|
@ -14,10 +14,7 @@
|
||||||
%td= link_to user.email, admin_user_path(user.id)
|
%td= link_to user.email, admin_user_path(user.id)
|
||||||
%td= user.created_at.strftime('%m/%d/%Y')
|
%td= user.created_at.strftime('%m/%d/%Y')
|
||||||
%td
|
%td
|
||||||
= check_box_tag user.id, user.id, user.confirmed?,
|
= user.confirmed? ? 'Yes' : 'No'
|
||||||
url: "/admin/users/#{user.id}/toggle_confirmation?user[to_confirm]=",
|
|
||||||
class: 'switch-checkbox',
|
|
||||||
readonly: true
|
|
||||||
- else
|
- else
|
||||||
%h5.text-warning.text-center
|
%h5.text-warning.text-center
|
||||||
No sign ups!
|
No sign ups!
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue