2020-07-27 12:09:50 +00:00
|
|
|
= form_for [@project.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
|
2018-07-19 22:11:31 +00:00
|
|
|
= f.label :title, class: "label-bold"
|
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
|
2018-07-19 22:11:31 +00:00
|
|
|
= f.label :key, class: "label-bold"
|
2016-04-25 15:26:41 +00:00
|
|
|
= f.text_area :key, class: "form-control", rows: 5, required: true
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2020-05-25 06:08:38 +00:00
|
|
|
%p.light.gl-mb-0
|
2020-05-05 12:09:31 +00:00
|
|
|
= _('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
|
2020-05-05 12:09:31 +00:00
|
|
|
%strong= _('Write access allowed')
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2020-05-25 06:08:38 +00:00
|
|
|
%p.light.gl-mb-0
|
2020-05-05 12:09:31 +00:00
|
|
|
= _('Allow this key to push to repository as well? (Default only allows pull access.)')
|
2016-08-14 17:49:08 +00:00
|
|
|
|
2020-09-23 21:09:28 +00:00
|
|
|
.form-group.row
|
2020-08-10 09:09:54 +00:00
|
|
|
= f.submit _("Add key"), class: "btn-success btn"
|