1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-26 18:31:14 +00:00
redmine/app/views/imports/run.html.erb
Go MAEDA b540046ed7 Generalize issues imports (#28234).
Extend import controller to support arbitrary imports based on Import subclasses. This way, we may add other kinds of imports, by providing some views and a custom import class. This may also be done from within plugins.

Patch by Gregor Schmidt.


git-svn-id: http://svn.redmine.org/redmine/trunk@18145 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-09 07:40:06 +00:00

19 lines
528 B
Plaintext

<h2><%= import_title %></h2>
<div id="import-details">
<div id="import-progress"><div id="progress-label">0 / <%= @import.total_items.to_i %></div></div>
</div>
<%= render :partial => "#{import_partial_prefix}_sidebar" %>
<%= javascript_tag do %>
$(document).ready(function() {
$('#import-details').addClass('ajax-loading');
$('#import-progress').progressbar({value: 0, max: <%= @import.total_items.to_i %>});
$.ajax({
url: '<%= import_run_path(@import, :format => 'js') %>',
type: 'post'
});
});
<% end %>