2017-08-17 22:00:37 +05:30
|
|
|
- with_label = local_assigns.fetch(:with_label, true)
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.form-group.visibility-level-setting
|
2017-08-17 22:00:37 +05:30
|
|
|
- if with_label
|
|
|
|
= f.label :visibility_level, class: 'control-label' do
|
|
|
|
Visibility Level
|
|
|
|
= link_to icon('question-circle'), help_page_path("public_access/public_access")
|
|
|
|
%div{ :class => ("col-sm-10" if with_label) }
|
2015-09-11 14:41:01 +05:30
|
|
|
- if can_change_visibility_level
|
|
|
|
= render('shared/visibility_radios', model_method: :visibility_level, form: f, selected_level: visibility_level, form_model: form_model)
|
|
|
|
- else
|
2016-11-03 12:29:30 +05:30
|
|
|
%div
|
2015-09-11 14:41:01 +05:30
|
|
|
%span.info
|
|
|
|
= visibility_level_icon(visibility_level)
|
|
|
|
%strong
|
|
|
|
= visibility_level_label(visibility_level)
|
|
|
|
.light= visibility_level_description(visibility_level, form_model)
|