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

36 lines
2.1 KiB
Text
Raw Normal View History

2022-08-13 15:12:31 +05:30
= gitlab_ui_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' }
2022-10-11 01:57:18 +05:30
= form_errors(@group)
2018-11-08 19:23:39 +05:30
%fieldset
.row
2018-12-13 13:39:08 +05:30
.form-group.col-md-5
2022-04-04 11:22:00 +05:30
= f.label :name, s_('Groups|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' }
2022-04-04 11:22:00 +05:30
.text-muted
= s_('Groups|Must start with letter, digit, emoji, or underscore. Can also contain periods, dashes, spaces, and parentheses.')
2018-11-08 19:23:39 +05:30
2018-12-13 13:39:08 +05:30
.form-group.col-md-7
2022-04-04 11:22:00 +05:30
= f.label :id, s_('Groups|Group ID'), class: 'label-bold'
2018-12-13 13:39:08 +05:30
= 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
2022-04-04 11:22:00 +05:30
= f.label :description, s_('Groups|Group description (optional)'), class: 'label-bold'
2018-12-13 13:39:08 +05:30
= f.text_area :description, class: 'form-control', rows: 3, maxlength: 250
2018-11-08 19:23:39 +05:30
2022-04-04 11:22:00 +05:30
= render 'shared/repository_size_limit_setting_registration_features_cta', form: f
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')
2022-04-04 11:22:00 +05:30
= f.label :avatar, s_('Groups|Group avatar'), class: 'label-bold d-block'
2019-09-04 21:01:54 +05:30
= render 'shared/choose_avatar_button', f: f
- if @group.avatar?
%hr
2022-04-04 11:22:00 +05:30
= link_to s_('Groups|Remove avatar'), group_avatar_path(@group.to_param), aria: { label: s_('Groups|Remove avatar') }, data: { confirm: s_('Groups|Avatar will be removed. Are you sure?'), 'confirm-btn-variant': 'danger' }, method: :delete, class: 'gl-button btn btn-danger-secondary'
2022-08-13 15:12:31 +05:30
.form-group.gl-form-group
= render 'shared/visibility_level', f: f, visibility_level: @group.visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group
= f.submit s_('Groups|Save changes'), class: 'btn gl-button btn-confirm js-dirty-submit', data: { qa_selector: 'save_name_visibility_settings_button' }