2017-08-16 05:35:59 -04:00
|
|
|
- breadcrumb_title "General Settings"
|
2016-01-14 06:48:02 -05:00
|
|
|
.panel.panel-default.prepend-top-default
|
2014-12-16 09:58:15 -05:00
|
|
|
.panel-heading
|
2015-12-02 08:27:29 -05:00
|
|
|
Group settings
|
2014-12-16 09:58:15 -05:00
|
|
|
.panel-body
|
2016-11-02 06:35:21 -04:00
|
|
|
= form_for @group, html: { multipart: true, class: "form-horizontal gl-show-field-errors" }, authenticity_token: true do |f|
|
2016-04-04 21:25:38 -04:00
|
|
|
= form_errors(@group)
|
2014-12-16 09:58:15 -05:00
|
|
|
= render 'shared/group_form', f: f
|
2014-01-27 16:34:05 -05:00
|
|
|
|
2014-12-16 09:58:15 -05:00
|
|
|
.form-group
|
2015-06-15 18:48:54 -04:00
|
|
|
.col-sm-offset-2.col-sm-10
|
2016-11-03 10:26:22 -04:00
|
|
|
.avatar-container.s160
|
2016-10-31 15:14:05 -04:00
|
|
|
= image_tag group_icon(@group), alt: '', class: 'avatar group-avatar s160'
|
2014-12-16 09:58:15 -05:00
|
|
|
%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
|
2015-03-14 03:29:32 -04:00
|
|
|
= 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"
|
2013-02-01 12:04:11 -05:00
|
|
|
|
2016-03-01 10:22:29 -05: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
|
|
|
|
|
2016-07-15 17:46:29 -04:00
|
|
|
.form-group
|
|
|
|
.col-sm-offset-2.col-sm-10
|
|
|
|
= render 'shared/allow_request_access', form: f
|
|
|
|
|
2016-03-11 13:03:19 -05:00
|
|
|
.form-group
|
2017-09-06 14:00:21 -04:00
|
|
|
%label.control-label
|
2017-09-06 14:31:45 -04:00
|
|
|
= s_("GroupSettings|Share with group lock")
|
2016-03-11 13:03:19 -05:00
|
|
|
.col-sm-10
|
|
|
|
.checkbox
|
2017-08-30 19:56:44 -04:00
|
|
|
= f.label :share_with_group_lock do
|
2017-09-05 15:43:48 -04:00
|
|
|
= f.check_box :share_with_group_lock, disabled: !can_change_share_with_group_lock?(@group)
|
2017-08-30 19:56:44 -04:00
|
|
|
%strong
|
2017-09-05 17:53:32 -04: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 17:44:59 -04:00
|
|
|
%br
|
2017-09-05 20:02:11 -04:00
|
|
|
%span.descr= share_with_group_lock_help_text(@group)
|
2016-03-11 13:03:19 -05:00
|
|
|
|
2017-08-30 19:56:44 -04:00
|
|
|
= render 'group_admin_settings', f: f
|
2016-03-16 19:16:42 -04:00
|
|
|
|
2014-12-16 09:58:15 -05:00
|
|
|
.form-actions
|
|
|
|
= f.submit 'Save group', class: "btn btn-save"
|
2013-06-25 06:15:07 -04:00
|
|
|
|
2014-12-16 09:58:15 -05:00
|
|
|
.panel.panel-danger
|
|
|
|
.panel-heading Remove group
|
|
|
|
.panel-body
|
2017-07-04 11:18:51 -04:00
|
|
|
= 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!
|
2013-02-01 12:04:11 -05:00
|
|
|
|
2017-07-04 11:18:51 -04:00
|
|
|
.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
|