2015-04-26 01:01:52 -04:00
|
|
|
- Gitlab::VisibilityLevel.values.each do |level|
|
2015-07-06 08:38:43 -04:00
|
|
|
- next if skip_level?(form_model, level)
|
2015-04-26 01:01:52 -04:00
|
|
|
.radio
|
|
|
|
- restricted = restricted_visibility_levels.include?(level)
|
2015-05-16 16:09:04 -04:00
|
|
|
= form.label "#{model_method}_#{level}" do
|
2015-04-26 01:01:52 -04:00
|
|
|
= form.radio_button model_method, level, checked: (selected_level == level), disabled: restricted
|
|
|
|
= visibility_level_icon(level)
|
|
|
|
.option-title
|
|
|
|
= visibility_level_label(level)
|
|
|
|
.option-descr
|
|
|
|
= visibility_level_description(level, form_model)
|
|
|
|
- unless restricted_visibility_levels.empty?
|
2016-09-25 01:14:47 -04:00
|
|
|
%div
|
2015-04-26 01:01:52 -04:00
|
|
|
%span.info
|
|
|
|
Some visibility level settings have been restricted by the administrator.
|