edit.html.haml 2.1 KB
Newer Older
1
.panel.panel-default.prepend-top-default
2
  .panel-heading
D
Douwe Maan 已提交
3
    Group settings
4
  .panel-body
5
    = form_for @group, html: { multipart: true, class: "form-horizontal gl-show-field-errors" }, authenticity_token: true do |f|
6
      = form_errors(@group)
7
      = render 'shared/group_form', f: f
S
Steven Thonus 已提交
8

9
      .form-group
10
        .col-sm-offset-2.col-sm-10
11
          .avatar-container.s160
12
            = image_tag group_icon(@group), alt: '', class: 'avatar group-avatar s160'
13 14 15 16 17 18 19 20
          %p.light
            - if @group.avatar?
              You can change your group avatar here
            - else
              You can upload a group avatar here
          = render 'shared/choose_group_avatar_button', f: f
          - if @group.avatar?
            %hr
D
Dmitriy Zaporozhets 已提交
21
            = link_to 'Remove avatar', group_avatar_path(@group.to_param), data: { confirm: "Group avatar will be removed. Are you sure?"}, method: :delete, class: "btn btn-remove btn-sm remove-avatar"
22

F
Felipe Artur 已提交
23 24
      = render 'shared/visibility_level', f: f, visibility_level: @group.visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group

Z
Z.J. van de Weg 已提交
25
      = render 'create_chat_team', f: f if Gitlab.config.mattermost.enabled
26

27 28 29 30
      .form-group
        .col-sm-offset-2.col-sm-10
          = render 'shared/allow_request_access', form: f

31
      = render 'group_lfs_settings', f: f
32

33 34 35 36 37 38 39 40 41
      .form-group
        %hr
        = f.label :share_with_group_lock, class: 'control-label' do
          Share with group lock
        .col-sm-10
          .checkbox
            = f.check_box :share_with_group_lock
            %span.descr Prevent sharing a project with another group within this group

42

43 44
      .form-actions
        = f.submit 'Save group', class: "btn btn-save"
45

46 47 48 49 50 51 52
.panel.panel-danger
  .panel-heading Remove group
  .panel-body
    %p
      Removing group will cause all child projects and resources to be removed.
      %br
      %strong Removed group can not be restored!
53

D
Douwe Maan 已提交
54 55
    .form-actions
      = link_to 'Remove Group', @group, data: {confirm: 'Removed group can not be restored! Are you sure?'}, method: :delete, class: "btn btn-remove"