From: Go MAEDA Date: Sat, 29 Feb 2020 03:41:12 +0000 (+0000) Subject: Merged r19527 from trunk to 4.1-stable (#33027). X-Git-Tag: 4.1.1~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f21681218e7936502ad7801195ef3a5bca7281f1;p=redmine.git Merged r19527 from trunk to 4.1-stable (#33027). git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19535 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/imports/_time_entries_fields_mapping.html.erb b/app/views/imports/_time_entries_fields_mapping.html.erb index 1b4f7a0e4..65d6d0979 100644 --- a/app/views/imports/_time_entries_fields_mapping.html.erb +++ b/app/views/imports/_time_entries_fields_mapping.html.erb @@ -11,37 +11,38 @@

-
-<% if User.current.allowed_to?(:log_time_for_other_users, @import.project) %> +
+ <% if User.current.allowed_to?(:log_time_for_other_users, @import.project) %> +

+ + <%= mapping_select_tag @import, 'user_id', :required => true, + :values => @import.allowed_target_users.map {|u| [u.name, u.id]}, :default_value => "value:#{User.current.id}" %> +

+ <% end %>

- - <%= mapping_select_tag @import, 'user_id', :required => true, - :values => @import.allowed_target_users.map {|u| [u.name, u.id]}, :default_value => "value:#{User.current.id}" %> + + <%= mapping_select_tag @import, 'issue_id' %> +

+

+ + <%= mapping_select_tag @import, 'spent_on', :required => true %>

-<% 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' %> -

-
- -
-<% @custom_fields.each do |field| %>

- - <%= mapping_select_tag @import, "cf_#{field.id}", :required => field.is_required? %> + + <%= mapping_select_tag @import, 'hours', :required => true %>

-<% end %> +

+ + <%= mapping_select_tag @import, 'comments' %> +

+
+ +
+ <% @custom_fields.each do |field| %> +

+ + <%= mapping_select_tag @import, "cf_#{field.id}", :required => field.is_required? %> +

+ <% end %> +