Sha256: dfe9ee2a406f458e3d410d6e35cde9b95a8b97056191320436703ee5967f1344

Contents?: true

Size: 1.95 KB

Versions: 21

Compression:

Stored size: 1.95 KB

Contents

%h1 New Instance

%h2= @image.id
%h3= @image.description

%form{ :action => instances_url, :method => :post }
  %input{ :name => :image_id, :type => :hidden, :value => @instance.image_id }/
  %p
    %label
      Instance Name:
      %input{ :name => 'name', :size => 30 }/
  -if driver_has_feature?(:authentication_key)
    %p
      %label
        Instance Keyname:
        %input{:name => 'keyname', :size => 30 }
  - if !@hardware_profiles.empty?
    %h3 What size machine?
    - for hwp in @hardware_profiles
      .radio-group
        %label{ :for => "hwp_id_#{hwp.name}" }
          %input{ :type => :radio, :name => 'hwp_id', :value => hwp.name }/
          = hwp.name
          %br/
          %span.radio-group-details
            - first = true
            - hwp.properties.select { |prop| prop.fixed? }.each do |prop|
              - unless first
                ,
              - first = false
              = format_hardware_property prop
          - hwp.properties.reject { |prop| prop.fixed? }.each do |prop|
            %span.radio-group-details
              %label{ :for => "#{prop.param}_#{hwp.name}" }
                = prop.name
              - if prop.kind == :enum
                %select{ :size => 1, :name => prop.param }
                  - for v in prop.values
                    %option= v
                = prop.unit
              - else
                %input{ :name => prop.param, :size => 10, :value => "#{prop.default}" }
                = prop.unit
                (value must be between #{prop.first} #{prop.unit} and #{prop.last} #{prop.unit})
  - if !@realms.empty?
    %h3 Where do you want it?
    - for realm in @realms
      .radio-group
        %label{ :for => "realm_id_#{realm.id}" }
          %input{ :type => :radio, :name => 'realm_id', :value => realm.id }/
          = realm.id
          %br/
          %span.radio-group-details
            = "#{realm.name}, #{realm.limit}"
  %input{ :type => :submit, :name => "commit", :value => "create" }/

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
deltacloud-core-0.0.9 views/instances/new.html.haml
steamcannon-deltacloud-core-0.0.8.1-java views/instances/new.html.haml
steamcannon-deltacloud-core-0.0.8.1 views/instances/new.html.haml
deltacloud-core-0.0.8 views/instances/new.html.haml
steamcannon-deltacloud-core-0.0.7.2 views/instances/new.html.haml
steamcannon-deltacloud-core-0.0.7.2-java views/instances/new.html.haml
steamcannon-deltacloud-core-0.0.7.1 views/instances/new.html.haml
steamcannon-deltacloud-core-0.0.7.1-java views/instances/new.html.haml
deltacloud-core-0.0.7 views/instances/new.html.haml
bbrowning-deltacloud-core-0.0.6.1-java views/instances/new.html.haml
bbrowning-deltacloud-core-0.0.6-java views/instances/new.html.haml
bbrowning-deltacloud-core-0.0.6 views/instances/new.html.haml
deltacloud-core-0.0.6 views/instances/new.html.haml
bbrowning-deltacloud-core-0.0.4 views/instances/new.html.haml
bbrowning-deltacloud-core-0.0.4-java views/instances/new.html.haml
deltacloud-core-0.0.5 views/instances/new.html.haml
deltacloud-core-0.0.4 views/instances/new.html.haml
bbrowning-deltacloud-core-0.0.3.1 views/instances/new.html.haml
bbrowning-deltacloud-core-0.0.1.1 views/instances/new.html.haml
deltacloud-core-0.0.3 views/instances/new.html.haml