Commit 1d713d6f authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch '358345-migrate-checkbox' into 'master'

Migrate checkbox to GitLab UI component

See merge request gitlab-org/gitlab!84817
parents 1ad3a6c5 20be2218
= form_for [@project.namespace, @project, @deploy_keys.new_key], url: namespace_project_deploy_keys_path, html: { class: "js-requires-input container" } do |f| = gitlab_ui_form_for [@project.namespace, @project, @deploy_keys.new_key], url: namespace_project_deploy_keys_path, html: { class: "js-requires-input container" } do |f|
= form_errors(@deploy_keys.new_key) = form_errors(@deploy_keys.new_key)
.form-group.row .form-group.row
= f.label :title, class: "label-bold" = f.label :title, class: "label-bold"
...@@ -13,12 +13,8 @@ ...@@ -13,12 +13,8 @@
= f.fields_for :deploy_keys_projects do |deploy_keys_project_form| = f.fields_for :deploy_keys_projects do |deploy_keys_project_form|
.form-group.row .form-group.row
= deploy_keys_project_form.label :can_push do = deploy_keys_project_form.gitlab_ui_checkbox_component :can_push, _('Grant write permissions to this key'),
= deploy_keys_project_form.check_box :can_push help_text: _('Allow this key to push to this repository')
%strong= _('Grant write permissions to this key')
.form-group.row
%p.light.gl-mb-0
= _('Allow this key to push to this repository')
.form-group.row .form-group.row
= f.submit _("Add key"), class: "btn gl-button btn-confirm", data: { qa_selector: "add_deploy_key_button"} = f.submit _("Add key"), class: "btn gl-button btn-confirm", data: { qa_selector: "add_deploy_key_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