Chris@909: <% labelled_tabular_form_for :issue, @issue, Chris@909: :url => {:action => 'update', :id => @issue}, Chris@909: :html => {:id => 'issue-form', Chris@909: :class => nil, Chris@909: :method => :put, Chris@909: :multipart => true} do |f| %> Chris@909: <%= error_messages_for 'issue', 'time_entry' %> Chris@909:
Chris@909: <% if @edit_allowed || !@allowed_statuses.empty? %> Chris@909:
<%= l(:label_change_properties) %> Chris@909: <% if !@issue.new_record? && !@issue.errors.any? && @edit_allowed %> Chris@909: (<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("issue_descr_fields", "appear", {duration:0.3}); return false;' %>) Chris@909: <% end %> Chris@909: Chris@909: <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %> Chris@909:
Chris@909: <% end %> Chris@909: <% if User.current.allowed_to?(:log_time, @project) %> Chris@909:
<%= l(:button_log_time) %> Chris@909: <% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %> Chris@909:
Chris@909:

<%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %>

Chris@909:
Chris@909:
Chris@909:

<%= time_entry.select :activity_id, activity_collection_for_select_options %>

Chris@909:
Chris@909:

<%= time_entry.text_field :comments, :size => 60 %>

Chris@909: <% @time_entry.custom_field_values.each do |value| %> Chris@909:

<%= custom_field_tag_with_label :time_entry, value %>

Chris@909: <% end %> Chris@909: <% end %> Chris@909:
Chris@909: <% end %> Chris@909: Chris@909:
<%= l(:field_notes) %> Chris@909: <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> Chris@909: <%= wikitoolbar_for 'notes' %> Chris@909: <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %> Chris@909: Chris@909:

<%=l(:label_attachment_plural)%>
<%= render :partial => 'attachments/form' %>

Chris@909:
Chris@909:
Chris@909: Chris@909: <%= f.hidden_field :lock_version %> Chris@909: <%= submit_tag l(:button_submit) %> Chris@909: <%= link_to_remote l(:label_preview), Chris@909: { :url => preview_issue_path(:project_id => @project, :id => @issue), Chris@909: :method => 'post', Chris@909: :update => 'preview', Chris@909: :with => 'Form.serialize("issue-form")', Chris@909: :complete => "Element.scrollTo('preview')" Chris@909: }, :accesskey => accesskey(:preview) %> Chris@909: <% end %> Chris@909: Chris@909: