<%= title(l(:label_xml_data_import)) %>

<%= form_tag({:action => 'import'}, :multipart => true, :class => 'form-box') do %>
  <%= hidden_field_tag 'back_url', params['back_url'] if params['back_url'] %>
  <p><%= file_field_tag 'archivefile' %></p>
  <p><label> <%= check_box_tag 'notifications', 1 %> <%= l(:label_xml_data_notify) %></label></p>
  <h3><%= l(:label_auto_mapping) %></h3>
  <div>
    <% @mappables.each do |importable_id| %>
      <label><%= check_box_tag 'auto_mappings[]', importable_id, true %> <%= l("xml_data_#{importable_id.pluralize}")%></label>
    <% end %>
  </div>
  <div class="form-actions"><%= submit_tag l(:button_xml_data_import), :class => 'button-positive' %></div>
<% end -%>

<%= content_for(:easy_page_layout_service_box_primary_actions) do %>
<%= link_to(l(:button_new_advanced_import), easy_entity_imports_path, :class => 'button-positive icon icon-import') %>
<% end %>
