Commit a20f106e authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch '336699-Migrate-auto-rollback-checkbox-to-gitlab_ui_checkbox_component' into 'master'

Migrate auto rollback checkbox to gitlab_ui_checkbox_component

See merge request gitlab-org/gitlab!66782
parents 40a0fa5d 979cfa4b
...@@ -11,18 +11,17 @@ ...@@ -11,18 +11,17 @@
.settings-content .settings-content
.row .row
.col-lg-12 .col-lg-12
= form_for @project, url: project_settings_ci_cd_path(@project, anchor: 'auto-rollback-settings') do |f| = gitlab_ui_form_for @project, url: project_settings_ci_cd_path(@project, anchor: 'auto-rollback-settings') do |f|
= form_errors(@project) = form_errors(@project)
%fieldset.builds-feature %fieldset.builds-feature
.gl-form-group.form-group .gl-form-group.form-group
.card .card
.card-body .card-body
.gl-form.form-check .gl-form.form-check
= f.check_box :auto_rollback_enabled, class: 'gl-form-checkbox form-check-input' - help_text = s_('AutoRollback|Automatic rollbacks start when a critical alert is triggered. If the last successful deployment fails to roll back automatically, it can still be done manually.')
= f.label :auto_rollback_enabled, class: 'form-check-label col-form-label' do - more_info_link = link_to(_('More information'), help_page_path('ci/environments/index.md', anchor: 'auto-rollback'), target: '_blank', rel: 'noopener noreferrer')
= s_('AutoRollback|Enable automatic rollbacks') = f.gitlab_ui_checkbox_component :auto_rollback_enabled,
%small.form-text.text-gl-muted s_('AutoRollback|Enable automatic rollbacks'),
= s_('AutoRollback|Automatic rollbacks start when a critical alert is triggered. If the last successful deployment fails to roll back automatically, it can still be done manually.') help_text: '%{help_text} %{more_info_link}'.html_safe % { help_text: help_text, more_info_link: more_info_link }
= link_to _('More information'), help_page_path('ci/environments/index.md', anchor: 'auto-rollback'), target: '_blank'
= f.submit _('Save changes'), class: "gl-button btn btn-confirm gl-mt-5", data: { qa_selector: 'save_changes_button' } = f.submit _('Save changes'), class: "gl-button btn btn-confirm gl-mt-5", data: { qa_selector: 'save_changes_button' }
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