<%= labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %>
    <%= error_messages_for 'issue', 'time_entry' %>
    <%= render :partial => 'conflict' if @conflict %>
    <!--编辑的整个属性-->
    <% if @edit_allowed || !@allowed_statuses.empty? %>
        <div id="all_attributes" style="display:none;">
          <%= render :partial => 'form', :locals => {:f => f} %>
          <div class="ping_C mb10"></div>
          <!--<a remote="true" href="javascript:void(0)" class="blue_btn fl" style="margin-left: 80px;margin-bottom: 10px;margin-top: -10px;" onclick="$('#issue-form').submit();">-->
            <!--<%#= l(:button_submit) %>-->
          <!--</a>-->
        </div>

    <% end %><!--end-->

    <!--<fieldset><legend><%#= l(:field_notes) %></legend>-->
    <!--回复框-->
    <% if @journals.present? %>
        <div id="history">
          <%= render :partial => 'history', :locals => {:issue => @issue, :journals => @journals} %>
        </div>
    <% end %>
    <fieldset><legend>回复</legend>
    <%= f.text_area :notes, :style => "width:99%;", :rows => "5", :no_label => true %>
    </fieldset>
    <!--<%# if @issue.safe_attribute? 'private_notes' %>-->
    <!--<label for="issue_private_notes"><%#= f.check_box :private_notes, :no_label => true %> <%#= l(:field_private_notes) %></label>-->
    <!--<%# end %>-->

    <%= call_hook(:view_issues_edit_notes_bottom, {:issue => @issue, :notes => @notes, :form => f}) %>
    <!--</fieldset>-->

    <!--<fieldset><legend><%#= l(:label_attachment_plural) %></legend>-->
    <!--<p style="padding-top: 5px;"><%#= render :partial => 'attachments/new_form', :locals => {:container => @issue} %>
    <!--</fieldset>-->

    <div class="cl"></div>
    <%= f.hidden_field :lock_version %>
    <%= hidden_field_tag 'last_journal_id', params[:last_journal_id] || @issue.last_journal_id %>
    <%= hidden_field_tag 'reference_user_id', params[:reference_user_id] %>
<% end %>

<div id="preview" class="wiki"></div>
