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

    .form-group
      = f.label :key, class: 'label-bold'
      = f.text_area :key, class: "form-control", rows: 8, required: true, placeholder: "Don't paste the private part of the GPG key. Paste the public part which begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'."

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