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

20 lines
684 B
Text
Raw Normal View History

2011-10-08 17:36:38 -04:00
%div
= form_for [:profile, @key], html: { class: 'form-horizontal 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 17:36:38 -04:00
.form-group
= f.label :key, class: 'control-label'
.col-sm-10
= f.text_area :key, class: "form-control", rows: 8, autofocus: true, required: true
2015-07-29 15:59:50 -04:00
.form-group
= f.label :title, class: 'control-label'
.col-sm-10= f.text_field :title, class: "form-control", required: true
2013-08-07 16:35:24 -04:00
.form-actions
2013-06-24 12:25:10 -04:00
= f.submit 'Add key', class: "btn btn-create"
= link_to "Cancel", profile_keys_path, class: "btn btn-cancel"