"Fossies" - the Fresh Open Source Software Archive

Member "redmine-4.1.1/app/views/imports/_time_entries_fields_mapping.html.erb" (6 Apr 2020, 1857 Bytes) of package /linux/www/redmine-4.1.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) ERB Templates source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "_time_entries_fields_mapping.html.erb": 4.1.0_vs_4.1.1.

    1 <p>
    2   <label for="import_mapping_project_id"><%= l(:label_project) %></label>
    3   <%= select_tag 'import_settings[mapping][project_id]',
    4         options_for_select(project_tree_options_for_select(@import.allowed_target_projects, :selected => @import.project)),
    5         :id => 'import_mapping_project_id' %>
    6 </p>
    7 <p>
    8   <label for="import_mapping_activity"><%= l(:field_activity) %></label>
    9   <%= mapping_select_tag @import, 'activity', :required => true,
   10         :values => @import.allowed_target_activities.sorted.map {|t| [t.name, t.id]} %>
   11 </p>
   12 
   13 <div class="splitcontent">
   14   <div class="splitcontentleft">
   15   <% if User.current.allowed_to?(:log_time_for_other_users, @import.project) %>
   16     <p>
   17       <label for="import_mapping_user_id"><%= l(:field_user) %></label>
   18       <%= mapping_select_tag @import, 'user_id', :required => true,
   19             :values => @import.allowed_target_users.map {|u| [u.name, u.id]}, :default_value => "value:#{User.current.id}" %>
   20     </p>
   21   <% end %>
   22   <p>
   23     <label for="import_mapping_issue_id"><%= l(:field_issue) %></label>
   24     <%= mapping_select_tag @import, 'issue_id' %>
   25   </p>
   26   <p>
   27     <label for="import_mapping_spent_on"><%= l(:field_spent_on) %></label>
   28     <%= mapping_select_tag @import, 'spent_on', :required => true %>
   29   </p>
   30   <p>
   31     <label for="import_mapping_hours"><%= l(:field_hours) %></label>
   32     <%= mapping_select_tag @import, 'hours', :required => true %>
   33   </p>
   34   <p>
   35     <label for="import_mapping_comments"><%= l(:field_comments) %></label>
   36     <%= mapping_select_tag @import, 'comments' %>
   37   </p>
   38   </div>
   39 
   40   <div class="splitcontentright">
   41   <% @custom_fields.each do |field| %>
   42     <p>
   43       <label for="import_mapping_cf_<%= field.id %>"><%= field.name %></label>
   44       <%= mapping_select_tag @import, "cf_#{field.id}", :required => field.is_required? %>
   45     </p>
   46   <% end %>
   47   </div>
   48 </div>