% labelled_tabular_form_for :issue, @issue, :url => {:action => 'edit', :id => @issue}, :html => {:id => 'issue-form', :multipart => true} do |f| %> <%= error_messages_for 'issue' %>
<%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %>
<%= time_entry.text_field :comments, :size => 40 %>
<%= time_entry.select :activity_id, (@activities.collect {|p| [p.name, p.id]}) %>
<%=l(:label_attachment_new)%> <%= image_to_function 'add.png', 'addFileField();return false;' %> <%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)