You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mapping.html.erb 1017B

1234567891011121314151617181920212223242526272829303132333435
  1. <h2><%= import_title %></h2>
  2. <%= form_tag(import_mapping_path(@import), :id => "import-form") do %>
  3. <%= render :partial => "#{import_partial_prefix}_mapping" %>
  4. <fieldset class="box">
  5. <legend><%= l(:label_file_content_preview) %></legend>
  6. <div class="autoscroll">
  7. <table class="sample-data">
  8. <% @import.first_rows.each do |row| %>
  9. <tr>
  10. <%= row.map {|c| content_tag 'td', truncate(c.to_s, :length => 50) }.join("").html_safe %>
  11. </tr>
  12. <% end %>
  13. </table>
  14. </div>
  15. </fieldset>
  16. <p>
  17. <%= button_tag("\xc2\xab " + l(:label_previous), :name => 'previous') %>
  18. <%= submit_tag l(:button_import) %>
  19. </p>
  20. <% end %>
  21. <%= render_if_exist :partial => "#{import_partial_prefix}_sidebar" %>
  22. <%= javascript_tag do %>
  23. $(document).ready(function() {
  24. $('#import-form').submit(function(){
  25. $('#import-details').show().addClass('ajax-loading');
  26. $('#import-progress').progressbar({value: 0, max: <%= @import.total_items || 0 %>});
  27. });
  28. });
  29. <% end %>