##// END OF EJS Templates
Introduce virtual MenuNodes (#15880)....
Introduce virtual MenuNodes (#15880). They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r15111:f6754a0f7a37
r15119:53710d80fc88
Show More
_fields_mapping.html.erb
90 lines | 2.6 KiB | text/plain | TextLexer
/ app / views / imports / _fields_mapping.html.erb
Jean-Philippe Lang
Import issues from CSV file (#950)....
r14111 <p>
<label><%= 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)),
Jean-Philippe Lang
Make Tracker map-able for CSV import (#22951)....
r15108 :id => 'import_mapping_project_id' %>
Jean-Philippe Lang
Import issues from CSV file (#950)....
r14111 </p>
<p>
<label><%= l(:label_tracker) %></label>
Jean-Philippe Lang
Make Tracker map-able for CSV import (#22951)....
r15108 <%= mapping_select_tag @import, 'tracker', :required => true,
:values => @import.allowed_target_trackers.sorted.map {|t| [t.name, t.id]} %>
Jean-Philippe Lang
Import issues from CSV file (#950)....
r14111 </p>
Jean-Philippe Lang
Make Status map-able for CSV import (#22951)....
r15111 <p>
<label><%= l(:field_status) %></label>
<%= mapping_select_tag @import, 'status' %>
</p>
Jean-Philippe Lang
Make Tracker map-able for CSV import (#22951)....
r15108
<div class="splitcontent">
<div class="splitcontentleft">
Jean-Philippe Lang
Import issues from CSV file (#950)....
r14111 <p>
<label><%= l(:field_subject) %></label>
<%= mapping_select_tag @import, 'subject', :required => true %>
</p>
<p>
<label><%= l(:field_description) %></label>
<%= mapping_select_tag @import, 'description' %>
</p>
<p>
<label><%= l(:field_priority) %></label>
<%= mapping_select_tag @import, 'priority' %>
</p>
<p>
<label><%= l(:field_category) %></label>
<%= mapping_select_tag @import, 'category' %>
<% if User.current.allowed_to?(:manage_categories, @import.project) %>
<label class="block">
<%= check_box_tag 'import_settings[mapping][create_categories]', '1', @import.create_categories? %>
<%= l(:label_create_missing_values) %>
</label>
<% end %>
</p>
<p>
<label><%= l(:field_assigned_to) %></label>
<%= mapping_select_tag @import, 'assigned_to' %>
</p>
<p>
<label><%= l(:field_fixed_version) %></label>
<%= mapping_select_tag @import, 'fixed_version' %>
<% if User.current.allowed_to?(:manage_versions, @import.project) %>
<label class="block">
<%= check_box_tag 'import_settings[mapping][create_versions]', '1', @import.create_versions? %>
<%= l(:label_create_missing_values) %>
</label>
<% end %>
</p>
<% @custom_fields.each do |field| %>
<p>
<label><%= field.name %></label>
<%= mapping_select_tag @import, "cf_#{field.id}" %>
</p>
<% end %>
</div>
<div class="splitcontentright">
<p>
<label><%= l(:field_is_private) %></label>
<%= mapping_select_tag @import, 'is_private' %>
</p>
<p>
<label><%= l(:field_parent_issue) %></label>
<%= mapping_select_tag @import, 'parent_issue_id' %>
</p>
<p>
<label><%= l(:field_start_date) %></label>
<%= mapping_select_tag @import, 'start_date' %>
</p>
<p>
<label><%= l(:field_due_date) %></label>
<%= mapping_select_tag @import, 'due_date' %>
</p>
Jean-Philippe Lang
Add column `estimated_hours` for CSV import (#21867)....
r14749 <p>
<label><%= l(:field_estimated_hours) %></label>
<%= mapping_select_tag @import, 'estimated_hours' %>
</p>
Jean-Philippe Lang
Import issues from CSV file (#950)....
r14111 <p>
<label><%= l(:field_done_ratio) %></label>
<%= mapping_select_tag @import, 'done_ratio' %>
</p>
</div>
</div>