summaryrefslogtreecommitdiff
path: root/app/views/profiles/keys/_form.html.haml
blob: 6ea358d9f63c8d91fc16d1a352bde57c508f32f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%div
  = form_for [:profile, @key], html: { class: 'js-requires-input' } do |f|
    = form_errors(@key)

    .form-group
      = 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'."
    .form-group
      = f.label :title, class: 'label-light'
      = f.text_field :title, class: "form-control", required: true

    .prepend-top-default
      = f.submit 'Add key', class: "btn btn-create"