2016-01-14 11:48:02 +00:00
|
|
|
.panel.panel-default.prepend-top-default
|
2014-12-16 14:58:15 +00:00
|
|
|
.panel-heading
|
2015-12-02 13:27:29 +00:00
|
|
|
Group settings
|
2014-12-16 14:58:15 +00:00
|
|
|
.panel-body
|
2016-11-02 10:35:21 +00:00
|
|
|
= form_for @group, html: { multipart: true, class: "form-horizontal gl-show-field-errors" }, authenticity_token: true do |f|
|
2016-04-05 01:25:38 +00:00
|
|
|
= form_errors(@group)
|
2014-12-16 14:58:15 +00:00
|
|
|
= render 'shared/group_form', f: f
|
2014-01-27 21:34:05 +00:00
|
|
|
|
2014-12-16 14:58:15 +00:00
|
|
|
.form-group
|
2015-06-15 22:48:54 +00:00
|
|
|
.col-sm-offset-2.col-sm-10
|
2016-11-03 14:26:22 +00:00
|
|
|
.avatar-container.s160
|
2016-10-31 19:14:05 +00:00
|
|
|
= image_tag group_icon(@group), alt: '', class: 'avatar group-avatar s160'
|
2014-12-16 14:58:15 +00: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 07:29:32 +00: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 17:04:11 +00:00
|
|
|
|
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
|
|
|
|
|
2016-07-15 21:46:29 +00:00
|
|
|
.form-group
|
|
|
|
.col-sm-offset-2.col-sm-10
|
|
|
|
= render 'shared/allow_request_access', form: f
|
|
|
|
|
2016-09-06 16:48:00 +00:00
|
|
|
= render 'group_lfs_settings', f: f
|
2016-09-01 23:49:48 +00:00
|
|
|
|
2016-03-11 18:03:19 +00:00
|
|
|
.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
|
|
|
|
|
2016-03-16 23:16:42 +00:00
|
|
|
|
2014-12-16 14:58:15 +00:00
|
|
|
.form-actions
|
|
|
|
= f.submit 'Save group', class: "btn btn-save"
|
2013-06-25 10:15:07 +00:00
|
|
|
|
2014-12-16 14:58:15 +00:00
|
|
|
.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!
|
2013-02-01 17:04:11 +00:00
|
|
|
|
2015-12-02 13:34:20 +00:00
|
|
|
.form-actions
|
|
|
|
= link_to 'Remove Group', @group, data: {confirm: 'Removed group can not be restored! Are you sure?'}, method: :delete, class: "btn btn-remove"
|