Sha256: bfd2f14b706bebd764794a1bd7bfbb5e0ed7748f07daf63ce1ee711aaf93ec21

Contents?: true

Size: 1.26 KB

Versions: 22

Compression:

Stored size: 1.26 KB

Contents

<%
kickstart_repo_id = using_hostgroups_page? ? kickstart_repository_id(@hostgroup) : kickstart_repository_id(@host, :selected_host_group => @hostgroup)
kickstart_repo_id = 'unset' if kickstart_repo_id.blank?
host = using_hostgroups_page? ? @hostgroup : @host
kickstart_options = kickstart_repository_options(host, :selected_host_group => @hostgroup)
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")}) 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 %>

<script>
  KT.hosts.set_media_selection_bindings();
  KT.hosts.update_media_enablement();
</script>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
katello-4.9.2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.10.0.rc1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.8.4 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.9.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.8.3 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.9.0 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.7.6 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.8.2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.9.0.rc2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.9.0.rc1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.8.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.7.5 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.8.0 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.8.0.rc2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.7.4 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.8.0.rc1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.7.3 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.7.2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.7.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.7.0 app/views/overrides/activation_keys/_host_synced_content_select.html.erb