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

18 lines
556 B
Plaintext
Raw Normal View History

2011-10-08 21:36:38 +00:00
%div
2016-02-29 17:19:00 +00:00
= 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
2011-10-08 21:36:38 +00:00
.form-group
2016-02-29 17:19:00 +00:00
= f.label :key, class: 'label-light'
= f.text_area :key, class: "form-control", rows: 8, required: true
2015-07-29 19:59:50 +00:00
.form-group
2016-02-29 17:19:00 +00:00
= f.label :title, class: 'label-light'
= f.text_field :title, class: "form-control", required: true
2016-02-29 17:19:00 +00:00
.prepend-top-default
2013-06-24 16:25:10 +00:00
= f.submit 'Add key', class: "btn btn-create"