2012-07-13 12:18:12 +01:00
|
|
|
= render 'platforms/base/sidebar'
|
|
|
|
|
|
|
|
%h3= t("layout.key_pairs.header")
|
|
|
|
|
|
|
|
= form_for :key_pair, :url => platform_key_pairs_path(@platform), :method => :post, :html => { :class => :form } do |f|
|
|
|
|
.leftlist= f.label :public, t("activerecord.attributes.key_pair.public"), :class => :label
|
2012-07-30 20:07:49 +01:00
|
|
|
.rightlist= f.text_area :public, :class => 'text_field resizable', :cols => 80
|
2012-07-13 12:18:12 +01:00
|
|
|
.both
|
|
|
|
.leftlist= f.label :secret, t("activerecord.attributes.key_pair.secret"), :class => :label
|
2012-07-30 20:07:49 +01:00
|
|
|
.rightlist= f.text_area :secret, :class => 'text_field resizable', :cols => 80
|
2012-07-13 12:18:12 +01:00
|
|
|
.both
|
|
|
|
.leftlist= f.label :repository_id, t("activerecord.attributes.key_pair.repository_id"), :class => :label
|
|
|
|
.rightlist= f.select :repository_id, options_from_collection_for_select(@platform.repositories, 'id', 'name')
|
|
|
|
.both
|
|
|
|
|
|
|
|
.button_block
|
|
|
|
= submit_tag t("layout.save")
|