2015-09-14 13:46:58 -04:00
|
|
|
- header_title group_title(@group, "Settings", edit_group_path(@group))
|
2015-09-09 17:38:27 -04:00
|
|
|
- @blank_container = true
|
2015-09-14 13:46:58 -04:00
|
|
|
|
2014-12-16 09:58:15 -05:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
%strong= @group.name
|
|
|
|
group settings:
|
|
|
|
.panel-body
|
|
|
|
= form_for @group, html: { multipart: true, class: "form-horizontal" }, authenticity_token: true do |f|
|
|
|
|
- if @group.errors.any?
|
|
|
|
.alert.alert-danger
|
|
|
|
%span= @group.errors.full_messages.first
|
|
|
|
= 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
|
2015-03-12 16:56:53 -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
|
|
|
|
2015-11-05 05:38:00 -05:00
|
|
|
.form-group
|
|
|
|
%hr
|
|
|
|
= f.label :public, class: 'control-label' do
|
|
|
|
Public
|
|
|
|
.col-sm-10
|
|
|
|
.checkbox
|
|
|
|
= f.check_box :public
|
|
|
|
%span.descr Make this group public (even if there is no any public project inside this group)
|
|
|
|
|
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
|
|
|
|
%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
|
|
|
|
2014-12-16 09:58:15 -05:00
|
|
|
= link_to 'Remove Group', @group, data: {confirm: 'Removed group can not be restored! Are you sure?'}, method: :delete, class: "btn btn-remove"
|