1
|
module ContainerStepsHelper
|
2
|
def container_wizard(step)
|
3
|
wizard_header(
|
4
|
step,
|
5
|
_('Resource'),
|
6
|
_('Image'),
|
7
|
_('Configuration'),
|
8
|
_('Environment')
|
9
|
)
|
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
|
22
|
end
|