Project

General

Profile

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

foreman_docker / app / views / containers / steps / image.html.erb @ 329cfcba

1
<%= javascript 'foreman_docker/container_image_search' %>
2
<%= stylesheet 'foreman_docker/autocomplete' %>
3

    
4
<%= render :layout => 'title', :locals => { :step => 2 } do %>
5
    <ul class="nav nav-tabs" data-tabs="tabs">
6
      <% if defined? Katello -%>
7
        <li class="<%= tab_class(:katello)%>"><a href="#katello" data-toggle="tab" id="katello_tab">
8
          <span class="glyphicon glyphicon-tower"></span>
9
          <%= _("Content View") %>
10
        </a></li>
11
      <% end -%>
12

    
13
      <li class='<%= tab_class(:hub) %>'><a href="#hub" data-toggle="tab" id="hub_tab">
14
        <%= _("Docker hub") %>
15
      </a></li>
16
      <li class='<%= tab_class(:registry) %>'><a href="#registry" data-toggle="tab" id="registry_tab">
17
        <%= _("External registry") %>
18
      </a></li>
19
    </ul>
20
    <div class="tab-content">
21
      <% if defined?(Katello) -%>
22
        <div class='tab-pane <%= tab_class(:katello) %>' id="katello">
23
          <%= form_for model_for("katello"), :namespace => "katello",
24
                                             :class => 'form-horizontal',
25
                                             :url => wizard_path,
26
                                             :method => :put do |f| %>
27
              <%= katello_partial(f) %>
28
              <%= render :partial => 'form_buttons', locals: { :registry => "katello"} %>
29
          <% end -%>
30
        </div>
31
      <% end -%>
32
      <div class='tab-pane <%= tab_class(:hub) %>' id="hub">
33
        <%= render :partial => 'image_hub_tab' , locals: { :registry => "hub" }  %>
34
      </div>
35
      <div class='tab-pane <%= tab_class(:registry) %>' id="registry">
36
        <%= render :partial => 'image_hub_tab' , locals: { :registry => "registry"}  %>
37
      </div>
38
    </div>
39
<% end %>