Sha256: 836bae13bfad2bae628a0b53de8b6297b39c224998ba91cfe97ae677ad40b657
Contents?: true
Size: 1.85 KB
Versions: 10
Compression:
Stored size: 1.85 KB
Contents
<% if using_discovered_hosts_page? kickstart_repo_id = kickstart_repository_id(@host, :selected_host_group => @host&.hostgroup) kickstart_options = kickstart_repository_options(@host, :selected_host_group => @host&.hostgroup) elsif using_hostgroups_page? kickstart_repo_id = kickstart_repository_id(@hostgroup, :selected_host_group => @host&.hostgroup) kickstart_options = kickstart_repository_options(@hostgroup) else kickstart_repo_id = kickstart_repository_id(@host, :selected_host_group => @hostgroup) kickstart_options = kickstart_repository_options(@host, :selected_host_group => @hostgroup) end kickstart_repo_id = 'unset' if kickstart_repo_id.blank? ks_repo_select_id = using_hostgroups_page? ? :host_group_kickstart_repository_id : :host_kickstart_repository_id ks_repo_select_name = using_hostgroups_page? ? 'hostgroup[kickstart_repository_id]' : 'host[content_facet_attributes][kickstart_repository_id]' ks_repo_select_attr = using_hostgroups_page? ? 'kickstart_repository' : 'content_facet.kickstart_repository' %> <% spinner_path = asset_path('spinner.gif') %> <%= field(f, ks_repo_select_attr, {:label => _("Synced Content"), :help_inline => kickstart_repo_inheritable?(@host) ? 'Automatically selected from content source, lifecycle environment, content_view, architecture, and operating system' : nil}) do %> <%= select_tag ks_repo_select_id, view_to_options(kickstart_options, kickstart_repo_id, blank_or_inherit_with_id(f, :kickstart_repository)), :data => {"spinner_path" => spinner_path, "kickstart-repository-id" => kickstart_repo_id}, :class => 'form-control', :name => ks_repo_select_name, :disabled => kickstart_options.empty? %> <% end %> <% content_for(:javascripts) do -%> <script> KT.hosts.set_media_selection_bindings(); KT.hosts.update_media_enablement(); </script> <% end -%>
Version data entries
10 entries across 10 versions & 1 rubygems