BigW Consortium Gitlab

_visibility_level.html.haml 757 Bytes
Newer Older
1 2
- with_label = local_assigns.fetch(:with_label, true)

Vinnie Okada committed
3
.form-group.project-visibility-level-holder
4 5 6 7 8
  - 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) }
Vinnie Okada committed
9 10 11
    - if can_change_visibility_level
      = render('shared/visibility_radios', model_method: :visibility_level, form: f, selected_level: visibility_level, form_model: form_model)
    - else
12
      %div
Vinnie Okada committed
13 14 15 16 17
        %span.info
          = visibility_level_icon(visibility_level)
          %strong
            = visibility_level_label(visibility_level)
          .light= visibility_level_description(visibility_level, form_model)