Commit 8ffbab21 authored by Mike Greiling's avatar Mike Greiling

ensure disabled radio options still show up as checked when necessary

parent 12982366
......@@ -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: disabled
= form.radio_button model_method, level, checked: (selected_level == level), disabled: disabled
= visibility_level_icon(level)
.option-title
= visibility_level_label(level)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment