diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-11 13:09:56 -0500 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-11 13:09:56 -0500 |
commit | 763e14c38d4afce3a82b21ea40ce630185de1132 (patch) | |
tree | c2817eb7d738e137be9d013f15d141c09779af54 /app/views/shared/_visibility_radios.html.haml | |
parent | df8aa61a94b8e70526fb78aed75ada1e390c7ce1 (diff) | |
download | gitlab-ce-763e14c38d4afce3a82b21ea40ce630185de1132.tar.gz |
[skip ci] Replace .radio with .form-check
Diffstat (limited to 'app/views/shared/_visibility_radios.html.haml')
-rw-r--r-- | app/views/shared/_visibility_radios.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_visibility_radios.html.haml b/app/views/shared/_visibility_radios.html.haml index 0ec7677a566..d8b0c6bec49 100644 --- a/app/views/shared/_visibility_radios.html.haml +++ b/app/views/shared/_visibility_radios.html.haml @@ -2,7 +2,7 @@ - disallowed = disallowed_visibility_level?(form_model, level) - restricted = restricted_visibility_levels.include?(level) - disabled = disallowed || restricted - .radio{ class: [('disabled' if disabled), ('restricted' if restricted)] } + .form-check{ 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 = visibility_level_icon(level) |