_form.html.haml 1.06 KB
Newer Older
1
= form_for [:admin, @group], html: { class: "form-horizontal" } do |f|
2
  = form_errors(@group)
Ciro Santilli's avatar
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
14
15
  .form-group
    .col-sm-offset-2.col-sm-10
      = render 'shared/allow_request_access', form: f

16
17
  = render 'shared/groups/group_lfs_settings', f: f

18
19
  - if @group.new_record?
    .form-group
20
      .col-sm-offset-2.col-sm-10
21
        .alert.alert-info
Ciro Santilli's avatar
Ciro Santilli committed
22
          = render 'shared/group_tips'
23
24
25
26
27
28
    .form-actions
      = f.submit 'Create group', class: "btn btn-create"
      = link_to  'Cancel', admin_groups_path, class: "btn btn-cancel"

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