Sha256: 74203d8f4c6df599699e6a183d0e067410c909d7a27204bc5bf0404b79186e3e

Contents?: true

Size: 1.2 KB

Versions: 26

Compression:

Stored size: 1.2 KB

Contents

<%
kickstart_repo_id = using_hostgroups_page? ? kickstart_repository_id(@hostgroup) : kickstart_repository_id(@host, :selected_host_group => @hostgroup)
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

26 entries across 26 versions & 1 rubygems

Version Path
katello-4.6.2.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.6.2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.6.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.4.2.2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.4.2.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.4.2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.5.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.6.0 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.6.0.rc2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.6.0.rc1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.5.0 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.5.0.rc2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.4.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.5.0.rc1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.4.0.2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.4.0.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.3.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.4.0 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.4.0.rc2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-4.4.0.rc1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb