don't check disabled radio inputs

This commit is contained in:
Mike Greiling 2017-08-25 14:07:44 -05:00
parent 04e3e609da
commit 8cf504a71c

View file

@ -4,7 +4,7 @@
- disabled = disallowed || restricted
.radio{ class: [('disabled' if disabled), ('restricted' if restricted)] }
= form.label "#{model_method}_#{level}" do
= form.radio_button model_method, level, checked: (selected_level == level), disabled: disabled
= form.radio_button model_method, level, checked: (selected_level == level && !disabled), disabled: disabled
= visibility_level_icon(level)
.option-title
= visibility_level_label(level)