Project

General

Profile

Download (841 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman_docker / app / views / containers / steps / preliminary.html.erb @ ada932ab

1
<%= render :layout => 'title', :locals => { :step => 1 } do %>
2
  <%= form_for @container, :url => wizard_path, :method => :put do |f| %>
3
    <div>
4
      <% if @container_resources.present? %>
5
        <h3><%= _("Resource selection") %></h3>
6
        <%= _("Where do you want to deploy your container?:") %>
7
        <hr>
8
        <%= select_f f, :compute_resource_id, @container_resources, :id, :to_label, {}, { :label => _('Deploy on') } %>
9
      <% else %>
10
        <div class="alert alert-warning alert-dismissable">
11
          <%= image_tag 'false.png' %> <%= (_("You need a Docker compute resource in order to create containers. Please %s and try again.") % link_to('add a new one', hash_for_new_compute_resource_path)).html_safe %>
12
        </div>
13
      <% end %>
14
    </div>
15
    <%= render :partial => 'form_buttons' %>
16
  <% end %>
17
<% end %>