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|
|
2013-06-24 15:24:14 +00:00
|
|
|
- if @key.errors.any?
|
2013-12-31 14:34:14 +00:00
|
|
|
.alert.alert-danger
|
2012-01-29 21:59:12 +00:00
|
|
|
%ul
|
|
|
|
- @key.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
2011-10-08 21:36:38 +00:00
|
|
|
|
2013-12-30 23:27:02 +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
|
2012-08-22 00:56:53 +00:00
|
|
|
|
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"
|