debian-mirror-gitlab/app/views/profiles/keys/_form.html.haml

23 lines
1.3 KiB
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
%div
2016-06-02 11:05:42 +05:30
= form_for [:profile, @key], html: { class: 'js-requires-input' } do |f|
= form_errors(@key)
2014-09-02 18:07:02 +05:30
.form-group
2018-11-18 11:00:15 +05:30
= f.label :key, class: 'label-bold'
2018-11-08 19:23:39 +05:30
%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-12-05 23:21:45 +05:30
= 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-09-11 14:41:01 +05:30
.form-group
2018-11-18 11:00:15 +05:30
= f.label :title, class: 'label-bold'
2018-12-05 23:21:45 +05:30
= f.text_field :title, class: "form-control input-lg qa-key-title-field", required: true, placeholder: s_('Profiles|e.g. My MacBook key')
2018-11-08 19:23:39 +05:30
%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?")
2018-12-05 23:21:45 +05:30
%button.btn.btn-success.js-add-ssh-key-validation-confirm-submit= _("Yes, add it")
2014-09-02 18:07:02 +05:30
2016-06-02 11:05:42 +05:30
.prepend-top-default
2018-12-05 23:21:45 +05:30
= f.submit s_('Profiles|Add key'), class: "btn btn-success js-add-ssh-key-validation-original-submit qa-add-key-button"