deploy key creation restyled

This commit is contained in:
Dmitriy Zaporozhets 2012-01-18 00:46:13 +02:00
parent 809413d9e7
commit c9ea5f1316
10 changed files with 41 additions and 62 deletions

View file

@ -1,16 +1,18 @@
%div
= form_for [@project, @key], :url => project_deploy_keys_path, :remote => true do |f|
= form_for [@project, @key], :url => project_deploy_keys_path do |f|
-if @key.errors.any?
%ul
%ul.errors_holder
- @key.errors.full_messages.each do |msg|
%li= msg
.form-row
= f.label :title
= f.text_field :title, :style => "width:300px"
.form-row
= f.label :key
= f.text_area :key, :style => "width:300px; height:130px"
.form-row
%table.no-borders
%tr
%td= f.label :title
%td= f.text_field :title, :style => "width:300px"
%tr
%td= f.label :key
%td= f.text_area :key, :style => "width:300px; height:130px"
%br
.merge-tabs
= f.submit 'Save', :class => "grey-button"