2017-02-09 07:25:46 -05:00
|
|
|
- with_label = local_assigns.fetch(:with_label, true)
|
|
|
|
|
2018-06-04 23:48:16 -04:00
|
|
|
.form-group.row.visibility-level-setting
|
2017-02-09 07:25:46 -05:00
|
|
|
- if with_label
|
2018-04-12 19:16:56 -04:00
|
|
|
= f.label :visibility_level, class: 'col-form-label col-sm-2' do
|
2017-02-09 07:25:46 -05:00
|
|
|
Visibility Level
|
|
|
|
= link_to icon('question-circle'), help_page_path("public_access/public_access")
|
2018-06-04 23:48:16 -04:00
|
|
|
%div{ :class => (with_label ? "col-sm-10" : "col-sm-12") }
|
2015-04-26 01:01:52 -04:00
|
|
|
- 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-09-25 01:14:47 -04:00
|
|
|
%div
|
2015-04-26 01:01:52 -04:00
|
|
|
%span.info
|
|
|
|
= visibility_level_icon(visibility_level)
|
|
|
|
%strong
|
|
|
|
= visibility_level_label(visibility_level)
|
|
|
|
.light= visibility_level_description(visibility_level, form_model)
|