debian-mirror-gitlab/app/views/profiles/keys/_form.html.haml

14 lines
613 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
%div
2016-06-02 11:05:42 +05:30
= form_for [:profile, @key], html: { class: 'js-requires-input' } do |f|
= form_errors(@key)
2014-09-02 18:07:02 +05:30
.form-group
2016-06-02 11:05:42 +05:30
= f.label :key, class: 'label-light'
2016-08-24 12:49:21 +05:30
= 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-09-11 14:41:01 +05:30
.form-group
2016-06-02 11:05:42 +05:30
= f.label :title, class: 'label-light'
= f.text_field :title, class: "form-control", required: true
2014-09-02 18:07:02 +05:30
2016-06-02 11:05:42 +05:30
.prepend-top-default
2014-09-02 18:07:02 +05:30
= f.submit 'Add key', class: "btn btn-create"