<%= button_tag("\xc2\xab " + l(:label_previous), :name => 'previous') %> <%= submit_tag l(:button_import) %>
<% end %> <%= javascript_tag do %> $(document).ready(function() { $('#import-form').submit(function(){ $('#import-details').show().addClass('ajax-loading'); $('#import-progress').progressbar({value: 0, max: <%= @import.total_items || 0 %>}); }); }); <% end %>