2011-12-29 14:44:16 -05:00
|
|
|
%div
|
2015-01-24 13:02:58 -05:00
|
|
|
= form_for [@project.namespace.becomes(Namespace), @project, @key], url: namespace_project_deploy_keys_path, html: { class: 'deploy-key-form form-horizontal' } do |f|
|
2011-12-29 14:44:16 -05:00
|
|
|
-if @key.errors.any?
|
2013-12-31 09:34:14 -05:00
|
|
|
.alert.alert-danger
|
2012-01-28 05:40:17 -05:00
|
|
|
%ul
|
|
|
|
- @key.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group
|
2014-01-02 06:32:27 -05:00
|
|
|
= f.label :title, class: "control-label"
|
2014-01-01 15:11:18 -05:00
|
|
|
.col-sm-10= f.text_field :title, class: 'form-control'
|
2013-12-30 18:27:02 -05:00
|
|
|
.form-group
|
2014-01-02 06:32:27 -05:00
|
|
|
= f.label :key, class: "control-label"
|
2013-12-30 18:27:02 -05:00
|
|
|
.col-sm-10
|
2013-08-08 04:57:34 -04:00
|
|
|
%p.light
|
2013-08-15 14:19:29 -04:00
|
|
|
Paste a machine public key here. Read more about how to generate it
|
2014-05-28 09:58:02 -04:00
|
|
|
= link_to "here", help_page_path("ssh", "README")
|
2014-01-02 06:32:27 -05:00
|
|
|
= f.text_area :key, class: "form-control thin_area", rows: 5
|
2012-09-05 01:56:59 -04:00
|
|
|
|
2013-08-07 16:35:24 -04:00
|
|
|
.form-actions
|
2013-05-06 08:10:55 -04:00
|
|
|
= f.submit 'Create', class: "btn-create btn"
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to "Cancel", namespace_project_deploy_keys_path(@project.namespace, @project), class: "btn btn-cancel"
|
2011-12-29 14:44:16 -05:00
|
|
|
|