debian-mirror-gitlab/app/views/groups/edit.html.haml

53 lines
1.9 KiB
Text
Raw Normal View History

.panel.panel-default.prepend-top-default
2015-04-26 12:48:37 +05:30
.panel-heading
2015-12-23 02:04:40 +05:30
Group settings
2015-04-26 12:48:37 +05:30
.panel-body
= form_for @group, html: { multipart: true, class: "form-horizontal" }, authenticity_token: true do |f|
2016-06-02 11:05:42 +05:30
= form_errors(@group)
2015-04-26 12:48:37 +05:30
= render 'shared/group_form', f: f
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
.form-group
2015-09-11 14:41:01 +05:30
.col-sm-offset-2.col-sm-10
2015-04-26 12:48:37 +05:30
= image_tag group_icon(@group), alt: '', class: 'avatar group-avatar s160'
%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
= 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"
2014-09-02 18:07:02 +05:30
2016-06-02 11:05:42 +05:30
= 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-08-24 12:49:21 +05:30
.form-group
.col-sm-offset-2.col-sm-10
= render 'shared/allow_request_access', form: f
2016-09-29 09:46:39 +05:30
= render 'group_lfs_settings', f: f
2016-06-02 11:05:42 +05:30
.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
2015-04-26 12:48:37 +05:30
.form-actions
= f.submit 'Save group', class: "btn btn-save"
2014-09-02 18:07:02 +05:30
2015-04-26 12:48:37 +05:30
.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!
2014-09-02 18:07:02 +05:30
2015-12-23 02:04:40 +05:30
.form-actions
= link_to 'Remove Group', @group, data: {confirm: 'Removed group can not be restored! Are you sure?'}, method: :delete, class: "btn btn-remove"