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

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

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

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

<% @time_entry.custom_field_values.each do |value| %>

<%= custom_field_tag_with_label :time_entry, value %>

<% end %> <% end %>
<% end %>
<%= l(:field_notes) %> <%= label_tag 'notes', l(:field_notes), :class => 'hidden-for-sighted' %> <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> <%= wikitoolbar_for 'notes' %> <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %>
<%= send_notification_option %>
<%= f.hidden_field :lock_version %> <%= submit_tag l(:button_submit) %> <%= link_to_issue_preview(@issue) %> <% end %>