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:
Ana María Martínez Gómez 2019-05-30 13:13:24 +02:00
parent dcd10f170f
commit f64cd7323f
No known key found for this signature in database
GPG key ID: EACB9B4BC80C0347

View file

@ -14,10 +14,7 @@
%td= link_to user.email, admin_user_path(user.id)
%td= user.created_at.strftime('%m/%d/%Y')
%td
= check_box_tag user.id, user.id, user.confirmed?,
url: "/admin/users/#{user.id}/toggle_confirmation?user[to_confirm]=",
class: 'switch-checkbox',
readonly: true
= user.confirmed? ? 'Yes' : 'No'
- else
%h5.text-warning.text-center
No sign ups!