Sha256: 28be6a711e15438e148e6f7a3e840d595bb1a2fa03b64e83df5fe439cadc6774

Contents?: true

Size: 856 Bytes

Versions: 5

Compression:

Stored size: 856 Bytes

Contents

<%= form_for [@compute_resource, @image] do |f| %>
  <%= base_errors_for @image %>
  <%= text_f   f, :name %>
  <%= f.hidden_field :compute_resource_id, :value => @compute_resource.id %>
  <%= select_f f, :operatingsystem_id, Operatingsystem.all, :id, :to_label %>
  <%= select_f f, :architecture_id, Architecture.all, :id, :to_label %>
  <%= text_f f, :username, :value => @image.username || "root", :help_inline => _("The user that is used to ssh into the instance, normally ec2-user, ubuntu, root etc") %>
  <%= image_field(f) %>
  <% if @compute_resource.provider == 'EC2' %>
    <%# TODO - Get IAM roles from AWS and display in select drop %>
    <%= text_f f, :iam_role, :help_inline => _("(optional) IAM Role for Fog to use when creating this image.") %>
  <% end %>

  <%= submit_or_cancel f, false, :cancel_path => @compute_resource %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/images/_form.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/images/_form.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/images/_form.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/images/_form.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/images/_form.html.erb