Sha256: 53db26479531e7c758284982217d6c4e20ba1500f97e78b440c881bad858d592

Contents?: true

Size: 902 Bytes

Versions: 3

Compression:

Stored size: 902 Bytes

Contents

- input_html = defined?(input_class) ? { :class => input_class } : {}

= semantic_form_for key, :html => {:class => 'form-horizontal'} do |f|
  = f.semantic_errors
  = f.inputs do
    = f.input :name, :label => 'Key name', :input_html => {:placeholder => 'A name for your key'}
    = f.input :raw_content, 
              :as => :text, 
              :label => 'Paste the contents of your public key file', 
              :input_html => input_html.merge({:placeholder => 'The contents of your public key file', :title => "Your SSH key will start with a short prefix that describes its type, followed by a long string of numbers and characters.  Some keys have a bit of text at the end to describe who generated the key. Example:\n\nssh-rsa AAAAB3NzaC1yc....HcLJ bob@smith"})
  = f.buttons do
    = link_to "Cancel", account_path, :class => 'btn'
    = f.commit_button :label => 'Create'
    = f.loading

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openshift-origin-console-1.3.4 app/views/keys/_form.html.haml
openshift-origin-console-1.3.3 app/views/keys/_form.html.haml
openshift-origin-console-1.3.2 app/views/keys/_form.html.haml