Project

General

Profile

Revision 329cfcba

Added by Sebastian Gräßl about 5 years ago

Fixes #18902 - Enable autocomplete for container image search

This enables the autocomplete for the image name search and
improves the usability of searching for container images on
Docker Hub or an external Registry.

View differences:

app/views/containers/steps/_form_buttons.html.erb
1 1
<div class="clearfix">
2
  <div class="form-actions">
2
  <div class="form-actions col-md-6 col-md-offset-2 small-gutter">
3 3
    <% if step == :preliminary %>
4 4
      <%= link_to _("Cancel"), containers_path, :class => "btn btn-danger" %>
5 5
    <% else %>
6 6
      <a class="btn btn-default" href="<%= previous_wizard_path %>">
7
        <span class="glyphicon glyphicon-chevron-left"></span>
8
        <%= _("Back") %>
7
        <%= _("Previous Step") %>
9 8
      </a>
10 9
    <% end %>
11
    <% next_id = defined?(registry) ? "next_#{registry}" : "next" %>
12
    <%= button_tag(:id => next_id, :type => 'submit', :class => "btn btn-primary pull-right") do %>
10

  
11
    <%= button_tag(:id => 'next', :type => 'submit', :class => "btn btn-primary") do %>
13 12
      <% if last_step? %>
14 13
        <%= _("Submit") %>
15 14
      <% else %>
16
        <%= _("Next") %>
17
        <span class="glyphicon glyphicon-chevron-right"></span>
15
        <%= _("Next Step") %>
18 16
      <% end %>
19 17
    <% end %>
20 18
  </div>

Also available in: Unified diff