debian-mirror-gitlab/app/views/groups/settings/_general.html.haml

33 lines
1.7 KiB
Text
Raw Normal View History

2018-12-13 13:39:08 +05:30
= form_for @group, html: { multipart: true, class: 'gl-show-field-errors js-general-settings-form' }, authenticity_token: true do |f|
2018-11-20 20:47:30 +05:30
%input{ type: 'hidden', name: 'update_section', value: 'js-general-settings' }
2018-11-08 19:23:39 +05:30
= form_errors(@group)
%fieldset
.row
2018-12-13 13:39:08 +05:30
.form-group.col-md-5
= f.label :name, _('Group name'), class: 'label-bold'
2019-12-04 20:38:33 +05:30
= f.text_field :name, class: 'form-control', data: { qa_selector: 'group_name_field' }
2018-11-08 19:23:39 +05:30
2018-12-13 13:39:08 +05:30
.form-group.col-md-7
= f.label :id, _('Group ID'), class: 'label-bold'
= f.text_field :id, class: 'form-control w-auto', readonly: true
2018-11-08 19:23:39 +05:30
2020-06-23 00:09:42 +05:30
.row.gl-mt-3
2019-09-30 21:07:59 +05:30
.form-group.col-md-9
2018-12-13 13:39:08 +05:30
= f.label :description, _('Group description (optional)'), class: 'label-bold'
= f.text_area :description, class: 'form-control', rows: 3, maxlength: 250
2018-11-08 19:23:39 +05:30
2019-09-04 21:01:54 +05:30
= render_if_exists 'shared/repository_size_limit_setting', form: f, type: :group
2018-11-08 19:23:39 +05:30
2020-10-24 23:57:45 +05:30
.form-group.gl-mt-3.gl-mb-6
2019-09-04 21:01:54 +05:30
.avatar-container.rect-avatar.s90
= group_icon(@group, alt: '', class: 'avatar group-avatar s90')
= f.label :avatar, _('Group avatar'), class: 'label-bold d-block'
= render 'shared/choose_avatar_button', f: f
- if @group.avatar?
%hr
2021-04-29 21:17:54 +05:30
= link_to _('Remove avatar'), group_avatar_path(@group.to_param), data: { confirm: _('Avatar will be removed. Are you sure?')}, method: :delete, class: 'gl-button btn btn-danger-secondary'
2018-11-08 19:23:39 +05:30
2019-09-04 21:01:54 +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
2021-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: 'btn gl-button btn-confirm mt-4 js-dirty-submit', data: { qa_selector: 'save_name_visibility_settings_button' }