2013-08-01 10:33:49 +08:00
|
|
|
<%= labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %>
|
|
|
|
<%= error_messages_for 'issue', 'time_entry' %>
|
|
|
|
<%= render :partial => 'conflict' if @conflict %>
|
2015-04-15 16:38:39 +08:00
|
|
|
<!--编辑的整个属性-->
|
2014-04-24 10:16:18 +08:00
|
|
|
<% if @edit_allowed || !@allowed_statuses.empty? %>
|
2015-04-16 04:12:26 +08:00
|
|
|
<div id="all_attributes" style="display:none;">
|
2015-04-16 12:15:36 +08:00
|
|
|
<%= render :partial => 'form', :locals => {:f => f} %>
|
2015-04-16 14:13:12 +08:00
|
|
|
<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>
|
2015-04-15 16:38:39 +08:00
|
|
|
</div>
|
|
|
|
<% end %><!--end-->
|
2015-04-16 12:15:36 +08:00
|
|
|
<div class="ping_C mb10"></div>
|
2015-04-15 16:38:39 +08:00
|
|
|
<!--<fieldset><legend><%#= l(:field_notes) %></legend>-->
|
|
|
|
<!--回复框-->
|
|
|
|
<% if @journals.present? %>
|
|
|
|
<div id="history">
|
2015-04-16 12:15:36 +08:00
|
|
|
<%= render :partial => 'history', :locals => {:issue => @issue, :journals => @journals} %>
|
2015-04-15 16:38:39 +08:00
|
|
|
</div>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|
2015-04-16 12:15:36 +08:00
|
|
|
<fieldset><legend>说明</legend>
|
|
|
|
<%= f.text_area :notes, :style => "width:99%;", :rows => "5", :no_label => true %>
|
|
|
|
</fieldset>
|
2015-04-15 16:38:39 +08:00
|
|
|
<!--<%# 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 %>-->
|
2013-08-01 10:33:49 +08:00
|
|
|
|
2015-04-16 12:15:36 +08:00
|
|
|
<%= call_hook(:view_issues_edit_notes_bottom, {:issue => @issue, :notes => @notes, :form => f}) %>
|
2015-04-15 16:38:39 +08:00
|
|
|
<!--</fieldset>-->
|
2013-08-01 10:33:49 +08:00
|
|
|
|
2015-04-15 16:38:39 +08:00
|
|
|
<!--<fieldset><legend><%#= l(:label_attachment_plural) %></legend>-->
|
2015-04-16 12:15:36 +08:00
|
|
|
<!--<p style="padding-top: 5px;"><%= render :partial => 'attachments/new_form', :locals => {:container => @issue} %>-->
|
2015-04-15 16:38:39 +08:00
|
|
|
<!--</fieldset>-->
|
2014-07-15 15:09:52 +08:00
|
|
|
|
2015-04-15 20:05:21 +08:00
|
|
|
<div class="cl"></div>
|
2013-08-01 10:33:49 +08:00
|
|
|
<%= f.hidden_field :lock_version %>
|
|
|
|
<%= hidden_field_tag 'last_journal_id', params[:last_journal_id] || @issue.last_journal_id %>
|
2015-04-16 12:15:36 +08:00
|
|
|
<%= hidden_field_tag 'reference_user_id', params[:reference_user_id] %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div id="preview" class="wiki"></div>
|