gitlab-org--gitlab-foss/app/views/profiles/keys/_form.html.haml
Phil Hughes 1efe105415 SSH keys settings
Closes #13860
2016-03-03 16:13:55 -05:00

17 lines
556 B
Text

%div
= form_for [:profile, @key], html: { class: 'js-requires-input' } do |f|
- if @key.errors.any?
.alert.alert-danger
%ul
- @key.errors.full_messages.each do |msg|
%li= msg
.form-group
= f.label :key, class: 'label-light'
= f.text_area :key, class: "form-control", rows: 8, required: true
.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"