summaryrefslogtreecommitdiffstats
path: root/app/views/issues/_edit.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-02-21 17:50:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-02-21 17:50:33 +0000
commitd461363d27b9acf371445bd29b2618363d1cc1bf (patch)
treec7c8b7be960b3abffcb1177f6cc5eeb15e1b5469 /app/views/issues/_edit.rhtml
parent948097bc4d0f3a5163a9f464169790fee9b421cd (diff)
downloadredmine-d461363d27b9acf371445bd29b2618363d1cc1bf.tar.gz
redmine-d461363d27b9acf371445bd29b2618363d1cc1bf.zip
Fixed: Adding time when Updating a ticket is gone (closes #701).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1165 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/_edit.rhtml')
-rw-r--r--app/views/issues/_edit.rhtml13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/issues/_edit.rhtml b/app/views/issues/_edit.rhtml
index 7c4cf501c..f9b234d85 100644
--- a/app/views/issues/_edit.rhtml
+++ b/app/views/issues/_edit.rhtml
@@ -14,6 +14,19 @@
<%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %>
</fieldset>
<% end %>
+ <% if authorize_for('timelog', 'edit') %>
+ <fieldset><legend><%= l(:button_log_time) %></legend>
+ <% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %>
+ <div class="splitcontentleft">
+ <p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p>
+ </div>
+ <div class="splitcontentright">
+ <p><%= time_entry.text_field :comments, :size => 40 %></p>
+ <p><%= time_entry.select :activity_id, (@activities.collect {|p| [p.name, p.id]}) %></p>
+ </div>
+ <% end %>
+ </fieldset>
+ <% end %>
<fieldset><legend><%= l(:field_notes) %></legend>
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>