gitlab-org--gitlab-foss/app/views/profiles/keys/_form.html.haml

14 lines
613 B
Text
Raw Normal View History

2011-10-08 17:36:38 -04:00
%div
2016-02-29 12:19:00 -05:00
= form_for [:profile, @key], html: { class: 'js-requires-input' } do |f|
= form_errors(@key)
2011-10-08 17:36:38 -04:00
.form-group
2016-02-29 12:19:00 -05:00
= f.label :key, class: 'label-light'
= f.text_area :key, class: "form-control", rows: 8, required: true, placeholder: "Don't paste the private part of the SSH key. Paste the public part, which is usually contained in the file '~/.ssh/id_rsa.pub' and begins with 'ssh-rsa'."
2015-07-29 15:59:50 -04:00
.form-group
2016-02-29 12:19:00 -05:00
= f.label :title, class: 'label-light'
= f.text_field :title, class: "form-control", required: true
2016-02-29 12:19:00 -05:00
.prepend-top-default
2013-06-24 12:25:10 -04:00
= f.submit 'Add key', class: "btn btn-create"