Commit 35468b67 authored by Peter Hegman's avatar Peter Hegman

Merge branch 'afontaine/group-autodevops-pajamas' into 'master'

Migrate group auto devops form to GitLab UI

See merge request gitlab-org/gitlab!84750
parents 79c59bed bc2ccb66
= form_for group, url: update_auto_devops_group_settings_ci_cd_path(group), method: :patch do |f| = gitlab_ui_form_for group, url: update_auto_devops_group_settings_ci_cd_path(group), method: :patch do |f|
= form_errors(group) = form_errors(group)
%fieldset %fieldset
.form-group .form-group
.card.auto-devops-card .card.auto-devops-card
.card-body .card-body
.form-check - learn_more_link = link_to _('Learn more.'), help_page_path('topics/autodevops/index.md'), target: '_blank', rel: 'noopener noreferrer'
= f.check_box :auto_devops_enabled, class: 'form-check-input', checked: group.auto_devops_enabled? - help_text = s_('GroupSettings|The Auto DevOps pipeline runs if no alternative CI configuration file is found.')
= f.label :auto_devops_enabled, class: 'form-check-label' do - badge = gl_badge_tag badge_for_auto_devops_scope(group), variant: :info
%strong= s_('GroupSettings|Default to Auto DevOps pipeline for all projects within this group') - label = s_('GroupSettings|Default to Auto DevOps pipeline for all projects within this group')
= gl_badge_tag badge_for_auto_devops_scope(group), variant: :info = f.gitlab_ui_checkbox_component :auto_devops_enabled,
.form-text.text-muted '%{label} %{badge}'.html_safe % { label: label, badge: badge.html_safe },
= s_('GroupSettings|The Auto DevOps pipeline runs if no alternative CI configuration file is found.') help_text: '%{help_text} %{learn_more_link}'.html_safe % { help_text: help_text, learn_more_link: learn_more_link },
= link_to _('Learn more.'), help_page_path('topics/autodevops/index.md'), target: '_blank', rel: 'noopener noreferrer' checkbox_options: { checked: group.auto_devops_enabled? }
= f.submit _('Save changes'), class: 'btn gl-button btn-confirm gl-mt-5' = f.submit _('Save changes'), class: 'btn gl-button btn-confirm gl-mt-5'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment