2011-10-08 23:36:38 +02:00
|
|
|
%div
|
|
|
|
= form_for @key, :remote => true do |f|
|
|
|
|
-if @key.errors.any?
|
|
|
|
%ul
|
|
|
|
- @key.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2011-11-07 19:37:32 +01:00
|
|
|
.form-row
|
2011-10-08 23:36:38 +02:00
|
|
|
= f.label :title
|
|
|
|
= f.text_field :title, :style => "width:300px"
|
2011-11-07 19:37:32 +01:00
|
|
|
.form-row
|
2011-10-08 23:36:38 +02:00
|
|
|
= f.label :key
|
|
|
|
= f.text_area :key, :style => "width:300px; height:130px"
|
2011-11-07 19:37:32 +01:00
|
|
|
.form-row
|
2011-11-22 14:14:23 +01:00
|
|
|
= f.submit 'Save', :class => "grey-button"
|
2011-10-08 23:36:38 +02:00
|
|
|
|