<% stylesheet 'foreman_virt_who_configure/config' %> <% javascript 'foreman_virt_who_configure/config_copy_and_paste' %>

<%= _("Virt-who Configuration %s") % @config.name %>

<%= _("Use either hammer command or the script below to deploy this configuration. Run one of them on the target host which has access to Red Hat Satellite Tools repository and will run virt-who reporting, preferably Satellite host:") %>

<%= link_to _('Edit this configuration'), edit_foreman_virt_who_configure_config_path(@config), :class => 'btn btn-default' %>

<%= 'a) ' + _('Hammer command: ') %>

<%= @config.virt_who_config_command %>
<%= link_to _('Copy to clipboard'), nil, :class => 'btn btn-default', :onclick => 'virt_who_copy_configuration_to_clipboard($("#config_command").html())' %>

<%= 'b) ' + _('Configuration script: ') %>

<%= _("On the target virt-who host:") %>
<%= _("1. Copy this configuration script to a safe directory.") %>
<%= _("2. Make the script executable and run it.") %>
<%= _("3. Delete the script.") %>

<%= @config.virt_who_config_script %>
<%= link_to _('Copy to clipboard'), nil, :class => 'btn btn-default', :onclick => 'virt_who_copy_configuration_to_clipboard($("#config_script").html())' %> <%= link_to _('Download the script'), deploy_script_foreman_virt_who_configure_config_path(@config), :class => 'btn btn-default' %>