<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg'  %>
<%= 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 ml10"></div>
        </div>
    <% end %><!--end-->

    <% if @journals.present? %>
        <div id="history">
          <%= render :partial => 'history', :locals => {:issue => @issue, :journals => @journals} %>
        </div>
    <% end %>
    <div id="journal_issue_note" class="wiki">

    </div>
    <input name="issue_quote_new" type="hidden" value="<%= %>" />
    <fieldset><legend>回复</legend>
    <%= f.kindeditor :notes, :style => "width:99%;",:height=>'100px', :cssData =>"blockquote { padding:0px}", :rows => "5", :no_label => true, :editor_id=>'issue_journal_kind_reply' %>
    </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>
