don't check disabled radio inputs
This commit is contained in:
parent
04e3e609da
commit
8cf504a71c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue