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

23 lines
1.4 KiB
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
= f.label :key, s_('Profiles|Key'), class: 'label-bold'
2019-06-10 06:32:36 -04:00
%p= _("Paste your public SSH key, which is usually contained in the file '~/.ssh/id_ed25519.pub' or '~/.ssh/id_rsa.pub' and begins with 'ssh-ed25519' or 'ssh-rsa'. Don't use your private SSH key.")
= f.text_area :key, class: "form-control js-add-ssh-key-validation-input qa-key-public-key-field", rows: 8, required: true, placeholder: s_('Profiles|Typically starts with "ssh-ed25519 …" or "ssh-rsa …"')
2015-07-29 15:59:50 -04:00
.form-group
= f.label :title, _('Title'), class: 'label-bold'
= f.text_field :title, class: "form-control input-lg qa-key-title-field", required: true, placeholder: s_('Profiles|e.g. My MacBook key')
%p.form-text.text-muted= _('Name your individual key via a title')
.js-add-ssh-key-validation-warning.hide
.bs-callout.bs-callout-warning{ role: 'alert', aria_live: 'assertive' }
%strong= _('Oops, are you sure?')
%p= s_("Profiles|This doesn't look like a public SSH key, are you sure you want to add it?")
%button.btn.btn-success.js-add-ssh-key-validation-confirm-submit= _("Yes, add it")
2016-02-29 12:19:00 -05:00
.prepend-top-default
= f.submit s_('Profiles|Add key'), class: "btn btn-success js-add-ssh-key-validation-original-submit qa-add-key-button"