<%= button_tag("\xc2\xab " + l(:label_previous), :name => 'previous') %> <%= submit_tag l(:button_import) %>
<% end %> <% content_for :sidebar do %> <%= render :partial => 'issues/sidebar' %> <% end %> <%= javascript_tag do %> $(document).ready(function() { $('#fields-mapping').on('change', '#import_mapping_project_id, #import_mapping_tracker', function(){ $.ajax({ url: '<%= import_mapping_path(@import, :format => 'js') %>', type: 'post', data: $('#import-form').serialize() }); }); $('#import-form').submit(function(){ $('#import-details').show().addClass('ajax-loading'); $('#import-progress').progressbar({value: 0, max: <%= @import.total_items || 0 %>}); }); }); <% end %>