Commit f9319042 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'rs-issue-1626' into 'master'

Fix labels for project/snippet visibility selection

Closes #1626

See merge request !671
parents a0fcbda9 2be995d7
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
} }
.option-descr { .option-descr {
margin-left: 24px; margin-left: 36px;
color: $gray; color: $gray;
} }
} }
......
- Gitlab::VisibilityLevel.values.each do |level| - Gitlab::VisibilityLevel.values.each do |level|
.radio .radio
- restricted = restricted_visibility_levels.include?(level) - restricted = restricted_visibility_levels.include?(level)
= label model_method, level do = form.label "#{model_method}_#{level}" do
= form.radio_button model_method, level, checked: (selected_level == level), disabled: restricted = form.radio_button model_method, level, checked: (selected_level == level), disabled: restricted
= visibility_level_icon(level) = visibility_level_icon(level)
.option-title .option-title
......
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