Project

General

Profile

Download (1.55 KB) Statistics
| Branch: | Tag: | Revision:

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

1
<%= render :layout => 'title', :locals => { :step => 1 } do %>
2
<%= form_for @docker_container_wizard_states_preliminary, :url => wizard_path, :method => :put do |f| %>
3
  <ul class="nav nav-tabs" data-tabs="tabs">
4
    <li class="active"><a href="#primary" data-toggle="tab">
5
      <span class="glyphicon glyphicon-tasks"></span>
6
      <%= _("Compute resource") %>
7
    </a></li>
8
    <% Taxonomy.enabled_taxonomies.each do |taxonomy| %>
9
      <li><a href="#<%= taxonomy %>" data-toggle="tab">
10
        <span class="glyphicon glyphicon-<%= taxonomy_icon(taxonomy) %>">
11
        </span>
12
        <%= _(taxonomy.humanize) %>
13
      </a></li>
14
    <% end %>
15
  </ul>
16
  <div class="tab-content">
17
    <div class="tab-pane active" id="primary">
18
      <% if @container_resources.present? %>
19
        <h3><%= _("Resource selection") %></h3>
20
        <%= _("Where do you want to deploy your container?:") %>
21
        <hr>
22
        <%= select_f f, 'compute_resource_id', @container_resources, :id, :to_label, {}, { :label => _('Deploy on') } %>
23
      <% else %>
24
        <div class="alert alert-warning alert-dismissable">
25
          <%= 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 %>
26
        </div>
27
      <% end %>
28
    </div>
29
    <%= render "taxonomies/loc_org_tabs", :f => f, :obj => @docker_container_wizard_states_preliminary %>
30
  </div>
31
  <% if @container_resources.present? %>
32
    <%= render :partial => 'form_buttons' %>
33
  <% end %>
34
<% end %>
35
<% end %>