Project

General

Profile

Revision f6a9acbd

Added by Sebastian Gräßl over 5 years ago

Fixes #18518 - Add proper validation for container image

For now the image has only been validate via the result
of the search, but not enforced on the server side.

The model validation brings now proper feedback when
the form has been submitted to the server.

View differences:

app/helpers/container_steps_helper.rb
51 51
    end
52 52
  end
53 53

  
54
  def image_search_wrapper_class(model)
55
    if model.errors.messages[:image]
56
      'form-group has-error'
57
    else
58
      'form-group'
59
    end
60
  end
61

  
62
  def tab_active?(registry)
63
    active_tab == registry.to_sym
64
  end
65

  
54 66
  def active_tab
55 67
    if @docker_container_wizard_states_image.katello?
56 68
      :katello

Also available in: Unified diff