Project

General

Profile

Revision ada932ab

Added by Dmitri Dolguikh over 7 years ago

Fixes #7647: Added support for external registries

View differences:

app/helpers/container_steps_helper.rb
8 8
      _('Environment')
9 9
    )
10 10
  end
11

  
12
  def select_registry(f)
13
    field(f, 'image[registry_id]', :label => _("Registry")) do
14
      collection_select :image, :registry_id,
15
                        DockerRegistry.with_taxonomy_scope_override(@location, @organization)
16
                          .authorized(:view_registries),
17
                        :id, :name,
18
                        { :prompt => _("Select a registry") },
19
                        :class => "form-control", :disabled => f.object.image.present?
20
    end
21
  end
11 22
end

Also available in: Unified diff