mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@19799 e93f8b46-1217-0410-a6f0-8f06a7374b81
36 lines
1017 B
Plaintext
36 lines
1017 B
Plaintext
<h2><%= import_title %></h2>
|
|
|
|
<%= form_tag(import_mapping_path(@import), :id => "import-form") do %>
|
|
<%= render :partial => "#{import_partial_prefix}_mapping" %>
|
|
|
|
<fieldset class="box">
|
|
<legend><%= l(:label_file_content_preview) %></legend>
|
|
|
|
<div class="autoscroll">
|
|
<table class="sample-data">
|
|
<% @import.first_rows.each do |row| %>
|
|
<tr>
|
|
<%= row.map {|c| content_tag 'td', truncate(c.to_s, :length => 50) }.join("").html_safe %>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
</div>
|
|
</fieldset>
|
|
|
|
<p>
|
|
<%= button_tag("\xc2\xab " + l(:label_previous), :name => 'previous') %>
|
|
<%= submit_tag l(:button_import) %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= render_if_exist :partial => "#{import_partial_prefix}_sidebar" %>
|
|
|
|
<%= 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 %>
|