Commit 923e081b authored by Clement Ho's avatar Clement Ho

Fix deploy keys form

parent 3905cdfe
= form_for [@project.namespace.becomes(Namespace), @project, @deploy_keys.new_key], url: namespace_project_deploy_keys_path, html: { class: "js-requires-input" } do |f|
= form_for [@project.namespace.becomes(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-group.row
= f.label :title, class: "label-light"
......@@ -13,7 +13,6 @@
= f.fields_for :deploy_keys_projects do |deploy_keys_project_form|
.form-group.row
.form-check
= deploy_keys_project_form.label :can_push do
= deploy_keys_project_form.check_box :can_push
%strong Write access allowed
......@@ -21,4 +20,5 @@
%p.light.append-bottom-0
Allow this key to push to repository as well? (Default only allows pull access.)
.form-group.row
= f.submit "Add key", class: "btn-create btn"
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