Sha256: 5be6169bf162f0986eb3052032a4e89d8eb7f265d2dbf94bef0171bccb959e87

Contents?: true

Size: 1.62 KB

Versions: 49

Compression:

Stored size: 1.62 KB

Contents

<%= javascript "katello/hosts/host_and_hostgroup_edit" %>
<%
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
  if using_hostgroups_page?
    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?
  else
    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
end %>

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

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
katello-3.9.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.9.0 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.8.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.9.0.rc2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.9.0.rc1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.7.1.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.7.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.8.0 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.8.0.rc3 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.8.0.rc2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.7.0 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.8.0.rc1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.7.0.rc2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.7.0.rc1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.5.2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.6.0 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.6.0.1.rc2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.6.0.rc2 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.6.0.rc1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb
katello-3.5.1.1 app/views/overrides/activation_keys/_host_synced_content_select.html.erb