2018-11-08 19:23:39 +05:30
|
|
|
= form_for @group, html: { multipart: true, class: 'gl-show-field-errors' }, authenticity_token: true do |f|
|
|
|
|
= form_errors(@group)
|
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.row
|
|
|
|
.form-group.col-md-9
|
2018-11-18 11:00:15 +05:30
|
|
|
= f.label :name, class: 'label-bold' do
|
2018-11-08 19:23:39 +05:30
|
|
|
Group name
|
|
|
|
= f.text_field :name, class: 'form-control'
|
|
|
|
|
|
|
|
.form-group.col-md-3
|
2018-11-18 11:00:15 +05:30
|
|
|
= f.label :id, class: 'label-bold' do
|
2018-11-08 19:23:39 +05:30
|
|
|
Group ID
|
|
|
|
= f.text_field :id, class: 'form-control', readonly: true
|
|
|
|
|
|
|
|
.form-group
|
2018-11-18 11:00:15 +05:30
|
|
|
= f.label :description, class: 'label-bold' do
|
2018-11-08 19:23:39 +05:30
|
|
|
Group description
|
|
|
|
%span.light (optional)
|
|
|
|
= f.text_area :description, class: 'form-control', rows: 3, maxlength: 250
|
|
|
|
|
|
|
|
= render_if_exists 'shared/repository_size_limit_setting', form: f, type: :group
|
|
|
|
|
|
|
|
.form-group.row
|
|
|
|
.col-sm-12
|
|
|
|
.avatar-container.s160
|
|
|
|
= group_icon(@group, alt: '', class: 'avatar group-avatar s160')
|
|
|
|
%p.light
|
|
|
|
- if @group.avatar?
|
|
|
|
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
|
|
|
|
= 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'
|
|
|
|
|
|
|
|
= f.submit 'Save group', class: 'btn btn-success'
|