diff options
author | Go MAEDA <maeda@farend.jp> | 2019-05-09 08:05:37 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-05-09 08:05:37 +0000 |
commit | 6fd9d9ed7321615c61feb4e69fd61bdbaaf72faa (patch) | |
tree | 0a33fae6399f98ac8403629ba7f28166867d4eeb /app/views/imports/_time_entries_mapping.html.erb | |
parent | b540046ed7084ba50f5ca280f3ffae0751af8142 (diff) | |
download | redmine-6fd9d9ed7321615c61feb4e69fd61bdbaaf72faa.tar.gz redmine-6fd9d9ed7321615c61feb4e69fd61bdbaaf72faa.zip |
Import time entries (#28234).
Patch by Gregor Schmidt.
git-svn-id: http://svn.redmine.org/redmine/trunk@18146 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/imports/_time_entries_mapping.html.erb')
-rw-r--r-- | app/views/imports/_time_entries_mapping.html.erb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/imports/_time_entries_mapping.html.erb b/app/views/imports/_time_entries_mapping.html.erb new file mode 100644 index 000000000..15bc7dd0d --- /dev/null +++ b/app/views/imports/_time_entries_mapping.html.erb @@ -0,0 +1,18 @@ +<fieldset class="box tabular"> + <legend><%= l(:label_fields_mapping) %></legend> + <div id="fields-mapping"> + <%= render :partial => 'time_entries_fields_mapping' %> + </div> +</fieldset> + +<%= javascript_tag do %> +$(document).ready(function() { + $('#fields-mapping').on('change', '#import_mapping_project_id', function(){ + $.ajax({ + url: '<%= import_mapping_path(@import, :format => 'js') %>', + type: 'post', + data: $('#import-form').serialize() + }); + }); +}); +<% end %> |