gitlab-org--gitlab-foss/app/views/groups/edit.html.haml

61 lines
2.4 KiB
Plaintext
Raw Normal View History

- breadcrumb_title "General Settings"
.panel.panel-default.prepend-top-default
.panel-heading
2015-12-02 13:27:29 +00:00
Group settings
.panel-body
= form_for @group, html: { multipart: true, class: "form-horizontal gl-show-field-errors" }, authenticity_token: true do |f|
= form_errors(@group)
= render 'shared/group_form', f: f
2014-01-27 21:34:05 +00:00
.form-group
.col-sm-offset-2.col-sm-10
.avatar-container.s160
= group_icon(@group, alt: '', class: 'avatar group-avatar s160')
%p.light
- if @group.avatar?
2017-12-22 18:23:14 +00:00
You can change the group avatar here
- else
You can upload a group avatar here
= render 'shared/choose_group_avatar_button', f: f
- if @group.avatar?
%hr
2017-12-22 18:23:14 +00:00
= link_to _('Remove avatar'), group_avatar_path(@group.to_param), data: { confirm: _("Avatar will be removed. Are you sure?")}, method: :delete, class: "btn btn-danger btn-inverted"
2016-03-01 15:22:29 +00:00
= render 'shared/visibility_level', f: f, visibility_level: @group.visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group
.form-group
.col-sm-offset-2.col-sm-10
= render 'shared/allow_request_access', form: f
.form-group
2017-09-06 18:00:21 +00:00
%label.control-label
= s_("GroupSettings|Share with group lock")
.col-sm-10
.checkbox
2017-08-30 23:56:44 +00:00
= f.label :share_with_group_lock do
2017-09-05 19:43:48 +00:00
= f.check_box :share_with_group_lock, disabled: !can_change_share_with_group_lock?(@group)
2017-08-30 23:56:44 +00:00
%strong
2017-09-05 21:53:32 +00:00
- group_link = link_to @group.name, group_path(@group)
= s_("GroupSettings|Prevent sharing a project within %{group} with other groups").html_safe % { group: group_link }
2017-09-04 21:44:59 +00:00
%br
2017-09-06 00:02:11 +00:00
%span.descr= share_with_group_lock_help_text(@group)
2017-08-30 23:56:44 +00:00
= render 'group_admin_settings', f: f
.form-actions
= f.submit 'Save group', class: "btn btn-save"
.panel.panel-danger
.panel-heading Remove group
.panel-body
= form_tag(@group, method: :delete) do
%p
Removing group will cause all child projects and resources to be removed.
%br
%strong Removed group can not be restored!
.form-actions
= button_to 'Remove group', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_group_message(@group) }
= render 'shared/confirm_modal', phrase: @group.path