gitlabhq/app/views/deploy_keys/_form.html.haml

19 lines
496 B
Plaintext
Raw Normal View History

2011-12-29 20:44:16 +01:00
%div
2012-01-17 23:46:13 +01:00
= form_for [@project, @key], :url => project_deploy_keys_path do |f|
2011-12-29 20:44:16 +01:00
-if @key.errors.any?
2012-01-17 23:46:13 +01:00
%ul.errors_holder
2011-12-29 20:44:16 +01:00
- @key.errors.full_messages.each do |msg|
%li= msg
2012-01-17 23:46:13 +01:00
%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
2011-12-29 20:44:16 +01:00
= f.submit 'Save', :class => "grey-button"