<% if @scenario_import.parsed_data["description"].present? %>
<%= @scenario_import.parsed_data["description"] %>
<% end %>

This import contains <%= pluralize @scenario_import.parsed_data["agents"].length, "Agent" %>:

<% if @scenario_import.dangerous? %>
This Scenario contains one or more potentially dangerous Agents. These may be able to run local commands or execute code. Please be sure that you understand the above Agent configurations before importing!
<% end %> <% if @scenario_import.existing_scenario.present? %>
This Scenario already exists in your system. If you continue, the import will overwrite your existing <%= @scenario_import.existing_scenario.name %> Scenario and the Agents in it.
<% end %>
<%= f.label :do_import do %> <%= f.check_box :do_import %> I confirm that I want to import these Agents. <% end %>
<%= f.submit "Finish Import", :class => "btn btn-primary" %>