blob: 8baed48bc001558f23a9ddb4069ecf60c5cf1960 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
%div
= form_for [:profile, @key], html: { class: 'js-requires-input' } do |f|
= form_errors(@key)
.form-group
= f.label :key, class: 'label-light'
%p= _("Paste your public SSH key, which is usually contained in the file '~/.ssh/id_rsa.pub' and begins with 'ssh-rsa'. Don't use your private SSH key.")
= f.text_area :key, class: "form-control", rows: 8, required: true, placeholder: 'Typically starts with "ssh-rsa …"'
.form-group
= f.label :title, class: 'label-light'
%p.form-text.text-muted.mb-3= _('Name your individual key via a title')
= f.text_field :title, class: "form-control", required: true, placeholder: 'e.g. My MacBook key'
.prepend-top-default
= f.submit 'Add key', class: "btn btn-create"
|