Redmine 4.1.1
This commit is contained in:
parent
33e7b881a5
commit
3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions
48
app/views/imports/_time_entries_fields_mapping.html.erb
Normal file
48
app/views/imports/_time_entries_fields_mapping.html.erb
Normal file
|
@ -0,0 +1,48 @@
|
|||
<p>
|
||||
<label for="import_mapping_project_id"><%= l(:label_project) %></label>
|
||||
<%= 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' %>
|
||||
</p>
|
||||
<p>
|
||||
<label for="import_mapping_activity"><%= l(:field_activity) %></label>
|
||||
<%= mapping_select_tag @import, 'activity', :required => true,
|
||||
:values => @import.allowed_target_activities.sorted.map {|t| [t.name, t.id]} %>
|
||||
</p>
|
||||
|
||||
<div class="splitcontent">
|
||||
<div class="splitcontentleft">
|
||||
<% if User.current.allowed_to?(:log_time_for_other_users, @import.project) %>
|
||||
<p>
|
||||
<label for="import_mapping_user_id"><%= l(:field_user) %></label>
|
||||
<%= 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}" %>
|
||||
</p>
|
||||
<% end %>
|
||||
<p>
|
||||
<label for="import_mapping_issue_id"><%= l(:field_issue) %></label>
|
||||
<%= mapping_select_tag @import, 'issue_id' %>
|
||||
</p>
|
||||
<p>
|
||||
<label for="import_mapping_spent_on"><%= l(:field_spent_on) %></label>
|
||||
<%= mapping_select_tag @import, 'spent_on', :required => true %>
|
||||
</p>
|
||||
<p>
|
||||
<label for="import_mapping_hours"><%= l(:field_hours) %></label>
|
||||
<%= mapping_select_tag @import, 'hours', :required => true %>
|
||||
</p>
|
||||
<p>
|
||||
<label for="import_mapping_comments"><%= l(:field_comments) %></label>
|
||||
<%= mapping_select_tag @import, 'comments' %>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="splitcontentright">
|
||||
<% @custom_fields.each do |field| %>
|
||||
<p>
|
||||
<label for="import_mapping_cf_<%= field.id %>"><%= field.name %></label>
|
||||
<%= mapping_select_tag @import, "cf_#{field.id}", :required => field.is_required? %>
|
||||
</p>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue