%div{ :'data-role' => :content, :'data-theme' => 'c', :class => 'middle-dialog'}
%orm{ :action => url_for('/instances/%s/run' % instance.id), :method => :post } % %abel{ :for => :cmd } Desired command: %nput{ :name => :cmd, :value => "", :type => :text} % %ieldset{ :'data-role' => :fieldcontain} %egend Target instance IP address: - (instance.public_addresses | instance.private_addresses).each_with_index do |ip, idx| %abel{ :for => ip.address }= "#{ip.address}" %nput{ :name => :ip, :value => ip.address, :id => ip.address, :type => :radio, :'data-theme' => 'b', :checked => idx == 0 || nil}/ % %abel{ :for => :port } Target port: %nput{ :name => "port", :size => 5, :value => "22", :type => :text} % %abel{ :for => :private_key } Private key: % %sall Leave private key blank if using password authentication method % %extarea{ :name => :private_key, :cols => 65, :rows => 20 } % %nput{ :type => :submit, :value => "Execute" }