blob: 4d78215ed3c3bbd19b91da0ecea081437c4e0f1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
%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"
|