Redmine 4.1.1
This commit is contained in:
parent
33e7b881a5
commit
3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions
|
@ -16,11 +16,20 @@
|
|||
<%= link_to_issue(@time_entry.issue) if @time_entry.issue.try(:visible?) %>
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<% if User.current.allowed_to?(:log_time_for_other_users, @project) %>
|
||||
<p><%= f.select :user_id, user_collection_for_select_options(@time_entry), :required => true %></p>
|
||||
<% elsif !@time_entry.new_record? %>
|
||||
<p>
|
||||
<%= f.label_for_field :user_id %>
|
||||
<span><%= link_to_user(@time_entry.user) %></span>
|
||||
</p>
|
||||
<% end %>
|
||||
<p><%= f.date_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %></p>
|
||||
<p><%= f.hours_field :hours, :size => 6, :required => true %></p>
|
||||
<p><%= f.text_field :comments, :size => 100, :maxlength => 1024, :required => Setting.timelog_required_fields.include?('comments') %></p>
|
||||
<p><%= f.select :activity_id, activity_collection_for_select_options(@time_entry), :required => true %></p>
|
||||
<% @time_entry.custom_field_values.each do |value| %>
|
||||
<% @time_entry.editable_custom_field_values.each do |value| %>
|
||||
<p><%= custom_field_tag_with_label :time_entry, value %></p>
|
||||
<% end %>
|
||||
<%= call_hook(:view_timelog_edit_form_bottom, { :time_entry => @time_entry, :form => f }) %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue