2018-05-23 15:48:51 +00:00
|
|
|
= 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|
|
2017-01-31 14:12:02 +00:00
|
|
|
= form_errors(@deploy_keys.new_key)
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2016-04-25 15:26:41 +00:00
|
|
|
= f.label :title, class: "label-light"
|
2017-06-07 08:11:44 +00:00
|
|
|
= f.text_field :title, class: 'form-control', required: true
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2016-04-25 15:26:41 +00:00
|
|
|
= f.label :key, class: "label-light"
|
|
|
|
= f.text_area :key, class: "form-control", rows: 5, required: true
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2016-04-25 15:26:41 +00:00
|
|
|
%p.light.append-bottom-0
|
|
|
|
Paste a machine public key here. Read more about how to generate it
|
2016-05-16 22:06:26 +00:00
|
|
|
= link_to "here", help_page_path("ssh/README")
|
2018-01-05 15:23:44 +00:00
|
|
|
|
|
|
|
= f.fields_for :deploy_keys_projects do |deploy_keys_project_form|
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2018-05-23 15:48:51 +00:00
|
|
|
= deploy_keys_project_form.label :can_push do
|
|
|
|
= deploy_keys_project_form.check_box :can_push
|
|
|
|
%strong Write access allowed
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2018-01-05 15:23:44 +00:00
|
|
|
%p.light.append-bottom-0
|
|
|
|
Allow this key to push to repository as well? (Default only allows pull access.)
|
2016-08-14 17:49:08 +00:00
|
|
|
|
2018-05-23 15:48:51 +00:00
|
|
|
.form-group.row
|
|
|
|
= f.submit "Add key", class: "btn-create btn"
|