<%= select_tag 'import_settings[mapping][project_id]', options_for_select(project_tree_options_for_select(@import.allowed_target_projects, :selected => @import.project)), :id => 'import_mapping_project_id' %>
<%= mapping_select_tag @import, 'activity', :required => true, :values => @import.allowed_target_activities.sorted.map {|t| [t.name, t.id]} %>
<%= mapping_select_tag @import, 'user', :required => true, :values => @import.allowed_target_users.map {|u| [u.name, u.id]}, :default_value => "value:#{User.current.id}" %>
<% end %><%= mapping_select_tag @import, 'issue_id' %>
<%= mapping_select_tag @import, 'spent_on', :required => true %>
<%= mapping_select_tag @import, 'hours', :required => true %>
<%= mapping_select_tag @import, 'comments' %>
<%= mapping_select_tag @import, "cf_#{field.id}", :required => field.is_required? %>
<% end %>