Skip to content
代码片段 群组 项目
未验证 提交 7404cf0e 编辑于 作者: Savas Vedova's avatar Savas Vedova 提交者: GitLab
浏览文件

Merge branch 'admin-edit-group-cleanup' into 'master'

Migrate Admin group edit page to use SettingsSection component

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167900



Merged-by: default avatarSavas Vedova <svedova@gitlab.com>
Approved-by: default avatarJulia Miocene <jmiocene@gitlab.com>
Approved-by: default avatarKev Kloss <kkloss@gitlab.com>
Approved-by: default avatarSavas Vedova <svedova@gitlab.com>
Reviewed-by: default avatarSavas Vedova <svedova@gitlab.com>
Co-authored-by: default avatarSascha Eggenberger <seggenberger@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -42,7 +42,7 @@
.settings-section,
.settings-section-no-bottom ~ .settings-section {
padding-top: 0 !important;
padding-top: 0;
}
// Fix for sticky header when there is no search bar.
......@@ -50,12 +50,9 @@
padding-top: $gl-spacing-scale-3;
}
.settings-section ~ .settings-section {
padding-top: $gl-spacing-scale-6;
}
.settings-section:not(.settings-section-no-bottom) ~ .settings-section {
@include gl-border-t;
padding-top: $gl-spacing-scale-6;
}
.settings-section-no-bottom::after {
......
= gitlab_ui_form_for [:admin, @group] do |f|
= form_errors(@group)
= render ::Layouts::HorizontalSectionComponent.new(options: { class: 'gl-pb-5 gl-mb-6' }) do |c|
- c.with_title { _('Naming, visibility') }
= render ::Layouts::SettingsSectionComponent.new(_('Naming, visibility')) do |c|
- c.with_description do
= _('Update your group name, description, avatar, and visibility.')
= link_to _('Learn more about groups.'), help_page_path('user/group/index.md')
......@@ -13,8 +13,7 @@
= render 'shared/choose_avatar_button', f: f
= render 'shared/visibility_level', f: f, visibility_level: visibility_level, can_change_visibility_level: can_change_group_visibility_level?(@group), form_model: @group, with_label: false
= render ::Layouts::HorizontalSectionComponent.new(options: { class: 'gl-pb-3 gl-mb-6' }) do |c|
- c.with_title { _('Permissions and group features') }
= render ::Layouts::SettingsSectionComponent.new(_('Permissions and group features')) do |c|
- c.with_description do
= _('Configure advanced permissions, Large File Storage, two-factor authentication, and CI/CD settings.')
- c.with_body do
......@@ -25,8 +24,7 @@
= render 'groups/group_admin_settings', f: f
= render_if_exists 'namespaces/shared_runners_minutes_settings', group: @group, form: f
= render ::Layouts::HorizontalSectionComponent.new(border: false, options: { class: 'gl-pb-3' }) do |c|
- c.with_title { _('Admin notes') }
= render ::Layouts::SettingsSectionComponent.new(_('Admin notes')) do |c|
- c.with_body do
= render 'shared/admin/admin_note_form', f: f
......@@ -34,13 +32,13 @@
= render Pajamas::AlertComponent.new(dismissible: false) do |c|
- c.with_body do
= render 'shared/group_tips'
.gl-mt-5
.settings-sticky-footer.gl-flex.gl-gap-3
= f.submit _('Create group'), pajamas_button: true
= render Pajamas::ButtonComponent.new(href: admin_groups_path) do
= _('Cancel')
- else
.gl-mt-5
.settings-sticky-footer.gl-flex.gl-gap-3
= f.submit _('Save changes'), data: { testid: 'save-changes-button' }, pajamas_button: true
= render Pajamas::ButtonComponent.new(href: admin_group_path(@group)) do
= _('Cancel')
......@@ -3,6 +3,5 @@
- breadcrumb_title _("Edit")
- page_title _("Edit"), @group.name, _("Groups")
%h1.page-title.gl-text-size-h-display= _('Edit group: %{group_name}') % { group_name: @group.name }
%hr
= render ::Layouts::PageHeadingComponent.new(_('Edit group: %{group_name}') % { group_name: @group.name })
= render 'form', visibility_level: @group.visibility_level
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册