<% title _("Changed Ansible variables") %> <%= form_tag confirm_import_ansible_variables_path do %>

<%= _("Select the changes you want to realize in Foreman") %>

<%= _("Toggle") %>: <%= link_to_function(icon_text("check", _("New")), "toggleCheckboxesBySelector('.variable_select_boxes_new')", :title => _("Check/Uncheck new")) %> | <%= link_to_function(icon_text("check", _("Obsolete")), "toggleCheckboxesBySelector('.variable_select_boxes_obsolete')", :title => _("Check/Uncheck obsolete")) %>
<% changed.each do |kind, variables| %> <% variables.each do |variable| %> <% end %> <% end %>
<%= link_to_function(icon_text("check"), "toggleCheckboxesBySelector('.variable_select_boxes')", :title => _("Check/Uncheck all")) %> <%= _("Name") %> <%= _("Ansible role") %> <%= _("Hosts count") %> <%= _("Hostgroups count") %> <%= _("Operation") %>
<%= check_box_tag "changed[#{kind}][#{variable.ansible_role}][#{variable}]", variable.to_json, false, :class => "variable_select_boxes variable_select_boxes_#{kind} variable_select_boxes_variable_#{variable}" %> <%= link_to_function("#{variable}", "toggleCheckboxesBySelector('.variable_select_boxes_variable_#{variable}')", :title => _("Check/Uncheck all %s changes") % variable) %> <%= variable.ansible_role %> <%= variable.ansible_role.hosts.count %> <%= variable.ansible_role.hostgroups.count %> <%= { "new" => _("Add"), "obsolete" => _("Remove") }[kind] %>
<%= link_to _("Cancel"), ansible_variables_path, :class => "btn btn-default" %> <%= submit_tag _("Update"), :class => "btn btn-primary" %>
<% end %>