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