BigW Consortium Gitlab

_form.html.haml 932 Bytes
Newer Older
1
= form_for [:admin, @group], html: { class: "form-horizontal" } do |f|
2
  = form_errors(@group)
Ciro Santilli committed
3
  = render 'shared/group_form', f: f
4 5 6 7

  .form-group.group-description-holder
    = f.label :avatar, "Group avatar", class: 'control-label'
    .col-sm-10
8
      = render 'shared/choose_group_avatar_button', f: f
9

10 11
  = render 'shared/visibility_level', f: f, visibility_level: @group.visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group

12 13
  - if @group.new_record?
    .form-group
14
      .col-sm-offset-2.col-sm-10
15
        .alert.alert-info
Ciro Santilli committed
16
          = render 'shared/group_tips'
17 18 19 20 21 22
    .form-actions
      = f.submit 'Create group', class: "btn btn-create"
      = link_to  'Cancel', admin_groups_path, class: "btn btn-cancel"

  - else
    .form-actions
23
      = f.submit 'Save changes', class: "btn btn-save"
24
      = link_to  'Cancel', admin_group_path(@group), class: "btn btn-cancel"