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|
2016-04-04 21:25:38 -04:00
= form_errors(@key)
2011-10-08 17:36:38 -04:00
2013-12-30 18:27:02 -05:00
.form-group
2018-07-19 18:11:31 -04:00
= f.label :key, class: 'label-bold'
2018-06-25 04:30:12 -04:00
%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.")
2018-06-11 18:58:06 -04:00
= 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-rsa …"')
2015-07-29 15:59:50 -04:00
.form-group
2018-07-19 18:11:31 -04:00
= f.label :title, class: 'label-bold'
2018-06-11 18:58:06 -04:00
= f.text_field :title, class: "form-control input-lg qa-key-title-field", required: true, placeholder: s_('Profiles|e.g. My MacBook key')
2018-06-25 04:30:12 -04:00
%p.form-text.text-muted= _('Name your individual key via a title')
2012-08-21 20:56:53 -04:00
2018-07-06 10:36:02 -04:00
.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?")
2018-09-18 05:58:22 -04:00
%button.btn.btn-success.js-add-ssh-key-validation-confirm-submit= _("Yes, add it")
2018-07-06 10:36:02 -04:00
2016-02-29 12:19:00 -05:00
.prepend-top-default
2018-09-18 05:58:22 -04:00
= f.submit s_('Profiles|Add key'), class: "btn btn-success js-add-ssh-key-validation-original-submit qa-add-key-button"